
| “总之,作为更新版本,本书不负众望,无愧于经典原作。” --Dennis Ritchie,图灵奖得主, Unix操作系统和C语言之父 “对任何一个真正的专业UNIX系统程序员而言,本书都是不可或缺的参考书。Rago更新和扩展了Stevens的经典著作,并保持了原书的风貌。” --Andrew Josey, POSIX 1003.1标准工作组主席 十多年来,无数C程序员都依靠一本书深入了解了驱动UNIX和Linux内核的编程接口的实用知识,这本书就是已故的W. Richard Stevens所著的《UNIX环境高级编程》。十多年后,UNIX技术和产品已经有了巨大变化,本书的更新可以说是成为众望所归。现在,Stevens的同事Stephen Rago彻底更新了这本经典著作,以反映最新的技术进展,并加入了对现今几种主流UNIX和Linux平台的支持。 Rago保留了使本书前版成为经典的精髓和方法。在Stevens原著的基础之上,新版增加了大量的新内容,包括讨论线程和多线程编程、使用套接字接口驱动进程间通信(IPC)的新章节,还广泛讨论了最新版的POSIX.1标准中新增的接口。几乎所有示例都已经在目前4个最主流的UNIX/Linux平台上测试过,包括FreeBSD 5.2.1、Linux 2.4.22内核、Solaris 9和Darwin 7.4.0(Apple MAC OS X 10.3的开源核心)。 与第1版一样,读者仍然可以通过示例进行学习,这些示例包括了1万多行可下载的ANSI C源代码。书中通过简明但是完整的程序阐述了400多个系统调用和函数,清楚地说明它们的用法、参数和返回值。为了使读者能融会贯通,书中还提供了几个贯穿整章的案例研究,每一个案例都根据现代的技术环境进行了全面更新。 |
| W.Richard Stevens备受赞誉的已帮技术作家,生前著有多种经典的传世之作,包括《UNIX网络编程》(两卷本)、《TCP/IP详解》(三卷本)和本书第1版。
Stephen A.Rago资源UNIX程序员,是当年贝尔实验室的UNIX系统V版本4的开发人员之一,著有《UNIX系统V网络编程》,并曾担任本书第1版的技术审校。他目前是ENC管理人员,专门从事文件服务器和文件系统方向的研究。 |
| Chapter1:UNX System Overview 1.1 Introduction 1.2 UNX Architecture 1.3 Logging 1.4 Files and Directories 1.5 Input and Output 1.6 Programs and Output 1.7 Error Handling 1.8 User ldentification 1.9 Signals 1.10 Tine Values 1.11 Systen Calls and Library Functions 1.12 Summary Chapter2: UNIX Standardization and Inplementations 2.1 Introduction 2.2 UNIX Standardization 2.2.1 ISO C 2.2.2 IEEE POSIX 2.2.3 The Single UNIX Specification 2.2.4 FIPS 2.3 UNIX System Implimintations 2.3.1 UNIX System V Releace 2.3.2 4.4BSD 2.3.3 FreeBSD 2.3.4 Linrx 2.3.5 Mac OS X 2.3.6 Solaris 2.3.7 Other UNIX Systems 2.4 Relationship of Standards and Implementations 2.5 Linits 2.5.1 ISO C Limits 2.5.2 POSIX Limits 2.5.3 XSI Limits 2.5.4 sysconf,pathconf,and fpathconf Functions 2.5.5 Indeterminate Runtime Limits 2.6 Options 2.7 Feature Test Macros 2.8 Primitive System Data Types 2.9 Comflicts Between Standards 2.10 Summary Chapter3: File I/O 3.1 Introduction 3.2 File Descriptors 3.3 open Function 3.4 creat Function 3.5 cloce Function 3.6 lseek Function 3.7 read Function 3.8 write Function 3.9 I/O Efficiency 3.10 File Sharing 3.11 Atomic Operations 3.12 dup and dup2 Functions 3.13 sync,fsync,and fdatasync Functions 3.14 fcntl Function 3.15 ioctl Function 3.16 /dev/fd 3.17 Summary Chapter4: Files and Directories Chapter5: Standard I/O Library Chapter6: System Data Files and Information Chapter7: Process Enviromnent Chapter8: Process Control Chapter9: Process Felationships Chapter10: Signals Chapter11: Threads Chapter12: Thread Control Chapter13: Daemon Processes Chapter14: Advanced I/O Chapter15: Interprocess Communication Chapter16: Network IPC:Sockets Chapter17: Advanced IPC Chapter18: Terminal I/O Chapter19: Pcerdo Terminals Chapter20: A Database Library Chapter21: Communicating with a Network Printer Appendix A. Function Prototypse Appendix B. Miscellaneous Source Code Appendix C. Solutions to Selected Exercises Bibliography Index |
商品评论(0条)