summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc')
-rw-r--r--src/lib/libc/net/getaddrinfo.310
-rw-r--r--src/lib/libc/net/inet6_opt_init.310
-rw-r--r--src/lib/libc/net/inet6_rth_space.36
-rw-r--r--src/lib/libc/net/inet_net_ntop.38
-rw-r--r--src/lib/libc/stdlib/malloc.38
-rw-r--r--src/lib/libc/stdlib/tsearch.36
6 files changed, 24 insertions, 24 deletions
diff --git a/src/lib/libc/net/getaddrinfo.3 b/src/lib/libc/net/getaddrinfo.3
index de46e70182..035db2780b 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.59 2019/08/30 20:20:50 jmc Exp $ 1.\" $OpenBSD: getaddrinfo.3,v 1.60 2022/03/31 17:27:16 naddy 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: August 30 2019 $ 19.Dd $Mdocdate: March 31 2022 $
20.Dt GETADDRINFO 3 20.Dt GETADDRINFO 3
21.Os 21.Os
22.Sh NAME 22.Sh NAME
@@ -105,7 +105,7 @@ or
105.Dv SOCK_RAW . 105.Dv SOCK_RAW .
106When 106When
107.Fa ai_socktype 107.Fa ai_socktype
108is zero the caller will accept any socket type. 108is zero, the caller will accept any socket type.
109.It Fa ai_protocol 109.It Fa ai_protocol
110Indicates which transport protocol is desired, 110Indicates which transport protocol is desired,
111.Dv IPPROTO_UDP 111.Dv IPPROTO_UDP
@@ -113,7 +113,7 @@ or
113.Dv IPPROTO_TCP . 113.Dv IPPROTO_TCP .
114If 114If
115.Fa ai_protocol 115.Fa ai_protocol
116is zero the caller will accept any protocol. 116is zero, the caller will accept any protocol.
117.It Fa ai_flags 117.It Fa ai_flags
118.Fa ai_flags 118.Fa ai_flags
119is formed by 119is formed by
@@ -180,7 +180,7 @@ and no service name resolution should be attempted.
180.It Dv AI_PASSIVE 180.It Dv AI_PASSIVE
181If the 181If the
182.Dv AI_PASSIVE 182.Dv AI_PASSIVE
183bit is set it indicates that the returned socket address structure 183bit is set, it indicates that the returned socket address structure
184is intended for use in a call to 184is intended for use in a call to
185.Xr bind 2 . 185.Xr bind 2 .
186In this case, if the 186In this case, if the
diff --git a/src/lib/libc/net/inet6_opt_init.3 b/src/lib/libc/net/inet6_opt_init.3
index fb4253aa2c..41ba842166 100644
--- a/src/lib/libc/net/inet6_opt_init.3
+++ b/src/lib/libc/net/inet6_opt_init.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: inet6_opt_init.3,v 1.7 2022/03/29 18:15:52 naddy Exp $ 1.\" $OpenBSD: inet6_opt_init.3,v 1.8 2022/03/31 17:27:16 naddy Exp $
2.\" $KAME: inet6_opt_init.3,v 1.7 2004/12/27 05:08:23 itojun Exp $ 2.\" $KAME: inet6_opt_init.3,v 1.7 2004/12/27 05:08:23 itojun Exp $
3.\" 3.\"
4.\" Copyright (C) 2004 WIDE Project. 4.\" Copyright (C) 2004 WIDE Project.
@@ -28,7 +28,7 @@
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE. 29.\" SUCH DAMAGE.
30.\" 30.\"
31.Dd $Mdocdate: March 29 2022 $ 31.Dd $Mdocdate: March 31 2022 $
32.Dt INET6_OPT_INIT 3 32.Dt INET6_OPT_INIT 3
33.Os 33.Os
34.\" 34.\"
@@ -97,7 +97,7 @@ The
97function can perform different jobs. 97function can perform different jobs.
98When a valid 98When a valid
99.Fa extbuf 99.Fa extbuf
100argument is supplied it appends an option to the extension buffer and 100argument is supplied, it appends an option to the extension buffer and
101returns the updated total length as well as a pointer to the newly 101returns the updated total length as well as a pointer to the newly
102created option in 102created option in
103.Fa databufp . 103.Fa databufp .
@@ -173,7 +173,7 @@ or
173When 173When
174.Fa extbuf 174.Fa extbuf
175is not 175is not
176.Dv NULL 176.Dv NULL ,
177the function also sets up the appropriate padding bytes by inserting a 177the function also sets up the appropriate padding bytes by inserting a
178Pad1 or PadN option of the proper length. 178Pad1 or PadN option of the proper length.
179.Pp 179.Pp
@@ -238,7 +238,7 @@ and
238point to the 8-bit option type, the 8-bit option length and the option 238point to the 8-bit option type, the 8-bit option length and the option
239data respectively. 239data respectively.
240This function does not return any PAD1 or PADN options. 240This function does not return any PAD1 or PADN options.
241When an error occurs or there are no more options the return 241When an error occurs or there are no more options, the return
242value is \-1. 242value is \-1.
243.\" 243.\"
244.Ss inet6_opt_find 244.Ss inet6_opt_find
diff --git a/src/lib/libc/net/inet6_rth_space.3 b/src/lib/libc/net/inet6_rth_space.3
index fd69da2455..c40b45057e 100644
--- a/src/lib/libc/net/inet6_rth_space.3
+++ b/src/lib/libc/net/inet6_rth_space.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: inet6_rth_space.3,v 1.7 2014/06/11 16:59:47 chrisz Exp $ 1.\" $OpenBSD: inet6_rth_space.3,v 1.8 2022/03/31 17:27:16 naddy Exp $
2.\" $KAME: inet6_rth_space.3,v 1.7 2005/01/05 03:00:44 itojun Exp $ 2.\" $KAME: inet6_rth_space.3,v 1.7 2005/01/05 03:00:44 itojun Exp $
3.\" 3.\"
4.\" Copyright (C) 2004 WIDE Project. 4.\" Copyright (C) 2004 WIDE Project.
@@ -28,7 +28,7 @@
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE. 29.\" SUCH DAMAGE.
30.\" 30.\"
31.Dd $Mdocdate: June 11 2014 $ 31.Dd $Mdocdate: March 31 2022 $
32.Dt INET6_RTH_SPACE 3 32.Dt INET6_RTH_SPACE 3
33.Os 33.Os
34.\" 34.\"
@@ -85,7 +85,7 @@ argument and containing the number of addresses specified in the
85.Fa segments 85.Fa segments
86argument. 86argument.
87When the type is 87When the type is
88.Dv IPV6_RTHDR_TYPE_0 88.Dv IPV6_RTHDR_TYPE_0 ,
89the number of segments must be from 0 through 127. 89the number of segments must be from 0 through 127.
90The return value from this function is the number of bytes required to 90The return value from this function is the number of bytes required to
91store the routing header. 91store the routing header.
diff --git a/src/lib/libc/net/inet_net_ntop.3 b/src/lib/libc/net/inet_net_ntop.3
index 816e87bf98..cac234be42 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.2 2021/09/01 15:59:22 claudio Exp $ 1.\" $OpenBSD: inet_net_ntop.3,v 1.3 2022/03/31 17:27:16 naddy 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: September 1 2021 $ 31.Dd $Mdocdate: March 31 2022 $
32.Dt INET_NET_NTOP 3 32.Dt INET_NET_NTOP 3
33.Os 33.Os
34.Sh NAME 34.Sh NAME
@@ -110,7 +110,7 @@ is in the range
110and is used to explicitly specify the number of bits in the network address. 110and is used to explicitly specify the number of bits in the network address.
111When 111When
112.Dq Li /bits 112.Dq Li /bits
113is not specified the number of bits in the network address is calculated 113is not specified, the number of bits in the network address is calculated
114as the larger of the number of bits in the class to which the address 114as the larger of the number of bits in the class to which the address
115belongs and the number of bits provided rounded up modulo 8. 115belongs and the number of bits provided rounded up modulo 8.
116Examples: 116Examples:
@@ -176,7 +176,7 @@ is in the range
176and is used to explicitly specify the number of bits in the network address. 176and is used to explicitly specify the number of bits in the network address.
177When 177When
178.Dq Li /bits 178.Dq Li /bits
179is not specified 128 is used. 179is not specified, 128 is used.
180Note that when the number of bits is specified using 180Note that when the number of bits is specified using
181.Dq Li /bits 181.Dq Li /bits
182notation, the value of the address still includes all bits supplied 182notation, the value of the address still includes all bits supplied
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3
index dc3e691ece..9bd498ab50 100644
--- a/src/lib/libc/stdlib/malloc.3
+++ b/src/lib/libc/stdlib/malloc.3
@@ -30,9 +30,9 @@
30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31.\" SUCH DAMAGE. 31.\" SUCH DAMAGE.
32.\" 32.\"
33.\" $OpenBSD: malloc.3,v 1.128 2021/04/09 06:04:15 otto Exp $ 33.\" $OpenBSD: malloc.3,v 1.129 2022/03/31 17:27:16 naddy Exp $
34.\" 34.\"
35.Dd $Mdocdate: April 9 2021 $ 35.Dd $Mdocdate: March 31 2022 $
36.Dt MALLOC 3 36.Dt MALLOC 3
37.Os 37.Os
38.Sh NAME 38.Sh NAME
@@ -423,7 +423,7 @@ and multiplying
423.Fa oldnmemb 423.Fa oldnmemb
424and 424and
425.Fa size 425.Fa size
426results in integer overflow 426results in integer overflow,
427.Fn recallocarray 427.Fn recallocarray
428returns 428returns
429.Dv NULL 429.Dv NULL
@@ -610,7 +610,7 @@ Here is a brief description of the error messages and what they mean:
610.It Dq out of memory 610.It Dq out of memory
611If the 611If the
612.Cm X 612.Cm X
613option is specified it is an error for the allocation functions 613option is specified, it is an error for the allocation functions
614to return 614to return
615.Dv NULL . 615.Dv NULL .
616.It Dq bogus pointer (double free?) 616.It Dq bogus pointer (double free?)
diff --git a/src/lib/libc/stdlib/tsearch.3 b/src/lib/libc/stdlib/tsearch.3
index cd90435614..a7ab985013 100644
--- a/src/lib/libc/stdlib/tsearch.3
+++ b/src/lib/libc/stdlib/tsearch.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: tsearch.3,v 1.21 2019/01/25 00:19:25 millert Exp $ 1.\" $OpenBSD: tsearch.3,v 1.22 2022/03/31 17:27:16 naddy Exp $
2.\" 2.\"
3.\" Copyright (c) 1997 Todd C. Miller <millert@openbsd.org> 3.\" Copyright (c) 1997 Todd C. Miller <millert@openbsd.org>
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: January 25 2019 $ 17.Dd $Mdocdate: March 31 2022 $
18.Dt TSEARCH 3 18.Dt TSEARCH 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -63,7 +63,7 @@ except that if no match is found,
63is inserted into the tree and a pointer to it is returned. 63is inserted into the tree and a pointer to it is returned.
64If 64If
65.Fa rootp 65.Fa rootp
66points to a null value a new binary search tree is created. 66points to a null value, a new binary search tree is created.
67.Pp 67.Pp
68.Fn tdelete 68.Fn tdelete
69deletes a node from the specified binary search tree and returns 69deletes a node from the specified binary search tree and returns