AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

I�

PIPE( 2) PIPE ( 2) NAME pipe - create an interprocess channel SYNOPSIS int pipe (fildes) int fildes[2]; DESCRIPTION Pipe creates an 1/0 mechanism called a pipe and returns two file descriptors, fildes [0] and fildes [1]. Fildes [0] is opened for reading and fildes[1] is opened for writing. Writes up to 5120 bytes of data are buffered by the pipe before the writing process is blocked. A read on file descriptor fildes [0] accesses the data written to fildes[1] on a first-in-first-out basis. No process may have more than 20 file descriptors open simultaneously. Pipe will fail if 19 or more file descriptors are currently open. jEMFILEj RETURN VALUE Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error. SEE ALSO sh( 1), read(2), write(2). - 1 -

PIPE( 2) PIPE ( 2)<br />

NAME<br />

pipe - create an interprocess channel<br />

SYNOPSIS<br />

int pipe (fildes)<br />

int fildes[2];<br />

DESCRIPTION<br />

Pipe creates an 1/0 mechanism called a pipe and returns two file<br />

descriptors, fildes [0] and fildes [1]. Fildes [0] is opened for reading<br />

and fildes[1] is opened for writing.<br />

Writes up to 5120 bytes of data are buffered by the pipe before<br />

the writing process is blocked. A read on file descriptor fildes [0]<br />

accesses the data written to fildes[1] on a first-in-first-out basis.<br />

No process may have more than 20 file descriptors open simultaneously.<br />

Pipe will fail if 19 or more file descriptors are currently open.<br />

jEMFILEj<br />

RETURN VALUE<br />

Upon successful completion, a value of 0 is returned. Otherwise, a<br />

value of -1 is returned and errno is set to indicate the error.<br />

SEE ALSO<br />

sh( 1), read(2), write(2).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!