Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pipe(2) — sysv — mips UMIPS RISC/os 4.52

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

read(2)

write(2)

sh(1)



PIPE(2-SysV)        RISC/os Reference Manual         PIPE(2-SysV)



NAME
     pipe - create an interprocess channel

SYNOPSIS
     int pipe (fildes)
     int fildes[2];

DESCRIPTION
     pipe creates an I/O 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.

     Up to 5120 bytes of data are buffered by the pipe before the
     writing process is blocked.  A read only file descriptor
     fildes[0] accesses the data written to fildes[1] on a
     first-in-first-out (FIFO) basis.


ERRORS
     pipe will fail if:

     [EMFILE]            NOFILES file descriptors are currently
                         open.

     [ENFILE]            The system file table is full.

SEE ALSO
     read(2), write(2).
     sh(1) in the User's Reference Manual.

DIAGNOSTICS
     Upon successful completion, a value of 0 is returned.  Oth-
     erwise, a value of -1 is returned and errno is set to indi-
     cate the error.





















                         Printed 1/15/91                   Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026