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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
diff --git a/man/libbsd.7 b/man/libbsd.7
index 676e130..559eee4 100644
--- a/man/libbsd.7
+++ b/man/libbsd.7
@@ -76,7 +76,7 @@ The package also provides a
.Nm libbsd-ctor
static library that can be used to inject automatic constructors into a
program so that the
-.Fn setproctitle_init 3
+.Xr setproctitle_init 3
function gets invoked automatically at startup time.
This can be done with the
.Xr pkgconf 1
@@ -140,9 +140,9 @@ This is the list of functions that provide multiple implementations:
.It Fn strnunvis 3
.Nx
added
-.Fn strnvis 3
+.Xr strnvis 3
and
-.Fn strnunvis 3
+.Xr strnunvis 3
but unfortunately made it incompatible with the existing one in
.Ox
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
a limit of 32).
Use
-.Fn getline 3
+.Xr getline 3
instead, which is available in many systems and required by
.St -p1003.1-2008 .
.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
a limit of 32).
Use
-.Fn fgetwc 3
+.Xr fgetwc 3
instead, which is available in many systems and required by
.St -isoC-99
and
@@ -201,7 +201,7 @@ and
.It Fn funopen 3
Unportable, requires assistance from the stdio layer or some hook framework.
On GNU systems the
-.Fn fopencookie 3
+.Xr fopencookie 3
function can be used.
Otherwise the code needs to be prepared for neither of these functions being
available.
@@ -240,16 +240,16 @@ This function is provided by
2.26, and
.Nm musl
1.2.2.
-.It Fn arc4random 3
-.It Fn arc4random_buf 3
-.It Fn arc4random_uniform 3
+.It Xr arc4random 3
+.It Xr arc4random_buf 3
+.It Xr arc4random_uniform 3
These functions are provided by
.Nm glibc
2.36.
Note that it does not provide the
-.Fn arc4random_stir 3
+.Xr arc4random_stir 3
and
-.Fn arc4random_addrandom 3
+.Xr arc4random_addrandom 3
functions.
.El
.Sh SEE ALSO
diff --git a/man/strtoi.3bsd b/man/strtoi.3bsd
index 0e63da1..15102da 100644
--- a/man/strtoi.3bsd
+++ b/man/strtoi.3bsd
@@ -233,7 +233,7 @@ function first appeared in
.Nx 7.0 .
.Ox
introduced the
-.Fn strtonum 3bsd
+.Xr strtonum 3bsd
function for the same purpose, but the interface makes it impossible to
properly differentiate illegal returns.
.Sh BUGS
diff --git a/man/strtonum.3bsd b/man/strtonum.3bsd
index 1041782..a4ed2bb 100644
--- a/man/strtonum.3bsd
+++ b/man/strtonum.3bsd
@@ -154,9 +154,9 @@ function first appeared in
was redesigned in
.Nx 8.0
as
-.Fn strtoi 3bsd
+.Xr strtoi 3bsd
and
-.Fn strtou 3bsd .
+.Xr strtou 3bsd .
.Sh CAVEATS
The
.Fn strtonum
@@ -186,6 +186,6 @@ To overcome the shortcomings of
.Fn strtonum
.Nx
provides
-.Fn strtou 3bsd
+.Xr strtou 3bsd
and
-.Fn strtoi 3bsd .
+.Xr strtoi 3bsd .
diff --git a/man/strtou.3bsd b/man/strtou.3bsd
index fe46bd1..d7e02eb 100644
--- a/man/strtou.3bsd
+++ b/man/strtou.3bsd
@@ -233,7 +233,7 @@ function first appeared in
.Nx 7.0 .
.Ox
introduced the
-.Fn strtonum 3bsd
+.Xr strtonum 3bsd
function for the same purpose, but the interface makes it impossible to
properly differentiate illegal returns.
.Sh BUGS