新書推薦:

《
投喂AI:人工智能产业的全球底层工人纪实
》
售價:HK$
75.9

《
诛仙.全6册(最新典藏版)
》
售價:HK$
348.5

《
怦然心动的人生整理魔法·实践解惑篇2025版 修订本
》
售價:HK$
54.8

《
修剪情绪藤蔓
》
售價:HK$
76.9

《
3秒下单文案:4步成交法则
》
售價:HK$
65.8

《
中式园林的秩序(文津图书奖得主朱良志教授的园林美学新作,在园林里读懂中国人的生命哲学)
》
售價:HK$
96.8

《
魏晋之变:门阀政治与中古中国社会秩序的重塑
》
售價:HK$
96.8

《
诈骗社会学:谎言与信任的攻防
》
售價:HK$
63.8
|
| 內容簡介: |
|
如何编写那些直接依赖于Linux内核和核心系统库提供的服务的软件?通过《Linux系统编程影印版第2版》这本详尽的书籍,Linux内核参与者Robert Love洛夫为你提供了Linux系统编程方面的教程,Linux系统调用的参考手册,以及对于如何编写更聪明和更快的代码的来自内部人士的建议。 Love清晰地指出了POSIX标准函数和Linux特别提供服务之间的差异。通过关于多线程的新章节,这本修订和扩展的版本在理论和实践上相结合,从多个编程主题上提供了深入的见解。
|
| 目錄:
|
Foreword
Preface
1. Introduction and Essential Concepts
System Programming
Why Learn System Programming
Cornerstones of System Programming
System Calls
The C Library
The C Compiler
APIs and ABIs
APIs
ABIs
Standards
POSIX and SUS History
C Language Standards
Linux and the Standards
This Book and the Standards
Concepts of Linux Programming
Files and the Filesystem
Processes
Users and Groups
Permissions
Signals
Interprocess Communication
Headers
Error Handling
Getting Started with System Programming
2. File IO
Opening Files
The open System Call
Owners of New Files
Permissions of New Files
The creat0 Function
Return Values and Error Codes
Reading via read
Return Values
Reading All the Bytes
Nonblocking Reads
Other Error Values
Size Limits on read
Writing with write
Partial Writes
Append Mode
Nonblocking Writes
Other Error Codes
Size Limits on write
Behavior of write
Synchronized IO
fsync0 and fdatasync0
sync0
The O SYNC Flag
O_DSYNC and O_RSYNC
Direct IO
Closing Files
Error Values
Seeking with lseek0
Seeking Past the End of a File
Error Values
Limitations
Positional Reads and Writes
Error Values
Truncating Files
Multiplexed IO
select
poll
poll Versus select
Kernel Internals
……
3. Buffered IO
4. Advanced File IO
5. Process Management
6. Advanced Process Management
7. Threading
8. File and Directory Management
9. Memory Management
10. Signals
11. Time
A. GCC Extensions to the C Language
B. Bibliography
Index
|
|