man: Markup function references with Xr instead of Fn

These references had man page sections in them, so using Fn meant that
these appeared as function arguments.
This commit is contained in:
Guillem Jover 2023-10-10 01:52:37 +02:00
parent b7367c9ced
commit f02562d64a
4 changed files with 17 additions and 17 deletions

View File

@ -76,7 +76,7 @@ The package also provides a
.Nm libbsd-ctor .Nm libbsd-ctor
static library that can be used to inject automatic constructors into a static library that can be used to inject automatic constructors into a
program so that the program so that the
.Fn setproctitle_init 3 .Xr setproctitle_init 3
function gets invoked automatically at startup time. function gets invoked automatically at startup time.
This can be done with the This can be done with the
.Xr pkgconf 1 .Xr pkgconf 1
@ -140,9 +140,9 @@ This is the list of functions that provide multiple implementations:
.It Fn strnunvis 3 .It Fn strnunvis 3
.Nx .Nx
added added
.Fn strnvis 3 .Xr strnvis 3
and and
.Fn strnunvis 3 .Xr strnunvis 3
but unfortunately made it incompatible with the existing one in but unfortunately made it incompatible with the existing one in
.Ox .Ox
and Freedesktop's libbsd (the former having existed for over ten years). and Freedesktop's libbsd (the former having existed for over ten years).
@ -184,7 +184,7 @@ An implementation has to choose between leaking buffers or being reentrant
for a limited amount of streams (this implementation chose the latter with for a limited amount of streams (this implementation chose the latter with
a limit of 32). a limit of 32).
Use Use
.Fn getline 3 .Xr getline 3
instead, which is available in many systems and required by instead, which is available in many systems and required by
.St -p1003.1-2008 . .St -p1003.1-2008 .
.It Fn fgetwln 3 .It Fn fgetwln 3
@ -193,7 +193,7 @@ An implementation has to choose between leaking buffers or being reentrant
for a limited amount of streams (this implementation chose the latter with for a limited amount of streams (this implementation chose the latter with
a limit of 32). a limit of 32).
Use Use
.Fn fgetwc 3 .Xr fgetwc 3
instead, which is available in many systems and required by instead, which is available in many systems and required by
.St -isoC-99 .St -isoC-99
and and
@ -201,7 +201,7 @@ and
.It Fn funopen 3 .It Fn funopen 3
Unportable, requires assistance from the stdio layer or some hook framework. Unportable, requires assistance from the stdio layer or some hook framework.
On GNU systems the On GNU systems the
.Fn fopencookie 3 .Xr fopencookie 3
function can be used. function can be used.
Otherwise the code needs to be prepared for neither of these functions being Otherwise the code needs to be prepared for neither of these functions being
available. available.
@ -240,16 +240,16 @@ This function is provided by
2.26, and 2.26, and
.Nm musl .Nm musl
1.2.2. 1.2.2.
.It Fn arc4random 3 .It Xr arc4random 3
.It Fn arc4random_buf 3 .It Xr arc4random_buf 3
.It Fn arc4random_uniform 3 .It Xr arc4random_uniform 3
These functions are provided by These functions are provided by
.Nm glibc .Nm glibc
2.36. 2.36.
Note that it does not provide the Note that it does not provide the
.Fn arc4random_stir 3 .Xr arc4random_stir 3
and and
.Fn arc4random_addrandom 3 .Xr arc4random_addrandom 3
functions. functions.
.El .El
.Sh SEE ALSO .Sh SEE ALSO

View File

@ -233,7 +233,7 @@ function first appeared in
.Nx 7.0 . .Nx 7.0 .
.Ox .Ox
introduced the introduced the
.Fn strtonum 3bsd .Xr strtonum 3bsd
function for the same purpose, but the interface makes it impossible to function for the same purpose, but the interface makes it impossible to
properly differentiate illegal returns. properly differentiate illegal returns.
.Sh BUGS .Sh BUGS

View File

@ -154,9 +154,9 @@ function first appeared in
was redesigned in was redesigned in
.Nx 8.0 .Nx 8.0
as as
.Fn strtoi 3bsd .Xr strtoi 3bsd
and and
.Fn strtou 3bsd . .Xr strtou 3bsd .
.Sh CAVEATS .Sh CAVEATS
The The
.Fn strtonum .Fn strtonum
@ -186,6 +186,6 @@ To overcome the shortcomings of
.Fn strtonum .Fn strtonum
.Nx .Nx
provides provides
.Fn strtou 3bsd .Xr strtou 3bsd
and and
.Fn strtoi 3bsd . .Xr strtoi 3bsd .

View File

@ -233,7 +233,7 @@ function first appeared in
.Nx 7.0 . .Nx 7.0 .
.Ox .Ox
introduced the introduced the
.Fn strtonum 3bsd .Xr strtonum 3bsd
function for the same purpose, but the interface makes it impossible to function for the same purpose, but the interface makes it impossible to
properly differentiate illegal returns. properly differentiate illegal returns.
.Sh BUGS .Sh BUGS