Advanced UNIX Programming, 2/e (Paperback)

Marc J. Rochkind

  • 出版商: Prentice Hall
  • 出版日期: 2004-04-29
  • 售價: $2,520
  • 貴賓價: 9.5$2,394
  • 語言: 英文
  • 頁數: 736
  • 裝訂: Paperback
  • ISBN: 0131411543
  • ISBN-13: 9780131411548
  • 已絕版

買這商品的人也買了...

相關主題

商品描述

The classic guide to UNIX® programming-completely updated!

UNIX application programming requires a mastery of system-level services. Making sense of the many functions-more than 1,100 functions in the current UNIX specification-is a daunting task, so for years programmers have turned to Advanced UNIX Programming for its clear, expert advice on how to use the key functions reliably.

An enormous number of changes have taken place in the UNIX environment since the landmark first edition. In Advanced UNIX Programming, Second Edition, UNIX pioneer Marc J. Rochkind brings the book fully up to date, with all-new, comprehensive coverage including:

  • POSIX
  • Solaris™
  • Linux®
  • FreeBSD
  • Darwin, the Mac™ OS X kernel
  • And more than 200 new system calls

Rochkind's fully updated classic explains all the UNIX system calls you're likely to need, all in a single volume!

  • Interprocess communication, networking (sockets), pseudo terminals, asynchronous I/O, advanced signals, realtime, and threads
  • Covers the system calls you'll actually use-no need to plow through hundreds of improperly implemented, obsolete, and otherwise unnecessary system calls!
  • Thousands of lines of example code include a Web browser and server, a keystroke recorder/player, and a shell complete with pipelines, redirection, and background processes
  • Emphasis on the practical-ensuring portability, avoiding pitfalls, and much more!

Since 1985, the one book to have for mastering UNIX application programming has been Rochkind's Advanced UNIX Programming. Now completely updated, the second edition remains the choice for up-to-the-minute, in-depth coverage of the essential system-level services of the UNIX family of operating systems

Table of Contents:

Preface.

  1 Fundamental Concepts.

 

A Whirlwind Tour of UNIX and Linux. Versions of UNIX. Using System Calls. Error Handling. UNIX Standards. Common Header File. Dates and Times. About the Example Code. Essential Resources.

2. Basic File I/O.

 

Introduction to File I/O. File Descriptors and Open File Descriptions. Symbols for File Permission Bits. open and creat System Calls. umask System Call. unlink System Call. Creating Temporary Files. File Offsets and O_APPEND. write System Call. read System Call. close System Call. User Buffered I/O. lseek System Call. pread and pwrite System Calls. readv and writev System Calls. Synchronized I/O. truncate and ftruncate System Calls.

3. Advanced File I/O.

 

Introduction. Disk Special Files and File Systems. Hard and Symbolic Links. Pathnames. Accessing and Displaying File Metadata. Directories. Changing an I-Node. More File-Manipulation Calls. Asynchronous I/O.

4. Terminal I/O.

 

Introduction. Reading from a Terminal. Sessions and Process Groups (Jobs). ioctl System Call. Setting Terminal Attributes. Additional Terminal-Control System Calls. Terminal-Identification System Calls. Full-Screen Applications. STREAMS I/O. Pseudo Terminals.

5. Processes and Threads.

 

Introduction. Environment. exec System Calls. Implementing a Shell (Version 1). fork System Call. Implementing a Shell (Version 2). exit System Calls and Process Termination. wait, waitpid, and waitid System Calls. Signals, Termination, and Waiting. Implementing a Shell (Version 3). Getting User and Group Ids. Setting User and Group Ids. Getting Process Ids. chroot System Call. Getting and Setting the Priority. Process Limits. Introduction to Threads. The Blocking Problem.

6. Basic Interprocess Communication.

 

Introduction. Pipes. dup and dup2 System Calls. A Real Shell. Two-Way Communication with Unidirectional Pipes. Two-Way Communication with Bidirectional Pipes.

7. Advanced Interprocess Communication.

 

Introduction. FIFOs, or Named Pipes. An Abstract Simple Messaging Interface (SMI). System V IPC (Interprocess Communication). System V Message Queues. POSIX IPC. POSIX Message Queues. About Semaphores. System V Semaphores. POSIX Semaphores. File Locking. About Shared Memory. System V Shared Memory. POSIX Shared Memory. Performance Comparisons.

8. Networking and Sockets.

 

Socket Basics. Socket Addresses. Socket Options. Simple Socket Interface (SSI). Socket Implementation of SMI. Connectionless Sockets. Out-of-Band Data. Network Database Functions. Miscellaneous System Calls. High-Performance Considerations.

9. Signals and Timers.

 

Signal Basics. Waiting for a Signal. Miscellaneous Signal System Calls. Deprecated Signal System Calls. Realtime Signals Extension (RTS). Global Jumps. 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.

商品描述(中文翻譯)

《高級UNIX編程》是UNIX編程的經典指南,已經完全更新!UNIX應用程序編程需要掌握系統級服務。理解超過1,100個函數(當前UNIX規範中的函數數量)是一項艱巨的任務,因此多年來,程序員一直依賴《高級UNIX編程》提供的清晰、專業的建議,以可靠地使用關鍵函數。

自第一版問世以來,UNIX環境發生了大量變化。在《高級UNIX編程第二版》中,UNIX先驅Marc J. Rochkind將書籍完全更新,包括以下全新的全面內容:

- POSIX
- Solaris
- Linux
- FreeBSD
- Darwin,Mac OS X內核
- 還有200多個新的系統調用

Rochkind的全面更新經典作品解釋了您可能需要的所有UNIX系統調用,全部收錄在一本書中!

- 進程間通信、網絡(套接字)、虛擬終端、異步I/O、高級信號、實時和線程
- 只涵蓋您實際使用的系統調用,無需閱讀數百個未正確實現、過時或其他不必要的系統調用!
- 成千上萬行的示例代碼,包括網絡瀏覽器和服務器、按鍵記錄器/播放器以及具有管道、重定向和後台進程的shell
- 強調實用性,確保可移植性,避免陷阱等等!

自1985年以來,掌握UNIX應用程序編程的必備書籍一直是Rochkind的《高級UNIX編程》。現在完全更新的第二版仍然是UNIX系列操作系統的基本系統級服務的最新、深入覆蓋的首選。