summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmc <>2022-09-11 06:38:11 +0000
committerjmc <>2022-09-11 06:38:11 +0000
commit3e268b5d835a2d2ed944b2e03c9cc7f178765bb3 (patch)
treefef440286902c30bd0cbff19e3da976f80de9175
parent95806d271a4d8ed4658ab14b5713895696bb8919 (diff)
downloadopenbsd-3e268b5d835a2d2ed944b2e03c9cc7f178765bb3.tar.gz
openbsd-3e268b5d835a2d2ed944b2e03c9cc7f178765bb3.tar.bz2
openbsd-3e268b5d835a2d2ed944b2e03c9cc7f178765bb3.zip
.Li -> .Vt where appropriate;
from josiah frentsos, tweaked by schwarze ok schwarze
-rw-r--r--src/lib/libc/net/ether_aton.36
-rw-r--r--src/lib/libc/net/getaddrinfo.330
-rw-r--r--src/lib/libc/net/getnameinfo.312
-rw-r--r--src/lib/libc/net/getpeereid.38
-rw-r--r--src/lib/libc/net/getrrsetbyname.318
-rw-r--r--src/lib/libc/net/htonl.313
-rw-r--r--src/lib/libc/net/inet_addr.36
-rw-r--r--src/lib/libc/net/inet_net_ntop.38
-rw-r--r--src/lib/libc/net/inet_ntop.36
-rw-r--r--src/lib/libc/stdlib/atof.36
-rw-r--r--src/lib/libc/stdlib/atoi.36
-rw-r--r--src/lib/libc/stdlib/atol.36
-rw-r--r--src/lib/libc/stdlib/atoll.36
-rw-r--r--src/lib/libc/stdlib/div.36
-rw-r--r--src/lib/libc/stdlib/getopt_long.36
-rw-r--r--src/lib/libc/stdlib/imaxdiv.38
-rw-r--r--src/lib/libc/stdlib/ldiv.38
-rw-r--r--src/lib/libc/stdlib/lldiv.38
-rw-r--r--src/lib/libc/stdlib/strtod.310
-rw-r--r--src/lib/libc/stdlib/strtonum.38
-rw-r--r--src/lib/libc/string/memccpy.36
-rw-r--r--src/lib/libc/string/memchr.36
-rw-r--r--src/lib/libc/string/memcmp.36
-rw-r--r--src/lib/libc/string/memset.36
24 files changed, 103 insertions, 106 deletions
diff --git a/src/lib/libc/net/ether_aton.3 b/src/lib/libc/net/ether_aton.3
index 358d7eed03..98562dc44c 100644
--- a/src/lib/libc/net/ether_aton.3
+++ b/src/lib/libc/net/ether_aton.3
@@ -1,8 +1,8 @@
1.\" $OpenBSD: ether_aton.3,v 1.2 2022/03/29 18:15:52 naddy Exp $ 1.\" $OpenBSD: ether_aton.3,v 1.3 2022/09/11 06:38:10 jmc Exp $
2.\" 2.\"
3.\" Written by roland@frob.com. Public domain. 3.\" Written by roland@frob.com. Public domain.
4.\" 4.\"
5.Dd $Mdocdate: March 29 2022 $ 5.Dd $Mdocdate: September 11 2022 $
6.Dt ETHER_ATON 3 6.Dt ETHER_ATON 3
7.Os 7.Os
8.Sh NAME 8.Sh NAME
@@ -86,7 +86,7 @@ The
86function parses a line from the 86function parses a line from the
87.Pa /etc/ethers 87.Pa /etc/ethers
88file and fills in the passed 88file and fills in the passed
89.Li struct ether_addr 89.Vt struct ether_addr
90and character buffer with the Ethernet address and host name on the line. 90and character buffer with the Ethernet address and host name on the line.
91It returns zero if the line was successfully parsed and \-1 if not. 91It returns zero if the line was successfully parsed and \-1 if not.
92The character buffer should be 92The character buffer should be
diff --git a/src/lib/libc/net/getaddrinfo.3 b/src/lib/libc/net/getaddrinfo.3
index 035db2780b..780c7a409f 100644
--- a/src/lib/libc/net/getaddrinfo.3
+++ b/src/lib/libc/net/getaddrinfo.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getaddrinfo.3,v 1.60 2022/03/31 17:27:16 naddy Exp $ 1.\" $OpenBSD: getaddrinfo.3,v 1.61 2022/09/11 06:38:10 jmc Exp $
2.\" $KAME: getaddrinfo.3,v 1.36 2005/01/05 03:23:05 itojun Exp $ 2.\" $KAME: getaddrinfo.3,v 1.36 2005/01/05 03:23:05 itojun Exp $
3.\" 3.\"
4.\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") 4.\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
@@ -16,7 +16,7 @@
16.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17.\" PERFORMANCE OF THIS SOFTWARE. 17.\" PERFORMANCE OF THIS SOFTWARE.
18.\" 18.\"
19.Dd $Mdocdate: March 31 2022 $ 19.Dd $Mdocdate: September 11 2022 $
20.Dt GETADDRINFO 3 20.Dt GETADDRINFO 3
21.Os 21.Os
22.Sh NAME 22.Sh NAME
@@ -68,7 +68,7 @@ must be non-null.
68.Pp 68.Pp
69.Fa hints 69.Fa hints
70is an optional pointer to a 70is an optional pointer to a
71.Li struct addrinfo , 71.Vt struct addrinfo ,
72as defined by 72as defined by
73.In netdb.h : 73.In netdb.h :
74.Bd -literal 74.Bd -literal
@@ -139,7 +139,7 @@ will return a NUL-terminated string containing the canonical name
139of the specified host name in the 139of the specified host name in the
140.Fa ai_canonname 140.Fa ai_canonname
141element of the first 141element of the first
142.Li addrinfo 142.Vt addrinfo
143structure returned. 143structure returned.
144.It Dv AI_FQDN 144.It Dv AI_FQDN
145If the 145If the
@@ -150,7 +150,7 @@ will return a NUL-terminated string containing the fully qualified domain name
150of the specified host name in the 150of the specified host name in the
151.Fa ai_canonname 151.Fa ai_canonname
152element of the first 152element of the first
153.Li addrinfo 153.Vt addrinfo
154structure returned. 154structure returned.
155.Pp 155.Pp
156This is different from the 156This is different from the
@@ -215,7 +215,7 @@ is not set.
215.El 215.El
216.Pp 216.Pp
217All other elements of the 217All other elements of the
218.Li addrinfo 218.Vt addrinfo
219structure passed via 219structure passed via
220.Fa hints 220.Fa hints
221must be zero or the null pointer. 221must be zero or the null pointer.
@@ -225,7 +225,7 @@ If
225is the null pointer, 225is the null pointer,
226.Fn getaddrinfo 226.Fn getaddrinfo
227behaves as if the caller provided a 227behaves as if the caller provided a
228.Li struct addrinfo 228.Vt struct addrinfo
229with 229with
230.Fa ai_family 230.Fa ai_family
231set to 231set to
@@ -240,12 +240,12 @@ After a successful call to
240.Fn getaddrinfo , 240.Fn getaddrinfo ,
241.Fa *res 241.Fa *res
242is a pointer to a linked list of one or more 242is a pointer to a linked list of one or more
243.Li addrinfo 243.Vt addrinfo
244structures. 244structures.
245The list can be traversed by following the 245The list can be traversed by following the
246.Fa ai_next 246.Fa ai_next
247pointer in each 247pointer in each
248.Li addrinfo 248.Vt addrinfo
249structure until a null pointer is encountered. 249structure until a null pointer is encountered.
250The three members 250The three members
251.Fa ai_family , 251.Fa ai_family ,
@@ -253,11 +253,11 @@ The three members
253and 253and
254.Fa ai_protocol 254.Fa ai_protocol
255in each returned 255in each returned
256.Li addrinfo 256.Vt addrinfo
257structure are suitable for a call to 257structure are suitable for a call to
258.Xr socket 2 . 258.Xr socket 2 .
259For each 259For each
260.Li addrinfo 260.Vt addrinfo
261structure in the list, the 261structure in the list, the
262.Fa ai_addr 262.Fa ai_addr
263member points to a filled-in socket address structure of length 263member points to a filled-in socket address structure of length
@@ -298,10 +298,10 @@ the interface and link, which is not necessarily true from the specification.
298All of the information returned by 298All of the information returned by
299.Fn getaddrinfo 299.Fn getaddrinfo
300is dynamically allocated: the 300is dynamically allocated: the
301.Li addrinfo 301.Vt addrinfo
302structures themselves as well as the socket address structures and 302structures themselves as well as the socket address structures and
303the canonical host name strings included in the 303the canonical host name strings included in the
304.Li addrinfo 304.Vt addrinfo
305structures. 305structures.
306.Pp 306.Pp
307Memory allocated for the dynamically allocated structures created by 307Memory allocated for the dynamically allocated structures created by
@@ -313,7 +313,7 @@ function.
313The 313The
314.Fa ai 314.Fa ai
315pointer should be an 315pointer should be an
316.Li addrinfo 316.Vt addrinfo
317structure created by a call to 317structure created by a call to
318.Fn getaddrinfo . 318.Fn getaddrinfo .
319.Sh RETURN VALUES 319.Sh RETURN VALUES
@@ -324,7 +324,7 @@ if an error occurs.
324If an error occurs, no memory is allocated by 324If an error occurs, no memory is allocated by
325.Fn getaddrinfo , 325.Fn getaddrinfo ,
326therefore it is not necessary to release the 326therefore it is not necessary to release the
327.Li addrinfo 327.Vt addrinfo
328structure(s). 328structure(s).
329.Sh EXAMPLES 329.Sh EXAMPLES
330The following code tries to connect to 330The following code tries to connect to
diff --git a/src/lib/libc/net/getnameinfo.3 b/src/lib/libc/net/getnameinfo.3
index 18c2cdc075..4e97b5d07b 100644
--- a/src/lib/libc/net/getnameinfo.3
+++ b/src/lib/libc/net/getnameinfo.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getnameinfo.3,v 1.48 2019/08/30 20:20:51 jmc Exp $ 1.\" $OpenBSD: getnameinfo.3,v 1.49 2022/09/11 06:38:10 jmc Exp $
2.\" $KAME: getnameinfo.3,v 1.37 2005/01/05 03:23:05 itojun Exp $ 2.\" $KAME: getnameinfo.3,v 1.37 2005/01/05 03:23:05 itojun Exp $
3.\" 3.\"
4.\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") 4.\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
@@ -16,7 +16,7 @@
16.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17.\" PERFORMANCE OF THIS SOFTWARE. 17.\" PERFORMANCE OF THIS SOFTWARE.
18.\" 18.\"
19.Dd $Mdocdate: August 30 2019 $ 19.Dd $Mdocdate: September 11 2022 $
20.Dt GETNAMEINFO 3 20.Dt GETNAMEINFO 3
21.Os 21.Os
22.Sh NAME 22.Sh NAME
@@ -33,7 +33,7 @@
33The 33The
34.Fn getnameinfo 34.Fn getnameinfo
35function is used to convert a 35function is used to convert a
36.Li sockaddr 36.Vt sockaddr
37structure to a pair of host name and service strings. 37structure to a pair of host name and service strings.
38It is a replacement for and provides more flexibility than the 38It is a replacement for and provides more flexibility than the
39.Xr gethostbyaddr 3 39.Xr gethostbyaddr 3
@@ -44,13 +44,13 @@ functions and is the converse of the
44function. 44function.
45.Pp 45.Pp
46The 46The
47.Li sockaddr 47.Vt sockaddr
48structure 48structure
49.Fa sa 49.Fa sa
50should point to either a 50should point to either a
51.Li sockaddr_in 51.Vt sockaddr_in
52or 52or
53.Li sockaddr_in6 53.Vt sockaddr_in6
54structure (for IPv4 or IPv6 respectively) that is 54structure (for IPv4 or IPv6 respectively) that is
55.Fa salen 55.Fa salen
56bytes long. 56bytes long.
diff --git a/src/lib/libc/net/getpeereid.3 b/src/lib/libc/net/getpeereid.3
index 9c5742a245..4475bbd77d 100644
--- a/src/lib/libc/net/getpeereid.3
+++ b/src/lib/libc/net/getpeereid.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getpeereid.3,v 1.3 2013/06/05 03:39:23 tedu Exp $ 1.\" $OpenBSD: getpeereid.3,v 1.4 2022/09/11 06:38:10 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1991, 1993 3.\" Copyright (c) 1983, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -26,7 +26,7 @@
26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE. 28.\" SUCH DAMAGE.
29.Dd $Mdocdate: June 5 2013 $ 29.Dd $Mdocdate: September 11 2022 $
30.Dt GETPEEREID 3 30.Dt GETPEEREID 3
31.Os 31.Os
32.Sh NAME 32.Sh NAME
@@ -65,13 +65,13 @@ should be looked up.
65.It 65.It
66.Fa euid 66.Fa euid
67points to a 67points to a
68.Li uid_t 68.Vt uid_t
69variable into which the effective user ID for the connected peer will 69variable into which the effective user ID for the connected peer will
70be stored. 70be stored.
71.It 71.It
72.Fa egid 72.Fa egid
73points to a 73points to a
74.Li gid_t 74.Vt gid_t
75variable into which the effective group ID for the connected peer will 75variable into which the effective group ID for the connected peer will
76be stored. 76be stored.
77.El 77.El
diff --git a/src/lib/libc/net/getrrsetbyname.3 b/src/lib/libc/net/getrrsetbyname.3
index d0acb60238..314f31665c 100644
--- a/src/lib/libc/net/getrrsetbyname.3
+++ b/src/lib/libc/net/getrrsetbyname.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getrrsetbyname.3,v 1.21 2019/08/30 20:20:51 jmc Exp $ 1.\" $OpenBSD: getrrsetbyname.3,v 1.22 2022/09/11 06:38:10 jmc Exp $
2.\" 2.\"
3.\" Copyright (C) 2000, 2001 Internet Software Consortium. 3.\" Copyright (C) 2000, 2001 Internet Software Consortium.
4.\" 4.\"
@@ -15,7 +15,7 @@
15.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 15.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
16.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17.\" 17.\"
18.Dd $Mdocdate: August 30 2019 $ 18.Dd $Mdocdate: September 11 2022 $
19.Dt GETRRSETBYNAME 3 19.Dt GETRRSETBYNAME 3
20.Os 20.Os
21.Sh NAME 21.Sh NAME
@@ -46,11 +46,11 @@ After a successful call to
46.Fn getrrsetbyname , 46.Fn getrrsetbyname ,
47.Fa *res 47.Fa *res
48is a pointer to an 48is a pointer to an
49.Li rrsetinfo 49.Vt rrsetinfo
50structure, containing a list of one or more 50structure, containing a list of one or more
51.Li rdatainfo 51.Vt rdatainfo
52structures containing resource records and potentially another list of 52structures containing resource records and potentially another list of
53.Li rdatainfo 53.Vt rdatainfo
54structures containing SIG resource records associated with those records. 54structures containing SIG resource records associated with those records.
55The members 55The members
56.Li rri_rdclass 56.Li rri_rdclass
@@ -97,12 +97,12 @@ struct rrsetinfo {
97All of the information returned by 97All of the information returned by
98.Fn getrrsetbyname 98.Fn getrrsetbyname
99is dynamically allocated: the 99is dynamically allocated: the
100.Li rrsetinfo 100.Vt rrsetinfo
101and 101and
102.Li rdatainfo 102.Vt rdatainfo
103structures, 103structures,
104and the canonical host name strings pointed to by the 104and the canonical host name strings pointed to by the
105.Li rrsetinfo 105.Vt rrsetinfo
106structure. 106structure.
107Memory allocated for the dynamically allocated structures created by 107Memory allocated for the dynamically allocated structures created by
108a successful call to 108a successful call to
@@ -111,7 +111,7 @@ is released by
111.Fn freerrset . 111.Fn freerrset .
112.Li rrset 112.Li rrset
113is a pointer to a 113is a pointer to a
114.Li struct rrsetinfo 114.Vt struct rrsetinfo
115created by a call to 115created by a call to
116.Fn getrrsetbyname . 116.Fn getrrsetbyname .
117.\" .Pp 117.\" .Pp
diff --git a/src/lib/libc/net/htonl.3 b/src/lib/libc/net/htonl.3
index a63959717a..65fa9a53b5 100644
--- a/src/lib/libc/net/htonl.3
+++ b/src/lib/libc/net/htonl.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: htonl.3,v 1.5 2019/02/13 07:02:09 jmc Exp $ 1.\" $OpenBSD: htonl.3,v 1.6 2022/09/11 06:38:10 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1991, 1993 3.\" Copyright (c) 1983, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE. 28.\" SUCH DAMAGE.
29.\" 29.\"
30.Dd $Mdocdate: February 13 2019 $ 30.Dd $Mdocdate: September 11 2022 $
31.Dt HTONL 3 31.Dt HTONL 3
32.Os 32.Os
33.Sh NAME 33.Sh NAME
@@ -66,14 +66,11 @@ or
66.Sq l ) 66.Sq l )
67is a mnemonic 67is a mnemonic
68for the traditional names for such quantities, 68for the traditional names for such quantities,
69.Li short 69short and long, respectively.
70and
71.Li long ,
72respectively.
73Today, the C concept of 70Today, the C concept of
74.Li short 71.Vt short
75and 72and
76.Li long 73.Vt long
77integers need not coincide with this traditional misunderstanding. 74integers need not coincide with this traditional misunderstanding.
78On machines which have a byte order which is the same as the network 75On machines which have a byte order which is the same as the network
79order, routines are defined as null macros. 76order, routines are defined as null macros.
diff --git a/src/lib/libc/net/inet_addr.3 b/src/lib/libc/net/inet_addr.3
index 129b08d277..dec5a2ec16 100644
--- a/src/lib/libc/net/inet_addr.3
+++ b/src/lib/libc/net/inet_addr.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: inet_addr.3,v 1.5 2019/08/30 20:06:07 jmc Exp $ 1.\" $OpenBSD: inet_addr.3,v 1.6 2022/09/11 06:38:10 jmc Exp $
2.\" $NetBSD: inet.3,v 1.7 1997/06/18 02:25:24 lukem Exp $ 2.\" $NetBSD: inet.3,v 1.7 1997/06/18 02:25:24 lukem Exp $
3.\" 3.\"
4.\" Copyright (c) 1983, 1990, 1991, 1993 4.\" Copyright (c) 1983, 1990, 1991, 1993
@@ -30,7 +30,7 @@
30.\" 30.\"
31.\" @(#)inet.3 8.1 (Berkeley) 6/4/93 31.\" @(#)inet.3 8.1 (Berkeley) 6/4/93
32.\" 32.\"
33.Dd $Mdocdate: August 30 2019 $ 33.Dd $Mdocdate: September 11 2022 $
34.Dt INET_ADDR 3 34.Dt INET_ADDR 3
35.Os 35.Os
36.Sh NAME 36.Sh NAME
@@ -179,7 +179,7 @@ cannot return that value without indicating failure.
179Also, 179Also,
180.Fn inet_addr 180.Fn inet_addr
181should have been designed to return a 181should have been designed to return a
182.Li struct in_addr . 182.Vt struct in_addr .
183The newer 183The newer
184.Fn inet_aton 184.Fn inet_aton
185function does not share these problems, and almost all existing code 185function does not share these problems, and almost all existing code
diff --git a/src/lib/libc/net/inet_net_ntop.3 b/src/lib/libc/net/inet_net_ntop.3
index cac234be42..4212af3bb6 100644
--- a/src/lib/libc/net/inet_net_ntop.3
+++ b/src/lib/libc/net/inet_net_ntop.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: inet_net_ntop.3,v 1.3 2022/03/31 17:27:16 naddy Exp $ 1.\" $OpenBSD: inet_net_ntop.3,v 1.4 2022/09/11 06:38:10 jmc Exp $
2.\" $NetBSD: inet_net.3,v 1.1 1997/06/18 02:25:27 lukem Exp $ 2.\" $NetBSD: inet_net.3,v 1.1 1997/06/18 02:25:27 lukem Exp $
3.\" 3.\"
4.\" Copyright (c) 1997 The NetBSD Foundation, Inc. 4.\" Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
28.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29.\" POSSIBILITY OF SUCH DAMAGE. 29.\" POSSIBILITY OF SUCH DAMAGE.
30.\" 30.\"
31.Dd $Mdocdate: March 31 2022 $ 31.Dd $Mdocdate: September 11 2022 $
32.Dt INET_NET_NTOP 3 32.Dt INET_NET_NTOP 3
33.Os 33.Os
34.Sh NAME 34.Sh NAME
@@ -46,7 +46,7 @@
46The 46The
47.Fn inet_net_ntop 47.Fn inet_net_ntop
48function converts an Internet network number from network format (usually a 48function converts an Internet network number from network format (usually a
49.Li struct in_addr 49.Vt struct in_addr
50or some other binary form, in network byte order) to CIDR presentation format 50or some other binary form, in network byte order) to CIDR presentation format
51(suitable for external display purposes). 51(suitable for external display purposes).
52.Fa bits 52.Fa bits
@@ -63,7 +63,7 @@ The
63.Fn inet_net_pton 63.Fn inet_net_pton
64function converts a presentation format Internet network number (that is, 64function converts a presentation format Internet network number (that is,
65printable form as held in a character string) to network format (usually a 65printable form as held in a character string) to network format (usually a
66.Li struct in_addr 66.Vt struct in_addr
67or some other internal binary representation, in network byte order). 67or some other internal binary representation, in network byte order).
68It returns the number of bits (either computed based on the class, or 68It returns the number of bits (either computed based on the class, or
69specified with /CIDR), or \-1 if a failure occurred 69specified with /CIDR), or \-1 if a failure occurred
diff --git a/src/lib/libc/net/inet_ntop.3 b/src/lib/libc/net/inet_ntop.3
index c80b0c4776..e5c1c574f8 100644
--- a/src/lib/libc/net/inet_ntop.3
+++ b/src/lib/libc/net/inet_ntop.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: inet_ntop.3,v 1.5 2021/09/01 15:59:22 claudio Exp $ 1.\" $OpenBSD: inet_ntop.3,v 1.6 2022/09/11 06:38:10 jmc Exp $
2.\" $NetBSD: inet.3,v 1.7 1997/06/18 02:25:24 lukem Exp $ 2.\" $NetBSD: inet.3,v 1.7 1997/06/18 02:25:24 lukem Exp $
3.\" 3.\"
4.\" Copyright (c) 1983, 1990, 1991, 1993 4.\" Copyright (c) 1983, 1990, 1991, 1993
@@ -30,7 +30,7 @@
30.\" 30.\"
31.\" @(#)inet.3 8.1 (Berkeley) 6/4/93 31.\" @(#)inet.3 8.1 (Berkeley) 6/4/93
32.\" 32.\"
33.Dd $Mdocdate: September 1 2021 $ 33.Dd $Mdocdate: September 11 2022 $
34.Dt INET_NTOP 3 34.Dt INET_NTOP 3
35.Os 35.Os
36.Sh NAME 36.Sh NAME
@@ -49,7 +49,7 @@ The
49.Fn inet_pton 49.Fn inet_pton
50function converts a presentation format address (that is, printable form 50function converts a presentation format address (that is, printable form
51as held in a character string) to network format (usually a 51as held in a character string) to network format (usually a
52.Li struct in_addr 52.Vt struct in_addr
53or some other internal binary representation, in network byte order). 53or some other internal binary representation, in network byte order).
54It returns 1 if the address was valid for the specified address family; 54It returns 1 if the address was valid for the specified address family;
550 if the address wasn't parseable in the specified address family; or \-1 550 if the address wasn't parseable in the specified address family; or \-1
diff --git a/src/lib/libc/stdlib/atof.3 b/src/lib/libc/stdlib/atof.3
index 183f22d358..7d1f09d1a4 100644
--- a/src/lib/libc/stdlib/atof.3
+++ b/src/lib/libc/stdlib/atof.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: atof.3,v 1.9 2019/01/16 12:55:49 schwarze Exp $ 32.\" $OpenBSD: atof.3,v 1.10 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: January 16 2019 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt ATOF 3 35.Dt ATOF 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -47,7 +47,7 @@ The
47function converts the initial portion of the string pointed to by 47function converts the initial portion of the string pointed to by
48.Fa nptr 48.Fa nptr
49to 49to
50.Li double 50.Vt double
51representation. 51representation.
52.Pp 52.Pp
53It is equivalent to: 53It is equivalent to:
diff --git a/src/lib/libc/stdlib/atoi.3 b/src/lib/libc/stdlib/atoi.3
index 0cd90ccffb..92d8de93a6 100644
--- a/src/lib/libc/stdlib/atoi.3
+++ b/src/lib/libc/stdlib/atoi.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: atoi.3,v 1.12 2015/09/10 15:16:43 schwarze Exp $ 32.\" $OpenBSD: atoi.3,v 1.13 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: September 10 2015 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt ATOI 3 35.Dt ATOI 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -47,7 +47,7 @@ The
47function converts the initial portion of the string pointed to by 47function converts the initial portion of the string pointed to by
48.Fa nptr 48.Fa nptr
49to 49to
50.Li integer 50.Vt integer
51representation. 51representation.
52.Pp 52.Pp
53It is equivalent to: 53It is equivalent to:
diff --git a/src/lib/libc/stdlib/atol.3 b/src/lib/libc/stdlib/atol.3
index c80f61f754..f67ca7da6c 100644
--- a/src/lib/libc/stdlib/atol.3
+++ b/src/lib/libc/stdlib/atol.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: atol.3,v 1.10 2015/09/10 15:16:43 schwarze Exp $ 32.\" $OpenBSD: atol.3,v 1.11 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: September 10 2015 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt ATOL 3 35.Dt ATOL 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -47,7 +47,7 @@ The
47function converts the initial portion of the string pointed to by 47function converts the initial portion of the string pointed to by
48.Fa nptr 48.Fa nptr
49to 49to
50.Li long integer 50.Vt long integer
51representation. 51representation.
52.Pp 52.Pp
53It is equivalent to: 53It is equivalent to:
diff --git a/src/lib/libc/stdlib/atoll.3 b/src/lib/libc/stdlib/atoll.3
index 0cf8e40f8e..c2b606dda9 100644
--- a/src/lib/libc/stdlib/atoll.3
+++ b/src/lib/libc/stdlib/atoll.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: atoll.3,v 1.8 2015/09/10 15:16:43 schwarze Exp $ 32.\" $OpenBSD: atoll.3,v 1.9 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: September 10 2015 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt ATOLL 3 35.Dt ATOLL 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -47,7 +47,7 @@ The
47function converts the initial portion of the string pointed to by 47function converts the initial portion of the string pointed to by
48.Fa nptr 48.Fa nptr
49to 49to
50.Li long long integer 50.Vt long long integer
51representation. 51representation.
52.Pp 52.Pp
53It is equivalent to: 53It is equivalent to:
diff --git a/src/lib/libc/stdlib/div.3 b/src/lib/libc/stdlib/div.3
index 421400a294..b4b42ba8ec 100644
--- a/src/lib/libc/stdlib/div.3
+++ b/src/lib/libc/stdlib/div.3
@@ -27,9 +27,9 @@
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE. 28.\" SUCH DAMAGE.
29.\" 29.\"
30.\" $OpenBSD: div.3,v 1.12 2016/08/14 23:18:03 guenther Exp $ 30.\" $OpenBSD: div.3,v 1.13 2022/09/11 06:38:11 jmc Exp $
31.\" 31.\"
32.Dd $Mdocdate: August 14 2016 $ 32.Dd $Mdocdate: September 11 2022 $
33.Dt DIV 3 33.Dt DIV 3
34.Os 34.Os
35.Sh NAME 35.Sh NAME
@@ -47,7 +47,7 @@ function computes the value
47and returns the quotient and remainder in a structure named 47and returns the quotient and remainder in a structure named
48.Fa div_t 48.Fa div_t
49that contains two 49that contains two
50.Li int 50.Vt int
51members named 51members named
52.Fa quot 52.Fa quot
53and 53and
diff --git a/src/lib/libc/stdlib/getopt_long.3 b/src/lib/libc/stdlib/getopt_long.3
index 9f99a353e8..88594cbf9c 100644
--- a/src/lib/libc/stdlib/getopt_long.3
+++ b/src/lib/libc/stdlib/getopt_long.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getopt_long.3,v 1.24 2022/01/06 18:58:24 jmc Exp $ 1.\" $OpenBSD: getopt_long.3,v 1.25 2022/09/11 06:38:11 jmc Exp $
2.\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $ 2.\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $
3.\" 3.\"
4.\" Copyright (c) 1988, 1991, 1993 4.\" Copyright (c) 1988, 1991, 1993
@@ -30,7 +30,7 @@
30.\" 30.\"
31.\" @(#)getopt.3 8.5 (Berkeley) 4/27/95 31.\" @(#)getopt.3 8.5 (Berkeley) 4/27/95
32.\" 32.\"
33.Dd $Mdocdate: January 6 2022 $ 33.Dd $Mdocdate: September 11 2022 $
34.Dt GETOPT_LONG 3 34.Dt GETOPT_LONG 3
35.Os 35.Os
36.Sh NAME 36.Sh NAME
@@ -197,7 +197,7 @@ the single-character option is returned.
197If the 197If the
198.Fa flag 198.Fa flag
199field in 199field in
200.Li struct option 200.Vt struct option
201is 201is
202.Dv NULL , 202.Dv NULL ,
203.Fn getopt_long 203.Fn getopt_long
diff --git a/src/lib/libc/stdlib/imaxdiv.3 b/src/lib/libc/stdlib/imaxdiv.3
index 0d4f765373..70168acb30 100644
--- a/src/lib/libc/stdlib/imaxdiv.3
+++ b/src/lib/libc/stdlib/imaxdiv.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: imaxdiv.3,v 1.7 2016/08/14 23:18:03 guenther Exp $ 32.\" $OpenBSD: imaxdiv.3,v 1.8 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: August 14 2016 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt IMAXDIV 3 35.Dt IMAXDIV 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -47,9 +47,9 @@ The
47function computes the value 47function computes the value
48.Fa num Ns / Ns Fa denom 48.Fa num Ns / Ns Fa denom
49and returns the quotient and remainder in a structure named 49and returns the quotient and remainder in a structure named
50.Li imaxdiv_t 50.Vt imaxdiv_t
51that contains two 51that contains two
52.Li intmax_t 52.Vt intmax_t
53members named 53members named
54.Fa quot 54.Fa quot
55and 55and
diff --git a/src/lib/libc/stdlib/ldiv.3 b/src/lib/libc/stdlib/ldiv.3
index 1fa6f38c45..c7ddc85ac5 100644
--- a/src/lib/libc/stdlib/ldiv.3
+++ b/src/lib/libc/stdlib/ldiv.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: ldiv.3,v 1.13 2016/08/14 23:18:03 guenther Exp $ 32.\" $OpenBSD: ldiv.3,v 1.14 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: August 14 2016 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt LDIV 3 35.Dt LDIV 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -47,9 +47,9 @@ The
47function computes the value 47function computes the value
48.Fa num Ns / Ns Fa denom 48.Fa num Ns / Ns Fa denom
49and returns the quotient and remainder in a structure named 49and returns the quotient and remainder in a structure named
50.Li ldiv_t 50.Vt ldiv_t
51that contains two 51that contains two
52.Li long integer 52.Vt long integer
53members named 53members named
54.Fa quot 54.Fa quot
55and 55and
diff --git a/src/lib/libc/stdlib/lldiv.3 b/src/lib/libc/stdlib/lldiv.3
index 526da8d0c4..539d7b5179 100644
--- a/src/lib/libc/stdlib/lldiv.3
+++ b/src/lib/libc/stdlib/lldiv.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: lldiv.3,v 1.8 2017/08/01 14:57:02 schwarze Exp $ 32.\" $OpenBSD: lldiv.3,v 1.9 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: August 1 2017 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt LLDIV 3 35.Dt LLDIV 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -50,9 +50,9 @@ The
50function computes the value 50function computes the value
51.Fa num Ns / Ns Fa denom 51.Fa num Ns / Ns Fa denom
52and returns the quotient and remainder in a structure named 52and returns the quotient and remainder in a structure named
53.Li lldiv_t 53.Vt lldiv_t
54that contains two 54that contains two
55.Li long long integer 55.Vt long long integer
56members named 56members named
57.Fa quot 57.Fa quot
58and 58and
diff --git a/src/lib/libc/stdlib/strtod.3 b/src/lib/libc/stdlib/strtod.3
index 0561f3615d..ad8f28a02f 100644
--- a/src/lib/libc/stdlib/strtod.3
+++ b/src/lib/libc/stdlib/strtod.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: strtod.3,v 1.22 2019/01/16 12:55:49 schwarze Exp $ 32.\" $OpenBSD: strtod.3,v 1.23 2022/09/11 06:38:11 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: January 16 2019 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt STRTOD 3 35.Dt STRTOD 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -55,21 +55,21 @@ The
55function converts the initial portion of the string pointed to by 55function converts the initial portion of the string pointed to by
56.Fa nptr 56.Fa nptr
57to 57to
58.Li double 58.Vt double
59representation. 59representation.
60The 60The
61.Fn strtof 61.Fn strtof
62function converts the initial portion of the string pointed to by 62function converts the initial portion of the string pointed to by
63.Fa nptr 63.Fa nptr
64to 64to
65.Li float 65.Vt float
66representation. 66representation.
67The 67The
68.Fn strtold 68.Fn strtold
69function converts the initial portion of the string pointed to by 69function converts the initial portion of the string pointed to by
70.Fa nptr 70.Fa nptr
71to 71to
72.Li long double 72.Vt long double
73representation. 73representation.
74.Pp 74.Pp
75The expected form of the string is an optional plus 75The expected form of the string is an optional plus
diff --git a/src/lib/libc/stdlib/strtonum.3 b/src/lib/libc/stdlib/strtonum.3
index 43df0edc78..87a3ccd588 100644
--- a/src/lib/libc/stdlib/strtonum.3
+++ b/src/lib/libc/stdlib/strtonum.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: strtonum.3,v 1.18 2016/02/07 20:50:24 mmcc Exp $ 1.\" $OpenBSD: strtonum.3,v 1.19 2022/09/11 06:38:11 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 2004 Ted Unangst 3.\" Copyright (c) 2004 Ted Unangst
4.\" 4.\"
@@ -14,7 +14,7 @@
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\" 16.\"
17.Dd $Mdocdate: February 7 2016 $ 17.Dd $Mdocdate: September 11 2022 $
18.Dt STRTONUM 3 18.Dt STRTONUM 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -35,7 +35,7 @@ The
35function converts the string in 35function converts the string in
36.Fa nptr 36.Fa nptr
37to a 37to a
38.Li long long 38.Vt long long
39value. 39value.
40The 40The
41.Fn strtonum 41.Fn strtonum
@@ -56,7 +56,7 @@ or
56sign. 56sign.
57.Pp 57.Pp
58The remainder of the string is converted to a 58The remainder of the string is converted to a
59.Li long long 59.Vt long long
60value according to base 10. 60value according to base 10.
61.Pp 61.Pp
62The value obtained is then checked against the provided 62The value obtained is then checked against the provided
diff --git a/src/lib/libc/string/memccpy.3 b/src/lib/libc/string/memccpy.3
index 98326d6871..ac5719918f 100644
--- a/src/lib/libc/string/memccpy.3
+++ b/src/lib/libc/string/memccpy.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: memccpy.3,v 1.12 2013/09/25 21:49:30 millert Exp $ 1.\" $OpenBSD: memccpy.3,v 1.13 2022/09/11 06:38:11 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1991, 1993 3.\" Copyright (c) 1990, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
29.\" 29.\"
30.\" @(#)memccpy.3 8.1 (Berkeley) 6/9/93 30.\" @(#)memccpy.3 8.1 (Berkeley) 6/9/93
31.\" 31.\"
32.Dd $Mdocdate: September 25 2013 $ 32.Dd $Mdocdate: September 11 2022 $
33.Dt MEMCCPY 3 33.Dt MEMCCPY 3
34.Os 34.Os
35.Sh NAME 35.Sh NAME
@@ -49,7 +49,7 @@ to string
49If the character 49If the character
50.Fa c 50.Fa c
51(as converted to an 51(as converted to an
52.Li unsigned char ) 52.Vt unsigned char )
53occurs in the string 53occurs in the string
54.Fa src , 54.Fa src ,
55the copy stops and a pointer to the byte after the copy of 55the copy stops and a pointer to the byte after the copy of
diff --git a/src/lib/libc/string/memchr.3 b/src/lib/libc/string/memchr.3
index 8d8a9ddf9c..2c961b6338 100644
--- a/src/lib/libc/string/memchr.3
+++ b/src/lib/libc/string/memchr.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: memchr.3,v 1.12 2014/04/07 17:57:56 schwarze Exp $ 1.\" $OpenBSD: memchr.3,v 1.13 2022/09/11 06:38:11 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1991 The Regents of the University of California. 3.\" Copyright (c) 1990, 1991 The Regents of the University of California.
4.\" All rights reserved. 4.\" All rights reserved.
@@ -31,7 +31,7 @@
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE. 32.\" SUCH DAMAGE.
33.\" 33.\"
34.Dd $Mdocdate: April 7 2014 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt MEMCHR 3 35.Dt MEMCHR 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -50,7 +50,7 @@ The
50function locates the first occurrence of 50function locates the first occurrence of
51.Fa c 51.Fa c
52(converted to an 52(converted to an
53.Li unsigned char ) 53.Vt unsigned char )
54in string 54in string
55.Fa b . 55.Fa b .
56.Pp 56.Pp
diff --git a/src/lib/libc/string/memcmp.3 b/src/lib/libc/string/memcmp.3
index 25d308e617..86a95c8c19 100644
--- a/src/lib/libc/string/memcmp.3
+++ b/src/lib/libc/string/memcmp.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: memcmp.3,v 1.9 2014/06/13 02:12:17 matthew Exp $ 1.\" $OpenBSD: memcmp.3,v 1.10 2022/09/11 06:38:11 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1991 The Regents of the University of California. 3.\" Copyright (c) 1990, 1991 The Regents of the University of California.
4.\" All rights reserved. 4.\" All rights reserved.
@@ -31,7 +31,7 @@
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE. 32.\" SUCH DAMAGE.
33.\" 33.\"
34.Dd $Mdocdate: June 13 2014 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt MEMCMP 3 35.Dt MEMCMP 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -57,7 +57,7 @@ The
57function returns zero if the two strings are identical, 57function returns zero if the two strings are identical,
58otherwise returns the difference between the first two differing bytes 58otherwise returns the difference between the first two differing bytes
59(treated as 59(treated as
60.Li unsigned char 60.Vt unsigned char
61values, so that 61values, so that
62.Sq Li \e200 62.Sq Li \e200
63is greater than 63is greater than
diff --git a/src/lib/libc/string/memset.3 b/src/lib/libc/string/memset.3
index ac5b7e90ad..0051ff615d 100644
--- a/src/lib/libc/string/memset.3
+++ b/src/lib/libc/string/memset.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: memset.3,v 1.8 2013/06/05 03:39:23 tedu Exp $ 1.\" $OpenBSD: memset.3,v 1.9 2022/09/11 06:38:11 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1991 The Regents of the University of California. 3.\" Copyright (c) 1990, 1991 The Regents of the University of California.
4.\" All rights reserved. 4.\" All rights reserved.
@@ -31,7 +31,7 @@
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE. 32.\" SUCH DAMAGE.
33.\" 33.\"
34.Dd $Mdocdate: June 5 2013 $ 34.Dd $Mdocdate: September 11 2022 $
35.Dt MEMSET 3 35.Dt MEMSET 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -49,7 +49,7 @@ function writes
49bytes of value 49bytes of value
50.Fa c 50.Fa c
51(converted to an 51(converted to an
52.Li unsigned char ) 52.Vt unsigned char )
53to the string 53to the string
54.Fa b . 54.Fa b .
55.Sh RETURN VALUES 55.Sh RETURN VALUES