UNIX System Programming: A Programmer's Guide to Software DevelopmentThis edition has been restructured in two parts - fundamental system services, and advanced and special features. It has also been updated throughout to reflect the following hierarchy of standards in the UNIX world - the IEEE POSIX standard, AT & T's SVID (System V Interface Definition) Issue 3, corresponding to UNIX System V.4, and X/Open. In an appendix new to this edition, the relationship between UNIX implementations and standards is explored. All examples conform to UNIX System V and the European Standard XOPEN. |
Contents
Basic concepts and terminology | 1 |
The file | 7 |
The file in context | 39 |
Copyright | |
11 other sections not shown
Common terms and phrases
argc argument associated block buffer BUFSIZE bytes calling process Chapter child process client const char contains control terminal create current working directory defined device disk errno error example exec execute Exercise exit fcntl FIFO file descriptor file system filedes filename flags fopen fork fprintf(stderr function getc group-id header file include fcntl.h include stdio.h include unistd.h inode integer inter-process communication interface kernel line discipline lock malloc message queue mode newline normally nread NULL number of characters open file parameter parent pathname permissions perror pipe printf process-id pseudo terminal pseudo tty read and write return value semaphore semid server shared memory shell sigaction SIGALRM SIGINT signal signal.h size_t socket sockfd specified Standard I/O Library standard input standard output stdio.h stdlib.h string struct superuser system call time_t timeout UNIX file UNIX system user-id void waitpid zero