摘要: 4. FIles and Directories (文件和目录) 4.1 Introduction (介绍) We'll start with the stat functions and go through each member of the stat structure, looking at all the attributes of a file. (我们首先学习stat函数,了解stat结构体的各个成员,了解文件的各种属性。) We'll also look in more detail at the structure of a UNIX file system 阅读全文
posted @ 2013-09-21 14:28 yanjf 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 3.9 I/O Efficiency (I/O 效率) All normal UNIX System shells provide a way to open a file for reading on standard input and to create (or rewrite) a file on standard output. (所有正常的Unix系统shells都提供拉一种方法来从标准输入打开一个文件和从标准输出创建或重写一个文件。) 3.10 File Sharing (文件共享) The UNIX System supports the sharing of ope... 阅读全文
posted @ 2013-09-20 11:16 yanjf 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 3 File I/O (文件I/O) 3.1 Introduction (介绍) Most file I/O on a UNIX system can be performed using only five functions: open, read, write, lseek, and close. (在UNIX系统上大多数文件I/O可以执行使用open, read, write, lseek, 和 close这五个函数。) We describe the dup, fcntl, sysnc, fsync and ioctl functions. 3.2 File Descript... 阅读全文
posted @ 2013-09-19 12:17 yanjf 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 2 UNIX Stadardization and Implementations (Unix 标准化和实现) 2.1 Introduction (介绍) Much work has gone into standardizing the UNIX programming environment and the C programming language. (规范Unix编程环境和C编程语言已经做拉大量工作。) 2.2 UNIX Standardization (Unix 标准化) 2.2.1 ISO C ANSI : American National Standards Ins... 阅读全文
posted @ 2013-09-17 20:25 yanjf 阅读(192) 评论(0) 推荐(0) 编辑
摘要: APUE 全称: Advanced Programming in the Unix Environment. 参考书籍为人民邮电出版社出版的Advanced Programming in the Unix Environment英文版第二版,笔记先列英文原文,下面是自己翻译版,由于英文水平问题,错误的地方还望大家指正,自己的总结就没有英文原版拉。 1 UNIX System Overview (Unix 系统概述) 1.1 Introduction (介绍) All operationg systems provide services for programs they run.... 阅读全文
posted @ 2013-09-15 16:57 yanjf 阅读(395) 评论(0) 推荐(0) 编辑