Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Michael Kerrisk

Rating No ratings yet

《linux/unix系统编程手册(上、下册)》是介绍linux与unix编程接口的权威著作。linux编程资深专家michael kerrisk在书中详细描述了linux/unix系统编程所涉及的系统调用和库函数,并辅之以全面而清晰的代码示例。《linux/unix系统编程手册(上、下册)》涵盖了逾500个系统调用及库函数,并给出逾200个程序示例,另含88张表格和115幅示意图。 《linux/unix系统编程手册(上、下册)》总共分为64章,主要讲解了高效读写文件,对信号、时钟和定时器的运用,创建进程、执行程序,编写安全的应用程序,运用posix线程技术编写多线程程序,创建和使用共享库,运用管道、消息队列、共享内存和信号量技术来进行进程间通信,以及运用套接字api编写网络应用等内容。 《linux/unix系统编程手册(上、下册)》在汇聚大批 linux专有特性(epoll、inotify、/proc)的同时,还特意强化了对unix标准(posix、sus)的论述,彻底达到了“鱼与熊掌,二者得兼”的效果,这也堪称本书的最大亮点。 《linux/unix系统编程手册(上、下册)》布局合理,论述清晰,说理透彻,尤其是作者对示例代码的构思巧妙,独具匠心,仔细研读定会受益良多。本书适合从事linux/unix系统开发、运维工作的技术人员阅读,同时也可作为高校计算机专业学生的参考研习资料。

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A definitive, example-driven reference to the Linux/UNIX system programming interface—the system calls and library functions every program ultimately relies on. Best for working developers, porters, and advanced students who already read C and want both Linux-specific depth and POSIX portability in one place. 【Book Arc】 - **Opening (~0%–12%)**: Front matter and orientation—what the programming interface is, who the book serves, and how it is organized into eight thematic parts spanning 64 chapters. - **Early (~13%–31%)**: Background and fundamentals—UNIX/C/Linux history, UNIX standards (POSIX, SUS), core concepts, then basic interface features: file I/O, processes, memory allocation, users/groups, credentials, time, limits, and system/process information. - **Early–Middle (~25%–37%)**: Advanced interface features—I/O buffering, filesystems, file attributes, extended attributes, ACLs, directories and links, file-event monitoring, signals, and timers. - **Middle (~38%–56%)**: Processes, programs, and threads—process creation/termination, monitoring children, exec, POSIX threads, plus advanced topics: process groups/sessions/job control, scheduling, resources, daemons, secure privileged programs, capabilities, login accounting, and shared libraries. - **Late (~56%–69%)**: Interprocess communication—pipes and FIFOs, System V and POSIX message queues/semaphores/shared memory, memory mapping, virtual memory operations, and file locking. - **Ending (~69%+)**: Sockets and network programming, then advanced I/O topics—terminals, alternative I/O models, and pseudoterminals. (Excerpts do not cover the detailed content of these final chapters.) 【Key Takeaways】 - **The book documents the interface layer, not just APIs** (Early): it explains the system calls and library functions that virtually every Linux/UNIX application uses, directly or indirectly. - **Linux-specific features and UNIX standards are treated together** (Early): epoll, inotify, capabilities, /proc, and other Linux extensions sit alongside POSIX/SUS portability discussion—the book's stated standout strength. - **Examples are the teaching method** (Early): roughly 200 programs and about 15,000 lines of C and shell sessions let you run and modify code rather than only read prose. - **It works as both tutorial and reference** (Early): chapters build on prior material for sequential reading, while cross-references and an index support random lookup. - **Portability is a first-class concern** (Early): the text distinguishes standardized behavior from implementation differences and notes where examples were tested on other UNIX systems. - **Version awareness is explicit** (Early): coverage centers on Linux 2.6.x and glibc 2, with kernel/glibc version notes and SUSv3-to-SUSv4 changes flagged. - **Exercises reinforce concepts** (Early): most chapters end with exercises, some answered in an appendix, encouraging hands-on experimentation. - **The author's authority comes from man-pages maintenance** (Early): Kerrisk's long stewardship of the Linux man-pages project shapes the book's precision and bug-level detail. 【Reading Tips】 - Read the opening background chapters quickly if you already know UNIX basics, then slow down at file I/O, processes, and signals—these underpin everything later. - Treat the book as a reference after a first pass: use the index and cross-references when you hit a specific API in real work. - Actually compile and run the example programs; the author explicitly recommends modifying them or writing new code to consolidate understanding. - Pay attention to the small-print annotations—they carry rationale, implementation details, and historical context that clarify why interfaces behave as they do. - For portability work, note the standard-versus-Linux distinction markers; for Linux-only work, deep-read the epoll, inotify, capabilities, and /proc material. 【Coverage Limits】 The excerpts cover front matter, preface, table of contents, and acknowledgments; they do not include the actual technical chapters, so this guide describes the book's scope and approach rather than its detailed API content.
Page 3
员 flyman150(2410757683@qq.com) 专享 尊重版权 异步社区电子书 感谢您购买异步社区电子书!异步社区已上架电子书 500 余种,社区还会经常发布福利信 息,对社区有贡献的读者赠送免费样书券、优惠码、积分等等,希望您在阅读过程中,把您的 阅读体验传递给我们,让我们了解读者心声,有问题我们...
View in text
Page 10
ial)(第 9 章),时间(第 10 章), 系统限制和选项(第 11 章),以及获取系统和进程信息(第 12 章)。 3.系统编程接口的高级特性:文件 I/O 缓冲(第 13 章),文件系统(第 14 章),文件 异步社区会员 flyman150(2410757683@qq.com) 专享 尊重版权 图前言...
View in text
Page 13
果能对读者有所帮助,希望本书更是如此。 致谢 没有一干人等的支持,本书的质量绝不会如此之高。我要向他们致以最诚挚的谢意。 来自世界各地的多位技术审稿人都参与了本书初稿的阅读,找出错误,指出含糊不清的 解释,对措辞、插图以及习题提出建议,测试程序,发现不为作者所知的 Linux 和其他 UNIX 实现间的行为差异,...
View in text
Page 16
为第一个学位拼搏之时,Robert Biddle 激起了我对 UNIX、C 以及 Ratfor 的兴 趣,谢谢你,老兄。虽然以下诸君与本书并无直接干系,但当我在新西兰坎特伯雷大学攻读第二 学位时,他们就鼓励我在写作道路上坚持下去,在此,我要向他们表示感谢,他们是 Michael Howard、Jonathan M...
View in text
Page 18
...................... 30 2.15 伪终端 ..................................................................................................................... 31 2...
View in text
Page 18
..................... 71 4.10 练习 ......................................................................................................................... 71...
View in text
Page 20
..............................120 7.2 在堆栈上分配内存:alloca() .................................................................................122 7.3 总结 ............
View in text
Tags
AI categories
OSLinuxProgramming Language
ISBN: 7115328676
Publish Year: 2014
Language: English
Pages: 1176
File Format: PDF
File Size: 29.4 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…