pipe(2)
NAME
pipe − create an interprocess channel
SYNOPSIS
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 4096 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.
[EMFILE] pipe will fail if 63 or more file descriptors are currently open.
[ENFILE] The system file table or system inode table is full.
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
read(2), write(2).
sh(1) in the CX/UX User’s Reference Manual.
CX/UX Programmer’s Reference Manual