
| 全英文版本。本书主要介绍了其中最常用的300多个系统函数。全书包括基本概念、基本文件I/O、高级文件I/O、终端I/O、进程与线程、基本进程问通信、高级进程问通信、网络技术与套接字,以及信号与定时器等9章。适用于我国高校本科及研究生计算机教育。 |
| Preface Chapter 1 Fundamental Concepts 1.1 A Whirlwind Tour of UNIX and Linux 1.2 Versions of UNIX 1.3 Using System Calls 1.4 Error Handling 1.5 UNIX Standards 1.6 Common Header File 1.7 Dates and Times 1.8 About the Example Code 1.9 Essential Resources Chapter 2 Basic File I/O 2.1 Introduction to File I/O 2.2 File Descriptors and Open File Descriptions 2.3 Symbols for File Permission Bits 2.4 open and creat System Calls 2.5 umask System Call 2.6 unlink System Call 2.7 Creating Temporary Files 2.8 File Offsets and O APPEND 2.9 write System Call 2.10 read System Call 2.11 close System Call 2.12 User Buffered I/O 2.13 lseek System Call 2.14 pread and pwrite System Calls 2.15 readv and writev System Calls 2.16 Synchronized I/0 2.17 truncate and ftruncate System Calls Chapter 3 Advanced File I/O 3.1 Introduction 3.2 Disk Special Files and File Systems 3.3 Hard and Symbolic Links 3.4 Pathnames 3.5 Accessing and Displaying File Metadata 3.6 Directories 3.7 Changing an I-Node 3.8 More File-Manipulation Calls 3.9 Asynchronous I/O Chapter 4 Terminal I/O 4.1 Introduction 4.2 Reading from a Terminal 4.3 Sessions and Process Groups (Jobs) 4.4 ioctl System Call 4.5 Setting Terminal Attributes 4.6 Additional Terminal-Control System Calls 4.7 Terminal-Identification System Calls 4.8 Full-Screen Applications 4.9 STREAMS I/O 4.10 Pseudo Terminals Chapter 5 Processes and Threads 5.1 Introduction 5.2 Environment 5.3 exec System Calls 5.4 Implementing a Shell (Version 1) 5.5 fork System Call 5.6 Implementing a Shell (Version 2) 5.7 exit System Calls and Process Termination 5.8 wait, waitpid, and wait id System Calls 5.9 Signals, Termination, and Waiting 5.10 Implementing a Shell (Version 3) 5.11 Getting User and Group IDs 5.12 Setting User and Group IDs 5.13 Getting Process IDs 5.14 chroot System Call 5.15 Getting and Setting the Priority 5.16 Process Limits 5.17 Introduction to Threads 5.18 The Blocking Problem Chapter 6 Basic Interprocess Communication 6.1 Introduction 6.2 Pipes 6.3 dup and dup2 System Calls 6.4 A Real Shell 6.5 Two-Way Communication with Unidirectional Pipes 6.6 Two-Way Communication with Bidirectional Pipes Chapter 7 Advanced Interprocess Communication 7.1 Introduction 7.2 FIFOs, or Named Pipes 7.3 An Abstract Simple Messaging Interface (SMI) 7.4 System V IPC (Interprocess Communication) 7.5 System V Message Queues 7.6. POSIX IPC 7.7 POSIX Message Queues 7.8 About Semaphores 7.9 System V Semaphores 7.10 POSIX Semaphores 7.11 File Locking 7.12 About Shared Memory 7.13 System V Shared Memory 7.14 POSIX Shared Memory 7.15 Performance Comparisons Chapter 8 Networking and Sockets 8.1 Socket Basics 8.2 Socket Addresses 8.3 Socket Options 8.4 Simple Socket Interface (SSI) 8.5 Socket Implementation of SMI 8.6 Connectionless Sockets 8.7 Out-of-Band Data 8.8 Network Database Functions 8.9 Miscellaneous System Calls 8.10 High-Performance Considerations Chapter 9 Signals and Timers 9.1 Signal Basics 9.2 Waiting for a Signal 9.3 Miscellaneous Signal System Calls 9.4 Deprecated Signal System Calls 9.5 Realtime Signals Extension (RTS) 9.6 Global Jumps 9.7 Clocks and Timers Appendix A Process Attributes Appendix B Ux: A C++ Wrapper for Standard UNIX Functions Appendix C Jtux: A Java/Jython Interface to Standard UNIX Functions Appendix D Alphabetical and Categorical Function Lists References Index |
商品评论(0条)