Advanced Programming in the UNIX Environment is a classic text describing the programming interface to UNIX Systems. The third edition updates the material to conform to Version 4 of the Single UNIX Specification and provides examples based on four contemporary systems: FreeBSD 8.0, Linux 2.6.35, Mac OS X 10.6.7, and Solaris 10. Changes from the second edition include the removal of obsolete information and the addition of more than 70 new functions. In total, more than 450 function interfaces are presented. The authors go further than merely describing the interfaces; they illustrate how they should be used and provide insight on why things are the way they are. Topics include standards, file I/O, directory handling, processes, threads, inter-process communication, signals, network communication, and terminal handling. The book contains many small source code examples written in C, as well as several chapters that provide in-depth studies of larger examples. Regardless of what UNIX System you run, this book will help you master the subtleties of writing programs to make the most of your system.
......(更多)
W. Richard Stevens was an acknowledged UNIX and networking expert and the highly-respected author of several books. He was also a sought-after instructor and consultant.
Stephen A. Rago, one of the developers of UNIX System V Release 4, is currently a Principal Member of Technical Staff at Crosstor, a company created by former Bell Labs employees to develop system components and enhancements for UNIX and other systems.
......(更多)
Table of Contents
Chapter 1: UNIX System Overview
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: Process Enviornment
Chapter 8: Process Control
Chapter 9: Process Relationships
Chapter 10: Signals
Chapter 11: Treads
Chapter 12: Tread Control
Chapter 13: Daemon Process
Chapter 14: Advanced I/O
Chapter 15: Interprocess Communication
Chapter 16: Network IPC: Sockets
Chapter 17: Advanced IPC
Chapter 18: Terminal I/O
Chapter 19: Pseudo Terminals
Chapter 20: A Database Library
Chapter 21: Communicating with a Network Printer
Appendix A: Function Prototypes
Appendix B: Miscellaneous Source Code
Appendix C: Solutions to Selected Exercises
Bibliography
......(更多)
大多数UNIX调试程序都使用core文件以检查进程终止时的状态。
由open返回的文件描述符一定是最小的未用描述符数值。这一点被某些应用程序用来在标准输入,标准输出或标准错误输出上打开新的文件。
......(更多)