tailieunhanh - Advanced Programming in the UNIX Environment

All operating systems provide services for programs they run. Typical services include executing a new program, opening a file, reading a file, allocating a region of memory, getting the current time of day, and so on. The focus of this text is to describe the services provided by various versions of the UNIX operating system. Describing the UNIX System in a strictly linear fashion, without any forward references to terms that haven't been described yet, is nearly impossible (and would probably be boring). This chapter provides a whirlwind tour of the UNIX System from a programmer's perspective. We'll give some. | Advanced Jp Programming mffie w hivironmcnl Second Edition w. Richard Stevens Stephen A. Rago Completely Updated for Today s UNIX Linux BSD and OS X Programmer COHPUTER holy wars HOLD it right there buddy that SCRUFFY BEARD. THOSE SUSPENDERS. THAT SMUG EXPRESSION. gJ RE ONE OF THOSE DESCENDING UNIX APUTER USERS J HERE S A NICKEL KID. GET YOURSELF A BETTER COMPUTER. ADDISON-WESLEY PROFESSIONAL COMPUTING SERIES G íỲ 1995 United Feature Syndicate Inc. NYC Foreword by Dennis Ritchie Chapter 1. UNIX System Overview Section . Introduction Section . UNIX Architecture Section . Logging In Section . Files and Directories Section . Input and Output Section . Programs and Processes Section . Error Handling Section . User Identification Section . Signals Section . Time Values Section . System Calls and Library Functions Section . Summary Chapter 2. UNIX Standardization and Implementations Section . Introduction Section . UNIX Standardization Section . UNIX System Implementations Section . Relationship of Standards and Implementations Section . Limits Section . Options Section . Feature Test Macros Section . Primitive System Data Types Section . Conflicts Between Standards Section . Summary Chapter 3. File I O Section . Introduction Section . File Descriptors Section . open Function Section . creat Function Section . close Function Section . lseek Function Section . read Function Section . write Function Section . I O Efficiency Section . File Sharing Section . Atomic Operations Section . dup and dup2 Functions Section . sync fsync and fdatasync Functions Section . fcntl Function Section . ioctl Function Section . dev fd Section . Summary Chapter 4. Files and Directories Section . Introduction Section . stat fstat and lstat Functions Section . File Types Section . Set-User-ID and Set-Group-ID Section . File Access Permissions Section .