pipe.2 (13750) | pipe.2 (15017) |
---|---|
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. --- 66 unchanged lines hidden (view full) --- 75Writing on such a pipe causes the writing process to receive 76a 77.Dv SIGPIPE 78signal. 79Widowing a pipe is the only way to deliver end-of-file to a reader: 80after the reader consumes any buffered data, reading a widowed pipe 81returns a zero count. 82.Pp | 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. --- 66 unchanged lines hidden (view full) --- 75Writing on such a pipe causes the writing process to receive 76a 77.Dv SIGPIPE 78signal. 79Widowing a pipe is the only way to deliver end-of-file to a reader: 80after the reader consumes any buffered data, reading a widowed pipe 81returns a zero count. 82.Pp |
83Pipes are really a special case of the 84.Xr socketpair 2 85call and, in fact, are implemented as such in the system. 86.Pp | |
87The bidirectional nature of this implementation of pipes is not 88portable to older systems, so it is recommended to use the convention 89for using the endpoints in the traditional manner when using a 90pipe in one direction. 91.Sh RETURN VALUES 92On successful creation of the pipe, zero is returned. Otherwise, 93a value of -1 is returned and the variable 94.Va errno --- 29 unchanged lines hidden --- | 83The bidirectional nature of this implementation of pipes is not 84portable to older systems, so it is recommended to use the convention 85for using the endpoints in the traditional manner when using a 86pipe in one direction. 87.Sh RETURN VALUES 88On successful creation of the pipe, zero is returned. Otherwise, 89a value of -1 is returned and the variable 90.Va errno --- 29 unchanged lines hidden --- |