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. |
From inside the book
Results 1-3 of 46
Page 159
... pipe * / write ( p [ 1 ] , & c , 1 ) ; / * reset alarm * / alarm ( 0 ) ; if ( ( ++ count % 1024 ) == 0 ) printf ... pipes What happens if the file descriptor that Pipes 159.
... pipe * / write ( p [ 1 ] , & c , 1 ) ; / * reset alarm * / alarm ( 0 ) ; if ( ( ++ count % 1024 ) == 0 ) printf ... pipes What happens if the file descriptor that Pipes 159.
Page 160
... pipe is closed ? There are two cases : 1 . 2 . Closing the write - only file descriptor If there are other processes ... pipes Closing pipes Non-blocking reads and writes.
... pipe is closed ? There are two cases : 1 . 2 . Closing the write - only file descriptor If there are other processes ... pipes Closing pipes Non-blocking reads and writes.
Page 163
... ( pipe empty ) ( pipe empty ) ( pipe empty ) MSG = hello ( pipe empty ) ( pipe empty ) ( pipe empty ) MSG = hello ... Pipes 163 Using select to handle multiple pipes.
... ( pipe empty ) ( pipe empty ) ( pipe empty ) MSG = hello ( pipe empty ) ( pipe empty ) ( pipe empty ) MSG = hello ... Pipes 163 Using select to handle multiple pipes.
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