Seth Woolley's Man Viewer

Manual for pipe - man 2 pipe

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

PIPE(2)                    Linux Programmer's Manual                   PIPE(2)



NAME
       pipe(2,8) - create pipe(2,8)

SYNOPSIS
       #include <unistd.h>

       int pipe(2,8)(int filedes[2]);

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

RETURN VALUE
       On  success,  zero is returned.  On error(8,n), -1 is returned, and errno is
       set(7,n,1 builtins) appropriately.

ERRORS
       EFAULT filedes is not valid.

       EMFILE Too many file(1,n) descriptors are in(1,8) use by the process.

       ENFILE The system limit on the total number  of  open(2,3,n)  files  has  been
              reached.

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

SEE ALSO
       fork(2), read(2,n,1 builtins)(2), socketpair(2), write(1,2)(2)



Linux 2.6.7                       2004-06-17                           PIPE(2)

References for this manual (incoming links)