Differences between current version and revision by previous author of pipe(2).
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Sunday, March 16, 2003 6:25:03 pm | by PerryLorier | |
Older page: | version 1 | Last edited on Tuesday, June 4, 2002 12:23:44 am | by perry | Revert |
@@ -1,63 +1,24 @@
-PIPE
-!!!PIPE
-NAME
-SYNOPSIS
-DESCRIPTION
-RETURN VALUE
-ERRORS
-CONFORMING TO
-SEE ALSO
-----
!!NAME
+pipe - create pipe
-
-pipe - create pipe
!!SYNOPSIS
+ __#include <unistd.h>__
+ __int pipe(int__ ''filedes''__[[2]);__
-__#include __
-
-
-__int pipe(int__ ''filedes''__[[2]);__
!!DESCRIPTION
+pipe(2) 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.
-
-__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
+On success, zero is returned. On error, -1 is returned, and ''errno'' is set appropriately.
-
-On success, zero is returned. On error, -1 is returned, and
-''errno'' is set appropriately.
!!ERRORS
+;[EMFILE]: Too many file descriptors are in use by the process.
+;[ENFILE]: The system file table is full.
+;[EFAULT]: ''filedes'' is not valid.
-
-__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
+SVr4, SVID, AT
-
-SVr4, SVID, AT
!!SEE ALSO
-
-
-
read(2), write(2), fork(2),
-
socketpair(2)
-----
+read(2), write(2), fork(2), socketpair(2)