出版時(shí)間:2006-4 出版社:清華大學(xué)出版社 作者:羅克金德, 頁(yè)數(shù):702
Tag標(biāo)簽:無(wú)
內(nèi)容概要
系統(tǒng)函數(shù)決定了什么是UNIX,其他的(如子例程和命令)都是建立在系統(tǒng)函數(shù)的基礎(chǔ)之上?,F(xiàn)今的UNIX說(shuō)明書中有1100多個(gè)系統(tǒng)函數(shù),要掌握這些函數(shù)是件很困難的事。本書主要介紹了其中最常用的300多個(gè)系統(tǒng)函數(shù)。全書包括基本概念、基本文件I/O、高級(jí)文件I/O、終端I/O、進(jìn)程與線程、基本進(jìn)程間通信、高級(jí)進(jìn)程間通信、網(wǎng)絡(luò)技術(shù)與套接字,以及信號(hào)與定時(shí)器等9章。 本書給出了數(shù)千行的示例代碼,所有這些代碼都可以從本書網(wǎng)址www.basepath.com/aup下載。本書每章的末尾都給出了一些練習(xí)。這些練習(xí)的難易程度各不相同,一些只需幾句話就可以回答,一些是簡(jiǎn)單的程序設(shè)計(jì)問(wèn)題,還有一些則可以作為每學(xué)期的UNIX程序設(shè)計(jì)項(xiàng)目練習(xí)。
書籍目錄
ContentsPreface xiChapter 1 Fundamental Concepts 1.1 A Whirlwind Tour of UNIX and Linux 1.2 Versions of UNIX 1.3 Using System Calls 1.4 Error Handling 1.5 UNIX Standards 1.6 Common Header File 1.7 Dates and Times 1.8 About the Example Code 1.9 Essential Resources Chapter 2 Basic File I/O 2.1 Introduction to File I/O 2.2 File Descriptors and Open File Descriptions 2.3 SVmbols for File Permission Bits 2.4 open and creat System Calls 2.5 "mask System Call 2.6 unlink System Call 2.7 Creating Temporary Files 2.8 File OffSets and O APPEND 2.9 write SVstem Call 2.10 read SVstem Call 2.11 close SVstem Call 2.12 User Buffered I/O 2.13 lseek SVstem Call 2.14 pread and pwrite System Calls 2.15 ready and wri tev SVstem Calls 2.16 Synchronized I/O 2.17 truncate and ftruncate SVstem Calls Chapter 3 Advanced File I/O 3.1 Introduction 3.2 Disk Special Files and File Systems 3.3 Hard and Symbolic Links 3.4 Pathnames 3.5 Accessing and Displaying File Metadata 3.6 Directories 3.7 Changing an I-Node 3.8 More File-Manipulation Calls 3.9 AsVnchronous I/O Chapter 4 Terminal I/O 4.1 Introduction 4.2 ReadinZ from a Terminal 4.3 Sessions and Process Groups (Jobs) 4.4 ioctl System Call 4.5 Setting Terminal Attributes 4.6 Additional Terminal-Control System Calls 4.7 Terminal-identification System Calls 4.8 Full-ScreenApplications 4.9 STREAMS I/O 4.10 Pseudo Terminals Chapter 5 Processes and Threads 5.1 Introduction 5.2 Environment 5.3 exec SVstem Calls 5.4 Implementing a Shell (Version l) 5.5 fork System Call 5.6 Implementing a Shell (Version 2) 5.7 exit SVstem Calls and Process Termination ……Chapter 6 Basic interprocess Communication Chapter 7 Advanced interprocess Communication Chapter 8 Networking and Sockets Chapter 9 Signals 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
編輯推薦
全英文版本。本書主要介紹了其中最常用的300多個(gè)系統(tǒng)函數(shù)。全書包括基本概念、基本文件I/O、高級(jí)文件I/O、終端I/O、進(jìn)程與線程、基本進(jìn)程問(wèn)通信、高級(jí)進(jìn)程問(wèn)通信、網(wǎng)絡(luò)技術(shù)與套接字,以及信號(hào)與定時(shí)器等9章。適用于我國(guó)高校本科及研究生計(jì)算機(jī)教育。
圖書封面
圖書標(biāo)簽Tags
無(wú)
評(píng)論、評(píng)分、閱讀與下載
高級(jí)UNIX程序設(shè)計(jì) PDF格式下載