PIPE(2) HP Integral PC PIPE(2) PIPE(2) HP Integral PC PIPE(2) PIPE(2) HP Integral PC PIPE(2) PIPE(2) HP Integral PC PIPE(2) NAME NAME NAME NAME pipe - create an interprocess channel SYNOPSIS SYNOPSIS SYNOPSIS SYNOPSIS int pipe (fildes) int fildes[2]; DESCRIPTION DESCRIPTION DESCRIPTION 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. Writes up to 10240 bytes of data are buffered by the pipe before the writing process is blocked. A read on file descriptor fildes [0] accesses the data written to fildes [1] on a first-in-first-out basis. No process may have more than 20 file descriptors open simultaneously. Pipe will fail if 19 or more file descriptors are currently open. [EMFILE] RETURN VALUE RETURN VALUE RETURN VALUE RETURN VALUE Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error. SEE ALSO SEE ALSO SEE ALSO SEE ALSO sh(1), read(2), write(2). Hewlett-Packard - 1 - (printed 12/11/84)