UNIX环境高级编程

UNIX环境高级编程 (1992)

Advanced Programming in the Unix Environment
作者
理查德·史蒂文斯
首版
1992 年
国家/地区
美国
Open Library
15 个版本

百科

《UNIX环境高级编程》(英语:Advanced Programming in the UNIX Environment,简称APUE)是理查德·史蒂文斯(Richard Stevens)写的一本介绍UNIX环境C语言编程接口的书籍。被UNIX C程序员誉为“圣经”。

简介

本书最早问世于1992年,全面而细致地展示了UNIX系统的C接口,受到读者的普遍欢迎和好评。UNIX的原创者之一——丹尼斯·里奇(Dennis Ritchie)也认为它是“公认的优秀、匠心独具的名著”。

该书的作者理查德·史蒂文斯于1999年辞世,后来由Stephen A. Rago对本书进行修订,出版了本书的第二版。第二版中增加了针对Linux、FreeBSD和Darwin等新兴类UNIX系统的内容。

本书未探讨POSIX及SUS的实时编程接口的扩展。

丹尼斯·里奇也为本书第2版作序。

中文版

本书第一版的中文版由机械工业出版社于2000年出版,尤晋元等译本书第二版的中文版由人民邮电出版社于2006年出版,尤晋元、张亚英、戚正伟等译本书第三版的中文版由人民邮电出版社于2014年出版,尤晋元、张亚英、戚正伟等译

第2版目录

UNIX基础知识

UNIX标准化及实现

文件I/O

文件和目录

标准I/O库

系统数据文件和信息

进程环境

进程控制

进程关系

线程控制

守护进程

高级I/O

进程间通信

网络IPC:套接字

高级进程间通信

终端I/O

伪终端

数据库函数库

与网络打印机通信

以上文字摘自维基百科「UNIX環境高級編程」(去掉了参考文献等尾部小节),按 CC BY-SA 4.0 使用,作者为维基百科的各位编者。

中文维基百科的条目比较短,下面附上英文维基百科的内容(英文原文):

Advanced Programming in the Unix Environment is a computer programming book by W. Richard Stevens describing the application programming interface of the UNIX family of operating systems. The book illustrates UNIX application programming in the C programming language.

The first edition of the book was published by Addison-Wesley in 1992. It covered programming for the two popular families of the Unix operating system, the Berkeley Software Distribution (in particular 4.3 BSD and 386BSD) and AT&T's UNIX System V (particularly SVR4). The book covers system calls for operations on single file descriptors, special calls like ioctl that operate on file descriptors, and operations on files and directories. It covers the stdio section of the C standard library, and other parts of the library as needed. The several chapters concern the APIs that control processes, process groups, daemons, inter-process communication, and signals. One chapter is devoted to the Unix terminal control and another to the pseudo terminal concept and to libraries like termcap and curses that build atop it. Stevens adds three chapters giving more concrete examples of Unix programming: he implements a database library, communicates with a PostScript printer, and with a modem. The book does not cover network programming: this is the subject of Stevens's 1990 book UNIX Network Programming and his subsequent three-volume TCP/IP Illustrated.

Stevens died in 1999, leaving a second edition incomplete. With the increasing popularity and technical diversification of Unix derivatives, and largely compatible systems like the Linux environment, the code and coverage of Stevens's original became increasingly outdated. Working with Stevens's unfinished notes, Stephen A. Rago completed a second edition which Addison-Wesley published in 2005. This added support for FreeBSD, Linux, Sun's Solaris, and Apple's Darwin, and added coverage of multithreaded programming with POSIX Threads. The second edition features a foreword by Dennis Ritchie and a Unix-themed Dilbert strip by Scott Adams.

The book has been widely lauded as well written, well crafted, and comprehensive. It received a "hearty recommendation" in a Linux Journal review.

OSNews describes it as "one of the best tech books ever published" in a review of the second edition.

Editions

Advanced Programming in the UNIX environment, first edition, W. Richard Stevens, Addison-Wesley, 1992, ISBN 978-0-201-56317-7

Advanced Programming in the UNIX environment, second edition, W. Richard Stevens and Stephen A. Rago, Addison-Wesley, 2005, ISBN 978-0-201-43307-4

Advanced Programming in the UNIX environment, third edition, W. Richard Stevens and Stephen A. Rago, Addison-Wesley, 2013, ISBN 978-0-321-63773-4

以上文字摘自英文维基百科「Advanced Programming in the Unix Environment」(去掉了参考文献等尾部小节),按 CC BY-SA 4.0 使用,作者为维基百科的各位编者。

资料卡

原题
Advanced Programming in the Unix Environment
原作语言
英语
首次出版
1992 年
主题
计算机程序设计、Unix操作系统

资料卡来自 Wikidata Q4686266(CC0),众包数据,个别字段可能不全。

更多资料与书评

在哪读

中国大陆

点下面的平台会直接在平台里搜这本书,有没有货、有没有电子版以平台为准。

海外

免费读 / 借

没有找到公有领域或合法借阅的版本。

理查德·史蒂文斯 的其他作品

作者页 ›