UNIX Systems Programming for SVR4

UNIX Systems Programming for SVR4

Paperback

$31.46 $34.95 Save 10% Current price is $31.46, Original price is $34.95. You Save 10%.

Product Details

ISBN-13: 9781565921634
Publisher: O'Reilly Media, Incorporated
Publication date: 08/28/1996
Series: Nutshell Handbooks Series
Pages: 617
Product dimensions: 7.02(w) x 9.15(h) x 1.36(d)

About the Author

David A. Curry has been programming and administering UNIX systems since 1978. He has authored books on UNIX and C programming and UNIX security. Dave has worked for the Research Institute for Advanced Computer Science, SRI International, and the Purdue University Engineering Computer Network. He currently serves as the Purdue Computer Emergency Response Team's representative to the Forum of Incident Response and Security Teams. Dave's hobbies include amateur radio and reading military and science fiction, but most of his time is spent trying to keep up with the kids.

Table of Contents

Chapter 1. Introduction to SVR4
Standards Compliance
Notes on Compilers
The HP-UX 10.x Compiler
The IRIX 5.x Compiler
The Solaris 2.x Compiler
The GNU C Compiler
The BSD Source Compatibility Package

Chapter 2. Utility Routines
Manipulating Character Strings
Computing the Length of a String
Comparing Character Strings
Copying Character Strings
Searching Character Strings
Non-Standard Character String Functions
Porting Notes
Manipulating Byte Strings
Comparing Byte Strings
Copying Byte Strings
Searching Byte Strings
Initializing Byte Strings
Porting Notes
Manipulating Character Classes
Testing Character Class Membership
Changing Character Class Membership
Porting Notes
Dynamic Memory Allocation
Porting Notes
Manipulating Temporary Files
Porting Notes
Parsing Command Line Arguments
Porting Notes
Miscellaneous
String to Number Conversion
Printing Error Messages
Pausing a Program
Exiting a Program
Chapter Summary

Chapter 3. Low-Level I/O Routines
File Descriptors
Opening and Closing Files
Porting Notes
Input and Output
Repositioning the Read/Write Offset
Porting Notes
Duplicating File Descriptors
Chapter Summary

Chapter 4. The Standard I/O Library
Data Types and Constants
Opening and Closing Files
Porting Notes
Character-Based Input and Output
Line-Based Input and Output
Buffer-Based Input and Output
Formatted Input and Output
The printf Functions
The scanf Functions
Porting Notes
Repositioning the Read/Write Offset
Reassigning a File Pointer
Buffering
Porting Notes
Stream Status
File Pointers and File Descriptors
Chapter Summary

Chapter 5. Files and Directories
File System Concepts
The UNIX File System
Basic File Types
Removable File Systems
Device Numbers
I-Numbers, the I-List, and I-Nodes
Other File Types
Obtaining File Attributes
Getting Information From an I-Node
Getting Information From a Symbolic Link
Determining the Accessibility of a File
Changing File Attributes
Changing a File's Permission Bits
Changing a File's Ownership
Changing a File's Size
Changing a File's Access and Modification Times
Creating and Deleting Files and Directories
Deleting Files
Creating and Deleting Directories
Creating Links
Renaming Files and Directories
Working With Directories
Determining the Current Working Directory
Changing the Current Working Directory
Reading Directories
Chapter Summary

Chapter 6. Special-Purpose File Operations
File Descriptor Attributes
Managing Multiple File Descriptors
The select Function
The poll Function
File and Record Locking
Locking Files With fcntl
Locking Files With lockf
Porting Notes
Memory-Mapped Files
Mapping a File Into Memory
Removing a Mapping
Changing the Protection Mode of Mapped Segments
Providing Advice to the System
Synchronizing Memory With Physical Storage
The /dev/fd File System
Miscellaneous Functions
Controlling File Creation Modes
The Root Directory
Synchronizing a File With the Disk
Chapter Summary

Chapter 7. Time of Day Operations
The Complexities of Time
Obtaining the Current Time
Porting Notes
Obtaining the Local Timezone
Porting Notes
Converting Between UNIX Time and Human Time
Porting Notes
Formatting Date Strings
Porting Notes
Chapter Summary

Chapter 8. Users and Groups
Login Names
The User-Id Number
Porting Notes
The Group-Id Number
Group Membership
Porting Notes
The Passwo

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews