If you are an experienced C programmer with a working knowledge of UNIX, you cannot afford to be without this up-to -date tutorial on the system call interface and the most important functions found in the ANSI C library. Richard Stevens describes more than 200 system calls and functions; since he believes the best way to learn code is to read code,a brief example accompanies each description. Building upon information presented in the first 15 chapters, the author offers chapter-long examples teaching you how to create a database library, a PostScript printer driver, a modem dialer, and a program that runs other programs under a pseudo terminal. To make your analysis and understanding ofthis code even easier, and to allow you to modify it, all of the code in the book is available via UUNET. Advanced Programming in the UNIX Environment is applicable to all major UNIX releases, especially System V Release the latest release of 4.3BSD, including 386BSD. These real-world implementations allow you to more clearly understand the status of the current and future standards,including IEEE POSIX and XPG3.
......(更多)
W.Richard Stevens,备受赞誉的技术作家,生前著有多种经典的传世之作,包括《UNIX网络编程》(两卷本)、《TCP/IP详解》(三卷本)和本书第1版。 尤晋元,上海交通大学计算机科学及工程系教 授、博士生导师。在科研方面,主要从事操作系统和分布对象计算技术方面的研究;在教学方面,长期承担操作系统及分布计算等课程的教学工作。主编和翻译了多本操作系统教材和参考书,包括《UNIX操作系统教程》、《UNIX高级编程技术》、《UNIX环境高级编程》和《操作系统:设计与实现》等。
......(更多)
Preface
Chapter 1 Introduction
Chapter 2 Unix Standardization and Implementations
Chapter 3 File I/O
Chapter 4 files and Directories
Chapter 5 Standard I/O Library
Chapter 6 System Data Files and Information
Chapter 7 The Environment of a Unix Process
Chapter 8 Process Control
Chapter 9 Process Relationships
Chapter 10 Signals
Chapter 11 Terminal I/O
Chapter 12 Advanced I/O
Chapter 13 Daemon Processes
Chapter 14 Interprocess Communication
Chapter 15 Advanced Interprocess Communication
......(更多)
Parent and the child share a file table entry for every open descriptor.
大多数UNIX调试程序都使用core文件以检查进程终止时的状态。
由open返回的文件描述符一定是最小的未用描述符数值。这一点被某些应用程序用来在标准输入,标准输出或标准错误输出上打开新的文件。
......(更多)