1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)pipe.2 8.1 (Berkeley) 6/4/93 |
33.\" $FreeBSD: head/lib/libc/sys/pipe.2 57686 2000-03-02 09:14:21Z sheldonh $ |
34.\" 35.Dd June 4, 1993 36.Dt PIPE 2 37.Os BSD 4 38.Sh NAME 39.Nm pipe 40.Nd create descriptor pair for interprocess communication 41.Sh SYNOPSIS --- 39 unchanged lines hidden (view full) --- 81after the reader consumes any buffered data, reading a widowed pipe 82returns a zero count. 83.Pp 84The bidirectional nature of this implementation of pipes is not 85portable to older systems, so it is recommended to use the convention 86for using the endpoints in the traditional manner when using a 87pipe in one direction. 88.Sh RETURN VALUES |
89On successful creation of the pipe, zero is returned. 90Otherwise, |
91a value of -1 is returned and the variable 92.Va errno 93set to indicate the 94error. 95.Sh ERRORS 96The 97.Fn pipe 98call will fail if: --- 25 unchanged lines hidden --- |