From 3d8be07546f5ec331a0f851b0ea88212376ebb95 Mon Sep 17 00:00:00 2001 From: naddy <> Date: Thu, 31 Mar 2022 17:27:26 +0000 Subject: man pages: add missing commas between subordinate and main clauses jmc@ dislikes a comma before "then" in a conditional, so leave those untouched. ok jmc@ --- src/lib/libc/net/getaddrinfo.3 | 10 +++++----- src/lib/libc/net/inet6_opt_init.3 | 10 +++++----- src/lib/libc/net/inet6_rth_space.3 | 6 +++--- src/lib/libc/net/inet_net_ntop.3 | 8 ++++---- src/lib/libc/stdlib/malloc.3 | 8 ++++---- src/lib/libc/stdlib/tsearch.3 | 6 +++--- 6 files changed, 24 insertions(+), 24 deletions(-) (limited to 'src/lib/libc') 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 @@ -.\" $OpenBSD: getaddrinfo.3,v 1.59 2019/08/30 20:20:50 jmc Exp $ +.\" $OpenBSD: getaddrinfo.3,v 1.60 2022/03/31 17:27:16 naddy Exp $ .\" $KAME: getaddrinfo.3,v 1.36 2005/01/05 03:23:05 itojun Exp $ .\" .\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") @@ -16,7 +16,7 @@ .\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR .\" PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: August 30 2019 $ +.Dd $Mdocdate: March 31 2022 $ .Dt GETADDRINFO 3 .Os .Sh NAME @@ -105,7 +105,7 @@ or .Dv SOCK_RAW . When .Fa ai_socktype -is zero the caller will accept any socket type. +is zero, the caller will accept any socket type. .It Fa ai_protocol Indicates which transport protocol is desired, .Dv IPPROTO_UDP @@ -113,7 +113,7 @@ or .Dv IPPROTO_TCP . If .Fa ai_protocol -is zero the caller will accept any protocol. +is zero, the caller will accept any protocol. .It Fa ai_flags .Fa ai_flags is formed by @@ -180,7 +180,7 @@ and no service name resolution should be attempted. .It Dv AI_PASSIVE If the .Dv AI_PASSIVE -bit is set it indicates that the returned socket address structure +bit is set, it indicates that the returned socket address structure is intended for use in a call to .Xr bind 2 . In 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 @@ -.\" $OpenBSD: inet6_opt_init.3,v 1.7 2022/03/29 18:15:52 naddy Exp $ +.\" $OpenBSD: inet6_opt_init.3,v 1.8 2022/03/31 17:27:16 naddy Exp $ .\" $KAME: inet6_opt_init.3,v 1.7 2004/12/27 05:08:23 itojun Exp $ .\" .\" Copyright (C) 2004 WIDE Project. @@ -28,7 +28,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: March 29 2022 $ +.Dd $Mdocdate: March 31 2022 $ .Dt INET6_OPT_INIT 3 .Os .\" @@ -97,7 +97,7 @@ The function can perform different jobs. When a valid .Fa extbuf -argument is supplied it appends an option to the extension buffer and +argument is supplied, it appends an option to the extension buffer and returns the updated total length as well as a pointer to the newly created option in .Fa databufp . @@ -173,7 +173,7 @@ or When .Fa extbuf is not -.Dv NULL +.Dv NULL , the function also sets up the appropriate padding bytes by inserting a Pad1 or PadN option of the proper length. .Pp @@ -238,7 +238,7 @@ and point to the 8-bit option type, the 8-bit option length and the option data respectively. This function does not return any PAD1 or PADN options. -When an error occurs or there are no more options the return +When an error occurs or there are no more options, the return value is \-1. .\" .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 @@ -.\" $OpenBSD: inet6_rth_space.3,v 1.7 2014/06/11 16:59:47 chrisz Exp $ +.\" $OpenBSD: inet6_rth_space.3,v 1.8 2022/03/31 17:27:16 naddy Exp $ .\" $KAME: inet6_rth_space.3,v 1.7 2005/01/05 03:00:44 itojun Exp $ .\" .\" Copyright (C) 2004 WIDE Project. @@ -28,7 +28,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: June 11 2014 $ +.Dd $Mdocdate: March 31 2022 $ .Dt INET6_RTH_SPACE 3 .Os .\" @@ -85,7 +85,7 @@ argument and containing the number of addresses specified in the .Fa segments argument. When the type is -.Dv IPV6_RTHDR_TYPE_0 +.Dv IPV6_RTHDR_TYPE_0 , the number of segments must be from 0 through 127. The return value from this function is the number of bytes required to store 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 @@ -.\" $OpenBSD: inet_net_ntop.3,v 1.2 2021/09/01 15:59:22 claudio Exp $ +.\" $OpenBSD: inet_net_ntop.3,v 1.3 2022/03/31 17:27:16 naddy Exp $ .\" $NetBSD: inet_net.3,v 1.1 1997/06/18 02:25:27 lukem Exp $ .\" .\" Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -28,7 +28,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: September 1 2021 $ +.Dd $Mdocdate: March 31 2022 $ .Dt INET_NET_NTOP 3 .Os .Sh NAME @@ -110,7 +110,7 @@ is in the range and is used to explicitly specify the number of bits in the network address. When .Dq Li /bits -is not specified the number of bits in the network address is calculated +is not specified, the number of bits in the network address is calculated as the larger of the number of bits in the class to which the address belongs and the number of bits provided rounded up modulo 8. Examples: @@ -176,7 +176,7 @@ is in the range and is used to explicitly specify the number of bits in the network address. When .Dq Li /bits -is not specified 128 is used. +is not specified, 128 is used. Note that when the number of bits is specified using .Dq Li /bits notation, 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 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: malloc.3,v 1.128 2021/04/09 06:04:15 otto Exp $ +.\" $OpenBSD: malloc.3,v 1.129 2022/03/31 17:27:16 naddy Exp $ .\" -.Dd $Mdocdate: April 9 2021 $ +.Dd $Mdocdate: March 31 2022 $ .Dt MALLOC 3 .Os .Sh NAME @@ -423,7 +423,7 @@ and multiplying .Fa oldnmemb and .Fa size -results in integer overflow +results in integer overflow, .Fn recallocarray returns .Dv NULL @@ -610,7 +610,7 @@ Here is a brief description of the error messages and what they mean: .It Dq out of memory If the .Cm X -option is specified it is an error for the allocation functions +option is specified, it is an error for the allocation functions to return .Dv NULL . .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 @@ -.\" $OpenBSD: tsearch.3,v 1.21 2019/01/25 00:19:25 millert Exp $ +.\" $OpenBSD: tsearch.3,v 1.22 2022/03/31 17:27:16 naddy Exp $ .\" .\" Copyright (c) 1997 Todd C. Miller .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 25 2019 $ +.Dd $Mdocdate: March 31 2022 $ .Dt TSEARCH 3 .Os .Sh NAME @@ -63,7 +63,7 @@ except that if no match is found, is inserted into the tree and a pointer to it is returned. If .Fa rootp -points to a null value a new binary search tree is created. +points to a null value, a new binary search tree is created. .Pp .Fn tdelete deletes a node from the specified binary search tree and returns -- cgit v1.2.3-55-g6feb