pipe \- create an interprocess channel
creates an I/O mechanism called a pipe.
The file descriptors returned can
be used in read and write operations.
When the pipe is written using the descriptor
up to 4096 bytes of data are buffered
before the writing process is suspended.
A read using the descriptor
It is assumed that after the
will pass data through the
to set up a linear array of processes
pipe (no buffered data) with only one end
(all write file descriptors closed)
sh(1), read(2), write(2), fork(2)
The function value zero is returned if the
too many files are already open.
A signal is generated if a write on a pipe with only one end is attempted.
Should more than 4096 bytes be necessary in any
pipe among a loop of processes, deadlock will occur.
(read file descriptor in r0)
(write file descriptor in r1)