Files
oldlinux-files/Ref-docs/syscalls/syscalls_23.html
2024-02-19 00:21:47 -05:00

31 lines
1.3 KiB
HTML

<html><!-- This HTML file has been created by texi2html 1.29
from syscalls.texi on 4 June 1994 -->
<TITLE>Syscall specifications of Linux - pipe</TITLE>
<P>Go to the <A HREF="syscalls_22.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_22.html">previous</A>, <A HREF="syscalls_24.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_24.html">next</A> section.<P>
<H2><A NAME="SEC23" HREF="syscalls_toc.html#SEC23" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC23">pipe</A></H2>
<P>
<H3>SYNOPSIS</H3>
<P>
<CODE>int pipe(int <VAR>filedes[2]</VAR>);</CODE>
<H3>PARAMETERS</H3>
<P>
<VAR>filedes</VAR>: [out] the array containing the end points.
<H3>DESCRIPTION</H3>
<P>
Creates a pair of pipe end points. The flow is from <VAR>filedes[1]</VAR> to
<VAR>filedes[0]</VAR>.
<P>
<H3>RETURN VALUE</H3>
<P>
On success zero is returned. On error, -1 is returned and <CODE>errno</CODE> is
set to one of the following values:
<P>
<UL>
<LI><CODE>EMFILE</CODE>, <CODE>ENFILE</CODE> and <CODE>EFAULT</CODE>.
</UL>
<P>
<P>Go to the <A HREF="syscalls_22.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_22.html">previous</A>, <A HREF="syscalls_24.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_24.html">next</A> section.<P>