Mercurial > illumos > illumos-gate
annotate usr/src/man/man2/pipe.2 @ 14022:19e11862653b
3713 Implement accept4()
3714 Implement pipe2()
3715 Implement dup3()
3716 Implement mkostemp() and mkostemps()
3719 so_socketpair syscall should preserve FD_CLOEXEC flag
Reviewed by: Dan McDonald <danmcd@nexenta.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Garrett D'Amore <garrett@damore.org>
author | Theo Schlossnagle <jesus@omniti.com> |
---|---|
date | Thu, 11 Apr 2013 04:50:36 +0000 |
parents | 5b2854ecc12d |
children |
rev | line source |
---|---|
13304
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
1 '\" te |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
2 .\" Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved. |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
3 .\" Copyright 1989 AT&T |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
4 .\" Portions Copyright (c) 2001, the Institute of Electrical and Electronics Engineers, Inc. and The Open Group. All Rights Reserved. |
14022
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
5 .\" Portions Copyright (c) 2013, OmniTI Computer Consulting, Inc. All Rights Reserved |
13476
5b2854ecc12d
1502 Remove conversion cruft from manpages
Yuri Pankov <yuri.pankov@nexenta.com>
parents:
13304
diff
changeset
|
6 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at |
13304
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
7 .\" http://www.opengroup.org/bookstore/. |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
8 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
9 .\" This notice shall appear on any product containing this material. |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
10 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
11 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
12 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] |
14022
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
13 .TH PIPE 2 "Apr 19, 2013" |
13304
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
14 .SH NAME |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
15 pipe \- create an interprocess channel |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
16 .SH SYNOPSIS |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
17 .LP |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
18 .nf |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
19 #include <unistd.h> |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
20 |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
21 \fBint\fR \fBpipe\fR(\fBint\fR \fIfildes\fR[2]); |
14022
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
22 |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
23 \fBint\fR \fBpipe2\fR(\fBint\fR \fIfildes\fR[2], \fBint\fR \fIflags\fR); |
13304
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
24 .fi |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
25 |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
26 .SH DESCRIPTION |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
27 .sp |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
28 .LP |
14022
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
29 The \fBpipe()\fR and pipe2() functions create an I/O mechanism called a |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
30 pipe and returns two file descriptors, \fIfildes\fR[\fB0\fR] and |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
31 \fIfildes\fR[\fB1\fR]. The files associated with \fIfildes\fR[\fB0\fR] |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
32 and \fIfildes\fR[\fB1\fR] are streams and are both opened for reading and |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
33 writing. The \fBpipe()\fR call will clear the \fBO_NDELAY\fR, |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
34 \fBO_NONBLOCK\fR, and \fBFD_CLOEXEC\fR flags on both file descriptors. The |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
35 \fBfcntl\fR(2) function can be used to set these flags. |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
36 .sp |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
37 .LP |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
38 The \fBpipe2()\fR call will clear the \fBO_NDELAY\fR on both filedescriptors. |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
39 The \fIflags\fR argument may be used to specify attributes on both file |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
40 descriptors. \fBpipe2()\fR called with a \fIflags\fR value of 0 will |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
41 behave identically to \fBpipe()\fR. Values for \fIflags\fR are constructed |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
42 by a bitwise-inclusive-OR of flags from the following list, defined in |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
43 <\fBfcntl.h\fR>. |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
44 .RE |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
45 |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
46 .sp |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
47 .ne 2 |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
48 .na |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
49 \fB\fBO_NONBLOCK\fR\fR |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
50 .ad |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
51 .RS 12n |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
52 Both file descriptors will be placed in non-blocking mode. This corresponds |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
53 to the \fBO_NONBLOCK\fR flag to \fBfcntl\fR(2). |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
54 .RE |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
55 |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
56 .sp |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
57 .ne 2 |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
58 .na |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
59 \fB\fBO_CLOEXEC\fR\fR |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
60 .ad |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
61 .RS 12n |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
62 Both file descriptors will be opened with the FD_CLOEXEC flag set. Both file |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
63 descriptors will be closed prior to any future exec() calls. |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
64 .RE |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
65 |
13304
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
66 .sp |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
67 .LP |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
68 A read from \fIfildes\fR[\fB0\fR] accesses the data written to |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
69 \fIfildes\fR[\fB1\fR] on a first-in-first-out (FIFO) basis and a read from |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
70 \fIfildes\fR[\fB1\fR] accesses the data written to \fIfildes\fR[\fB0\fR] also |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
71 on a \fBFIFO\fR basis. |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
72 .sp |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
73 .LP |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
74 Upon successful completion \fBpipe()\fR marks for update the \fBst_atime\fR, |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
75 \fBst_ctime\fR, and \fBst_mtime\fR fields of the pipe. |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
76 .SH RETURN VALUES |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
77 .sp |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
78 .LP |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
79 Upon successful completion, \fB0\fR is returned. Otherwise, \fB\(mi1\fR is |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
80 returned and \fBerrno\fR is set to indicate the error. |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
81 .SH ERRORS |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
82 .sp |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
83 .LP |
14022
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
84 The \fBpipe()\fR and \fBpipe2()\fR functions will fail if: |
13304
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
85 .sp |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
86 .ne 2 |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
87 .na |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
88 \fB\fBEMFILE\fR\fR |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
89 .ad |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
90 .RS 10n |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
91 More than {\fBOPEN_MAX\fR} file descriptors are already in use by this process. |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
92 .RE |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
93 |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
94 .sp |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
95 .ne 2 |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
96 .na |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
97 \fB\fBENFILE\fR\fR |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
98 .ad |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
99 .RS 10n |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
100 The number of simultaneously open files in the system would exceed a |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
101 system-imposed limit. |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
102 .RE |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
103 |
14022
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
104 .sp |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
105 .ne 2 |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
106 .na |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
107 \fB\fBEFAULT\fR\fR |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
108 .ad |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
109 .RS 10n |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
110 The \fIfildes[2]\fR argument points to an illegal address. |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
111 .RE |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
112 |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
113 .sp |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
114 .LP |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
115 The \fBpipe2()\fR function will also fail if: |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
116 .sp |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
117 .ne 2 |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
118 .na |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
119 \fB\fBEINVAL\fR\fR |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
120 .ad |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
121 .RS 10n |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
122 The \fIflags\fR argument is illegal. Valid \fIflags\fR are zero or a |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
123 bitwise inclusive-OR of \fBO_CLOEXEC\fR and \fBO_NONBLOCK\fR. |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
124 .RE |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
125 |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
126 |
13304
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
127 .SH ATTRIBUTES |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
128 .sp |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
129 .LP |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
130 See \fBattributes\fR(5) for descriptions of the following attributes: |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
131 .sp |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
132 |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
133 .sp |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
134 .TS |
13476
5b2854ecc12d
1502 Remove conversion cruft from manpages
Yuri Pankov <yuri.pankov@nexenta.com>
parents:
13304
diff
changeset
|
135 box; |
5b2854ecc12d
1502 Remove conversion cruft from manpages
Yuri Pankov <yuri.pankov@nexenta.com>
parents:
13304
diff
changeset
|
136 c | c |
5b2854ecc12d
1502 Remove conversion cruft from manpages
Yuri Pankov <yuri.pankov@nexenta.com>
parents:
13304
diff
changeset
|
137 l | l . |
5b2854ecc12d
1502 Remove conversion cruft from manpages
Yuri Pankov <yuri.pankov@nexenta.com>
parents:
13304
diff
changeset
|
138 ATTRIBUTE TYPE ATTRIBUTE VALUE |
13304
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
139 _ |
13476
5b2854ecc12d
1502 Remove conversion cruft from manpages
Yuri Pankov <yuri.pankov@nexenta.com>
parents:
13304
diff
changeset
|
140 Interface Stability Standard |
13304
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
141 _ |
13476
5b2854ecc12d
1502 Remove conversion cruft from manpages
Yuri Pankov <yuri.pankov@nexenta.com>
parents:
13304
diff
changeset
|
142 MT-Level Async-Signal-Safe |
13304
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
143 .TE |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
144 |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
145 .SH SEE ALSO |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
146 .sp |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
147 .LP |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
148 \fBsh\fR(1), \fBfcntl\fR(2), \fBfstat\fR(2), \fBgetmsg\fR(2), \fBpoll\fR(2), |
14022
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
149 \fBputmsg\fR(2), \fBread\fR(2), \fBwrite\fR(2), \fBopen\fR(2), |
19e11862653b
3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents:
13476
diff
changeset
|
150 \fBattributes\fR(5), \fBstandards\fR(5), \fBstreamio\fR(7I) |
13304
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
151 .SH NOTES |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
152 .sp |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
153 .LP |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
154 Since a pipe is bi-directional, there are two separate flows of data. |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
155 Therefore, the size (\fBst_size\fR) returned by a call to \fBfstat\fR(2) with |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
156 argument \fIfildes\fR[\fB0\fR] or \fIfildes\fR[\fB1\fR] is the number of bytes |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
157 available for reading from \fIfildes\fR[\fB0\fR] or \fIfildes\fR[\fB1\fR] |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
158 respectively. Previously, the size (\fBst_size\fR) returned by a call to |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
159 \fBfstat()\fR with argument \fIfildes\fR[\fB1\fR] (the write-end) was the |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
160 number of bytes available for reading from \fIfildes\fR[\fB0\fR] (the |
b54231762cfa
243 system manual pages should live with the software
Richard Lowe <richlowe@richlowe.net>
parents:
diff
changeset
|
161 read-end). |