PIPE(2)

NAME
pipe - create pipe

SYNOPSIS
#include <unistd.h>
int pipe (int *filedes)

DESCRIPTION
pipe() creates a pair of file descriptors, pointing to a pipe inode, and places them in the array pointed to by filedes. filedes[0] is for reading, filedes[1] is for writing. 0 is returned on success, -1 is returned on failure.

FILES
linux/fs/pipe.c
/usr/include/linux/sys.h
/usr/include/unistd.h

SEE ALSO
fork(2)

BUGS
-1 is returned for error.