高级UNIX程序设计 第2版PDF电子书下载
- 电子书积分:20 积分如何计算积分?
- 作 者:(美)罗克金德(Rochkind,M.J.)著
- 出 版 社:北京:清华大学出版社
- 出版年份:2006
- ISBN:7302126453
- 页数:709 页
Chapter 1 Fundamental Concepts 1
1.1 A Whirlwind Tour of UNIX and Linux 16
1.2 Versions of UNIX 16
1.3 Using System Calls 19
1.4 Error Handling 24
1.5 UNIX Standards 38
1.6 Common Header File 55
1.7 Dates and Times 56
1.8 About the Example Code 67
1.9 Essential Resources 68
Chapter 2 Basic File I/O 71
2.1 Introduction to File I/O 71
2.2 File Descriptors and Open File Descriptions 72
2.3 Symbols for File Permission Bits 75
2.4 open and creat System Calls 76
2.5 umask System Call 86
2.6 unlink System Call 86
2.7 Creating Temporary Files 88
2.8 File Offsets and O_APPEND 90
2.9 write System Call 92
2.10 read System Call 96
2.11 close System Call 97
2.12 User Buffered I/O 98
2.13 lseek System Call 105
2.14 pread and pwrite System Calls 108
2.15 readv and writev System Calls 110
2.16 Synchronized I/O 114
2.17 truncate and ftruncate System Calls 119
Chapter 3 Advanced File I/O 123
3.1 Introduction 123
3.2 Disk Special Files and File Systems 123
3.3 Hard and Symbolic Links 137
3.4 Pathnames 144
3.5 Accessing and Displaying File Metadata 147
3.6 Directories 158
3.7 Changing an I-Node 181
3.8 More File-Manipulation Calls 185
3.9 Asynchronous I/O 189
Chapter 4 Terminal I/O 203
4.1 Introduction 203
4.2 Reading from a Terminal 204
4.3 Sessions and Process Groups(Jobs) 224
4.4 ioctl System Call 232
4.5 Setting Terminal Attributes 233
4.6 Additional Terminal-Control System Calls 245
4.7 Terminal-Identification System Calls 248
4.8 Full-Screen Applications 250
4.9 STREAMS I/O 255
4.10 Pseudo Terminals 256
Chapter 5 Processes and Threads 277
5.1 Introduction 277
5.2 Environment 277
5.3 exec System Calls 284
5.4 Implementing a Shell (Version 1) 292
5.5 fork System Call 296
5.6 Implementing a Shell (Version 2) 300
5.7 exit System Calls and Process Termination 301
5.8 wait, waitpid, and waitid System Calls 304
5.9 Signals, Termination, and Waiting 313
5.10 Implementing a Shell (Version 3) 314
5.11 Getting User and Group IDs 315
5. 1 2 Setting User and Group IDs 317
5.13 Getting Process IDs 319
5.14 chroot System Call 319
5.15 Getting and Setting the Priority 320
5.16 Process Limits 322
5.17 Introduction to Threads 329
5.18 The Blocking Problem 350
Chapter 6 Basic Interprocess Communication 361
6.1 Introduction 361
6.2 Pipes 362
6.3 dup and dup2 System Calls 371
6.4 A Real Shell 376
6.5 Two-Way Communication with Unidirectional Pipes 390
6.6 Two-Way Communication with Bidirectional Pipes 399
Chapter 7 Advanced Interprocess Communication 405
7.1 Introduction 405
7.2 FIFOs, or Named Pipes 406
7.3 An Abstract Simple Messaging Interface (SMI) 414
7.4 System V IPC (Interprocess Communication) 428
7.5 System V Message Queues 434
7.6. POSIX IPC 442
7.7 POSIX Message Queues 445
7.8 About Semaphores 458
7.9 System V Semaphores 460
7.10 POSIX Semaphores 469
7.11 File Locking 477
7.12 About Shared Memory 488
7.13 System V Shared Memory 489
7.14 POSIX Shared Memory 504
7.15 Performance Comparisons 515
Chapter 8 Networking and Sockets 519
8.1 Socket Basics 520
8.2 Socket Addresses 533
8.3 Socket Options 544
8.4 Simple Socket Interface (SSI) 549
8.5 Socket Implementation of SMI 563
8.6 Connectionless Sockets 567
8.7 Out-of-Band Data 577
8.8 Network Database Functions 578
8.9 Miscellaneous System Calls 593
8.10 High-Performance Considerations 597
Chapter 9 Signals and Timers 601
9.1 Signal Basics 601
9.2 Waiting for a Signal 624
9.3 Miscellaneous Signal System Calls 634
9.4 Deprecated Signal System Calls 635
9.5 Realtime Signals Extension (RTS) 637
9.6 Global Jumps 648
9.7 Clocks and Timers 651
Appendix A Process Attributes 667
Appendix B Ux: A C++ Wrapper for Standard UNIX Functions 673
Appendix C Jtux: A Java/Jython Interface to Standard UNIX Functions 677
Appendix D Alphabetical and Categorical Function Lists 685
References 703
Index 705
- 《指向核心素养 北京十一学校名师教学设计 英语 七年级 上 配人教版》周志英总主编 2019
- 《设计十六日 国内外美术院校报考攻略》沈海泯著 2018
- 《计算机辅助平面设计》吴轶博主编 2019
- 《高校转型发展系列教材 素描基础与设计》施猛责任编辑;(中国)魏伏一,徐红 2019
- 《景观艺术设计》林春水,马俊 2019
- 《程序逻辑及C语言编程》卢卫中,杨丽芳主编 2019
- 《高等教育双机械基础课程系列教材 高等学校教材 机械设计课程设计手册 第5版》吴宗泽,罗圣国,高志,李威 2018
- 《指向核心素养 北京十一学校名师教学设计 英语 九年级 上 配人教版》周志英总主编 2019
- 《Cinema 4D电商美工与视觉设计案例教程》樊斌 2019
- 《通信电子电路原理及仿真设计》叶建芳 2019
- 《大学计算机实验指导及习题解答》曹成志,宋长龙 2019
- 《指向核心素养 北京十一学校名师教学设计 英语 七年级 上 配人教版》周志英总主编 2019
- 《大学生心理健康与人生发展》王琳责任编辑;(中国)肖宇 2019
- 《大学英语四级考试全真试题 标准模拟 四级》汪开虎主编 2012
- 《大学英语教学的跨文化交际视角研究与创新发展》许丽云,刘枫,尚利明著 2020
- 《北京生态环境保护》《北京环境保护丛书》编委会编著 2018
- 《复旦大学新闻学院教授学术丛书 新闻实务随想录》刘海贵 2019
- 《大学英语综合教程 1》王佃春,骆敏主编 2015
- 《大学物理简明教程 下 第2版》施卫主编 2020
- 《指向核心素养 北京十一学校名师教学设计 英语 九年级 上 配人教版》周志英总主编 2019