PIPE(2) DOMAIN/IX Reference Manual (SYS5) PIPE(2)
NAME
pipe - create an interprocess channel
USAGE
int pipe (fildes)
int fildes[2];
DESCRIPTION
Pipe creates an I/O mechanism called a pipe and returns two
file descriptors, fildes[0] and fildes[1]. Fildes[0] is
opened for reading and fildes[1] is opened for writing.
Up to 5120 bytes of data are buffered by the pipe before the
writing process is blocked. A read-only file descriptor
fildes[0] accesses the data written to fildes[1] on a
first-in-first-out (FIFO) basis.
NOTES
Named pipes may not be opened for both reading and writing.
RETURN VALUE
Upon successful completion, pipe returns zero (0). Other-
wise, it returns -1 and sets errno to indicate the error.
ERRORS
Pipe will fail if:
[EMFILE] 19 or more file descriptors are currently
open.
[ENFILE] The system file table is full.
RELATED INFORMATION
sh(1), read(2), write(2)
Printed 8/1/85 PIPE-1