*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> pipe (2)              



NAME    [Toc]    [Back]

       pipe - create pipe

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>

       int pipe(int filedes[2]);

DESCRIPTION    [Toc]    [Back]

       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.

RETURN VALUE    [Toc]    [Back]

       On  success,  zero is returned.	On error, -1 is returned, and errno is
       set appropriately.

ERRORS    [Toc]    [Back]

       EMFILE Too many file descriptors are in use by the process.

       ENFILE The system file table is full.

       EFAULT filedes is not valid.

CONFORMING TO    [Toc]    [Back]

       SVr4, SVID, AT&T, POSIX, X/OPEN, BSD 4.3

SEE ALSO    [Toc]    [Back]

       read(2), write(2), fork(2), socketpair(2)

Linux 0.99.11			  1993-07-23			       PIPE(2)
[ Back ]
 Similar pages
Name OS Title
tee IRIX pipe fitting
tee HP-UX pipe fitting
tee FreeBSD pipe fitting
tee OpenBSD pipe fitting
popen IRIX initiate pipe to/from a process
popen Tru64 Initiates a pipe to a process
pclose Tru64 Closes a pipe to a process
udbp FreeBSD USB Double Bulk Pipe driver
fifo Linux first-in first-out special file, named pipe
pxfisfifo IRIX Tests for pipe or a FIFO special file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service