9103 opengroup acknowledgement should be properly formatted in man pages
[unleashed.git] / usr / src / man / man3head / stdio.h.3head
blob06446d9302180b0420fc4f686cd1957dfce67819
1 .\"
2 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for
3 .\" permission to reproduce portions of its copyrighted documentation.
4 .\" Original documentation from The Open Group can be obtained online at
5 .\" http://www.opengroup.org/bookstore/.
6 .\"
7 .\" The Institute of Electrical and Electronics Engineers and The Open
8 .\" Group, have given us permission to reprint portions of their
9 .\" documentation.
10 .\"
11 .\" In the following statement, the phrase ``this text'' refers to portions
12 .\" of the system documentation.
13 .\"
14 .\" Portions of this text are reprinted and reproduced in electronic form
15 .\" in the SunOS Reference Manual, from IEEE Std 1003.1, 2004 Edition,
16 .\" Standard for Information Technology -- Portable Operating System
17 .\" Interface (POSIX), The Open Group Base Specifications Issue 6,
18 .\" Copyright (C) 2001-2004 by the Institute of Electrical and Electronics
19 .\" Engineers, Inc and The Open Group.  In the event of any discrepancy
20 .\" between these versions and the original IEEE and The Open Group
21 .\" Standard, the original IEEE and The Open Group Standard is the referee
22 .\" document.  The original Standard can be obtained online at
23 .\" http://www.opengroup.org/unix/online.html.
24 .\"
25 .\" This notice shall appear on any product containing this material.
26 .\"
27 .\" The contents of this file are subject to the terms of the
28 .\" Common Development and Distribution License (the "License").
29 .\" You may not use this file except in compliance with the License.
30 .\"
31 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
32 .\" or http://www.opensolaris.org/os/licensing.
33 .\" See the License for the specific language governing permissions
34 .\" and limitations under the License.
35 .\"
36 .\" When distributing Covered Code, include this CDDL HEADER in each
37 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
38 .\" If applicable, add the following below this CDDL HEADER, with the
39 .\" fields enclosed by brackets "[]" replaced with your own identifying
40 .\" information: Portions Copyright [yyyy] [name of copyright owner]
41 .\"
42 .\"
43 .\" Copyright (c) 2001, The IEEE and The Open Group.  All Rights Reserved.
44 .\" Portions Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.
45 .\"
46 .TH STDIO.H 3HEAD "Sep 10, 2004"
47 .SH NAME
48 stdio.h, stdio \- standard buffered input/output
49 .SH SYNOPSIS
50 .LP
51 .nf
52 #include <\fBstdio.h\fR>
53 .fi
55 .SH DESCRIPTION
56 .sp
57 .LP
58 The <\fBstdio.h\fR> header defines the following macros as positive integer
59 constant expressions:
60 .sp
61 .ne 2
62 .na
63 \fB\fBBUFSIZ\fR\fR
64 .ad
65 .RS 13n
66 size of <\fBstdio.h\fR> buffers
67 .RE
69 .sp
70 .ne 2
71 .na
72 \fB\fB_IOFBF\fR\fR
73 .ad
74 .RS 13n
75 input/output fully buffered
76 .RE
78 .sp
79 .ne 2
80 .na
81 \fB\fB_IOLBF\fR\fR
82 .ad
83 .RS 13n
84 input/output line buffered
85 .RE
87 .sp
88 .ne 2
89 .na
90 \fB\fB_IONBF\fR\fR
91 .ad
92 .RS 13n
93 input/output unbuffered
94 .RE
96 .sp
97 .ne 2
98 .na
99 \fB\fBL_ctermid\fR\fR
101 .RS 13n
102 maximum size of character array to hold \fBctermid()\fR output
106 .ne 2
108 \fB\fBL_tmpnam\fR\fR
110 .RS 13n
111 maximum size of character array to hold \fBtmpnam()\fR output
115 .ne 2
117 \fB\fBSEEK_CUR\fR\fR
119 .RS 13n
120 seek relative to current position
124 .ne 2
126 \fB\fBSEEK_END\fR\fR
128 .RS 13n
129 seek relative to end-of-file
133 .ne 2
135 \fB\fBSEEK_SET\fR\fR
137 .RS 13n
138 seek relative to start-of-file
143 The following macros are defined as positive integer constant expressions that
144 denote implementation limits:
146 .ne 2
148 \fB{\fBFILENAME_MAX\fR}\fR
150 .RS 18n
151 Maximum size in bytes of the longest filename string that the implementation
152 guarantees can be opened.
156 .ne 2
158 \fB{\fBFOPEN_MAX\fR}\fR
160 .RS 18n
161 Number of streams that the implementation guarantees can be open
162 simultaneously. The value is at least eight.
166 .ne 2
168 \fB{\fBTMP_MAX\fR}\fR
170 .RS 18n
171 Minimum number of unique filenames generated by \fBtmpnam()\fR. Maximum number
172 of times an application can call \fBtmpnam()\fR reliably. The value of
173 {\fBTMP_MAX\fR} is at least 25. On XSI-conformant systems, the value of
174 {\fBTMP_MAX\fR} is at least 10000.
179 The following macro name is defined as a negative integer constant expression:
181 .ne 2
183 \fB\fBEOF\fR\fR
185 .RS 7n
186 end-of-file return value
191 The following macro name is defined as a null pointer constant:
193 .ne 2
195 \fB\fBNULL\fR\fR
197 .RS 8n
198 null pointer
203 The following macro name is defined as a string constant:
205 .ne 2
207 \fB\fBP_tmpdir\fR\fR
209 .RS 12n
210 default directory prefix for \fBtempnam()\fR
215 The following is defined as expressions of type "pointer to \fBFILE\fR" point
216 to the \fBFILE\fR objects associated, respectively, with the standard error,
217 input, and output streams:
219 .ne 2
221 \fB\fBstderr\fR\fR
223 .RS 10n
224 standard error output stream
228 .ne 2
230 \fB\fBstdin\fR\fR
232 .RS 10n
233 standard input stream
237 .ne 2
239 \fB\fBstdout\fR\fR
241 .RS 10n
242 standard output stream
247 The following data types are defined through \fBtypedef\fR:
249 .ne 2
251 \fB\fBFILE\fR\fR
253 .RS 11n
254 structure containing information about a file
258 .ne 2
260 \fB\fBfpos_t\fR\fR
262 .RS 11n
263 non-array type containing all information needed to specify uniquely every
264 position within a file
268 .ne 2
270 \fB\fBva_list\fR\fR
272 .RS 11n
273 as described in <\fBstdarg.h\fR>
277 .ne 2
279 \fB\fBsize_t\fR\fR
281 .RS 11n
282 as described in <\fBstddef.h\fR>
285 .SH ATTRIBUTES
288 See \fBattributes\fR(5) for descriptions of the following attributes:
293 box;
294 c | c
295 l | l .
296 ATTRIBUTE TYPE  ATTRIBUTE VALUE
298 Interface Stability     Standard
301 .SH SEE ALSO
304 \fBrename\fR(2), \fBctermid\fR(3C), \fBfclose\fR(3C), \fBfdopen\fR(3C),
305 \fBfflush\fR(3C), \fBfgetc\fR(3C), \fBfgetpos\fR(3C), \fBfgets\fR(3C),
306 \fBflockfile\fR(3C), \fBfopen\fR(3C), \fBfputc\fR(3C), \fBfputs\fR(3C),
307 \fBfputwc\fR(3C), \fBfread\fR(3C), \fBfreopen\fR(3C), \fBfseek\fR(3C),
308 \fBfsetpos\fR(3C), \fBftell\fR(3C), \fBfwrite\fR(3C), \fBgetwchar\fR(3C),
309 \fBgetopt\fR(3C), \fBperror\fR(3C), \fBpopen\fR(3C), \fBprintf\fR(3C),
310 \fBremove\fR(3C), \fBrewind\fR(3C), \fBscanf\fR(3C), \fBsetbuf\fR(3C),
311 \fBstdio\fR(3C), \fBsystem\fR(3C), \fBtmpfile\fR(3C), \fBtmpnam\fR(3C),
312 \fBungetc\fR(3C), \fBvprintf\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)