summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/fopen.32
-rw-r--r--lib/libc/stdio/scanf.34
-rw-r--r--lib/libc/stdio/stdio.322
-rw-r--r--lib/libc/stdio/tmpnam.32
4 files changed, 15 insertions, 15 deletions
diff --git a/lib/libc/stdio/fopen.3 b/lib/libc/stdio/fopen.3
index 23d790c..87bb049 100644
--- a/lib/libc/stdio/fopen.3
+++ b/lib/libc/stdio/fopen.3
@@ -142,7 +142,7 @@ The original stream (if it exists) is closed.
The
.Fa mode
argument is used just as in the
-.Xr fopen
+.Fn fopen
function.
The primary use of the
.Fn freopen
diff --git a/lib/libc/stdio/scanf.3 b/lib/libc/stdio/scanf.3
index 377a602..dbfff88 100644
--- a/lib/libc/stdio/scanf.3
+++ b/lib/libc/stdio/scanf.3
@@ -200,7 +200,7 @@ the next pointer must be a pointer to
.Em int .
.It Cm D
Equivalent to
-.Xr ld ;
+.Cm ld ;
this exists only for backwards compatibility.
.It Cm i
Matches an optionally signed integer;
@@ -221,7 +221,7 @@ the next pointer must be a pointer to
.Em unsigned int .
.It Cm O
Equivalent to
-.Xr lo ;
+.Cm lo ;
this exists for backwards compatibility.
.It Cm u
Matches an optionally signed decimal integer;
diff --git a/lib/libc/stdio/stdio.3 b/lib/libc/stdio/stdio.3
index 09d7e36..7ebc782 100644
--- a/lib/libc/stdio/stdio.3
+++ b/lib/libc/stdio/stdio.3
@@ -151,7 +151,7 @@ function.
The
.Nm stdio
library is a part of the library
-.Xr libc
+.Nm libc
and routines are automatically loaded as needed by the compilers
.Xr cc 1
and
@@ -192,15 +192,15 @@ without first removing their current definitions with
.Dv stdin ,
.Dv stdout .
Function versions of the macro functions
-.Xr feof ,
-.Xr ferror ,
-.Xr clearerr ,
-.Xr fileno ,
-.Xr getc ,
-.Xr getchar ,
-.Xr putc ,
+.Fn feof ,
+.Fn ferror ,
+.Fn clearerr ,
+.Fn fileno ,
+.Fn getc ,
+.Fn getchar ,
+.Fn putc ,
and
-.Xr putchar
+.Fn putchar
exist and will be used if the macros
definitions are explicitly removed.
.Sh SEE ALSO
@@ -211,9 +211,9 @@ definitions are explicitly removed.
.Sh BUGS
The standard buffered functions do not interact well with certain other
library and system functions, especially
-.Xr vfork
+.Xr vfork 2
and
-.Xr abort .
+.Xr abort 3 .
.Sh STANDARDS
The
.Nm stdio
diff --git a/lib/libc/stdio/tmpnam.3 b/lib/libc/stdio/tmpnam.3
index 3b053ee..d7e0326 100644
--- a/lib/libc/stdio/tmpnam.3
+++ b/lib/libc/stdio/tmpnam.3
@@ -201,7 +201,7 @@ Second, most historic implementations provide only a limited number
of possible temporary file names (usually 26) before file names will
start being recycled.
Third, the System V implementations of these functions (and of
-.Xr mktemp )
+.Xr mktemp 3 )
use the
.Xr access 2
function to determine whether or not the temporary file may be created.
OpenPOWER on IntegriCloud