io_pipe man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

io_pipe(3)							    io_pipe(3)

NAME
       io_pipe - create a Unix pipe

SYNTAX
       #include <io.h>

       int io_pipe(int64 pfd[2]);

DESCRIPTION
       io_pipe creates a new UNIX ``pipe.'' The pipe can receive data and pro‐
       vide data; any bytes written to the pipe can then be read from the pipe
       in the same order.

       A  pipe	is  typically  stored in an 8192-byte memory buffer; the exact
       number depends on the UNIX kernel. Bytes are written to the end of  the
       buffer  and read from the beginning of the buffer. Once a byte has been
       read, it is eliminated from the buffer, making space for	 another  byte
       to  be written; readers cannot ``rewind'' a pipe to read old data. Once
       8192 bytes have been written to the buffer, the pipe will not be	 ready
       for  further  writing  until some of the bytes have been read. Once all
       the bytes written have been read, the pipe will not be ready  for  fur‐
       ther reading until more bytes are written.

       io_pipe	sets  d[0]  to the number of a new descriptor reading from the
       pipe, and sets d[1] to the number of a new descriptor  writing  to  the
       pipe.  It  then returns 1 to indicate success. If something goes wrong,
       io_pipe returns 0, setting errno to indicate the error; in this case it
       frees  any  memory  that it allocated for the new pipe, and it leaves d
       alone.

SEE ALSO
       io_readfile(3), io_createfile(3), io_socketpair(3)

								    io_pipe(3)
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net