summaryrefslogtreecommitdiffstats
path: root/man3/stdio.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/stdio.3')
-rw-r--r--man3/stdio.330
1 files changed, 21 insertions, 9 deletions
diff --git a/man3/stdio.3 b/man3/stdio.3
index 3a5a447..73dfca2 100644
--- a/man3/stdio.3
+++ b/man3/stdio.3
@@ -9,7 +9,7 @@
.\" Converted for Linux, Mon Nov 29 16:07:22 1993, faith@cs.unc.edu
.\" Modified, 2001-12-26, aeb
.\"
-.TH stdio 3 2023-07-30 "Linux man-pages 6.05.01"
+.TH stdio 3 2023-12-29 "Linux man-pages 6.7"
.SH NAME
stdio \- standard input/output library functions
.SH LIBRARY
@@ -18,7 +18,7 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.PP
+.P
.BI "FILE *" stdin ;
.BI "FILE *" stdout ;
.BI "FILE *" stderr ;
@@ -30,7 +30,7 @@ Input and output is mapped into logical data streams and the
physical I/O characteristics are concealed.
The functions and macros are
listed below; more information is available from the individual man pages.
-.PP
+.P
A stream is associated with an external file (which may be a physical
device) by
.I opening
@@ -53,7 +53,7 @@ function; all output takes place as if all characters were written by
successive calls to the
.BR fputc (3)
function.
-.PP
+.P
A file is disassociated from a stream by
.I closing
the file.
@@ -63,7 +63,7 @@ the file.
The value of a pointer to a
.I FILE
object is indeterminate after a file is closed (garbage).
-.PP
+.P
A file may be subsequently reopened, by the same or another program
execution, and its contents reclaimed or modified (if it can be
repositioned at the start).
@@ -76,7 +76,7 @@ Other methods of program termination,
such as
.BR abort (3)
do not bother about closing files properly.
-.PP
+.P
At program startup, three text streams are predefined and need not be
opened explicitly:
.I standard input
@@ -93,7 +93,7 @@ and
When opened, the standard error stream is not fully buffered; the standard
input and output streams are fully buffered if and only if the streams do
not refer to an interactive device.
-.PP
+.P
Output streams that refer to terminal devices are always line buffered by
default; pending output to such streams is written automatically whenever
an input stream that refers to a terminal device is read.
@@ -103,7 +103,7 @@ output terminal, it is necessary to
.BR fflush (3)
the standard output before going off and computing so that the output will
appear.
-.PP
+.P
The
.I stdio
library is a part of the library
@@ -115,7 +115,7 @@ SYNOPSIS
sections of the following manual pages indicate which include files are to
be used, what the compiler declaration for the function looks like and
which external variables are of interest.
-.PP
+.P
The following are defined as macros; these names may not be reused without
first removing their current definitions with
.BR #undef :
@@ -192,9 +192,15 @@ T}
\fBfileno\fP(3) T{
return the integer descriptor of the argument stream
T}
+\fBfmemopen\fP(3) T{
+open memory as stream
+T}
\fBfopen\fP(3) T{
stream open functions
T}
+\fBfopencookie\fP(3) T{
+open a custom stream
+T}
\fBfprintf\fP(3) T{
formatted output conversion
T}
@@ -243,6 +249,12 @@ T}
\fBmktemp\fP(3) T{
make temporary filename (unique)
T}
+\fBopen_memstream\fP(3) T{
+open a dynamic memory buffer stream
+T}
+\fBopen_wmemstream\fP(3) T{
+open a dynamic memory buffer stream
+T}
\fBperror\fP(3) T{
system error messages
T}