NAME
|
pipe – create an interprocess channel |
SYNOPSIS
|
#include <u.h> #include <libc.h> |
DESCRIPTION
|
Pipe creates a buffered channel for interprocess I/O communication.
Two file descriptors are returned in fd. Data written to fd[1]
is available for reading from fd[0] and data written to fd[0]
is available for reading from fd[1].
|
SOURCE
|
/sys/src/libc/9syscall |
SEE ALSO
|
intro(2), read(2), pipe(3) |
DIAGNOSTICS
|
Sets errstr. |
BUGS
|
If a read or a write of a pipe is interrupted, some unknown number
of bytes may have been transferred. When a read from a pipe returns 0 bytes, it usually means end of file but is indistinguishable from reading the result of an explicit write of zero bytes. |