From 733099db79c3c2668c3ba1571684bd82b40ea7b0 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Fri, 13 Jun 2025 18:34:00 +0000 Subject: The mdoc(7) .Ft macro does not need quoting of its arguments, but about 10% of our manual pages using this macro employed useless quoting anyway. Remove these quotes such that they do not incite fear, uncertainty, and doubt in developers who happen to look at these pages. jmc@ and tb@ agree with the direction. --- src/lib/libc/net/gai_strerror.3 | 6 +++--- src/lib/libc/net/if_indextoname.3 | 12 ++++++------ src/lib/libc/net/inet6_opt_init.3 | 18 +++++++++--------- src/lib/libc/net/inet6_rth_space.3 | 8 ++++---- src/lib/libc/stdlib/ptsname.3 | 6 +++--- src/lib/libc/stdlib/rand48.3 | 8 ++++---- src/lib/libc/stdlib/realpath.3 | 6 +++--- src/lib/libc/string/memmem.3 | 6 +++--- 8 files changed, 35 insertions(+), 35 deletions(-) (limited to 'src/lib/libc') diff --git a/src/lib/libc/net/gai_strerror.3 b/src/lib/libc/net/gai_strerror.3 index d271f492c5..93d11aad09 100644 --- a/src/lib/libc/net/gai_strerror.3 +++ b/src/lib/libc/net/gai_strerror.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: gai_strerror.3,v 1.10 2017/05/03 01:58:33 deraadt Exp $ +.\" $OpenBSD: gai_strerror.3,v 1.11 2025/06/13 18:34:00 schwarze Exp $ .\" $KAME: gai_strerror.3,v 1.1 2005/01/05 03:04:47 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: May 3 2017 $ +.Dd $Mdocdate: June 13 2025 $ .Dt GAI_STRERROR 3 .Os .Sh NAME @@ -26,7 +26,7 @@ .In sys/types.h .In sys/socket.h .In netdb.h -.Ft "const char *" +.Ft const char * .Fn gai_strerror "int ecode" .Sh DESCRIPTION The diff --git a/src/lib/libc/net/if_indextoname.3 b/src/lib/libc/net/if_indextoname.3 index 25d2a2722f..9d00d66bd5 100644 --- a/src/lib/libc/net/if_indextoname.3 +++ b/src/lib/libc/net/if_indextoname.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: if_indextoname.3,v 1.16 2015/11/21 07:48:10 jmc Exp $ +.\" $OpenBSD: if_indextoname.3,v 1.17 2025/06/13 18:34:00 schwarze Exp $ .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. .\" @@ -28,7 +28,7 @@ .\" .\" From: @(#)rcmd.3 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: November 21 2015 $ +.Dd $Mdocdate: June 13 2025 $ .Dt IF_NAMETOINDEX 3 .Os .Sh NAME @@ -41,13 +41,13 @@ .In sys/types.h .In sys/socket.h .In net/if.h -.Ft "unsigned int" +.Ft unsigned int .Fn if_nametoindex "const char *ifname" -.Ft "char *" +.Ft char * .Fn if_indextoname "unsigned int ifindex" "char *ifname" -.Ft "struct if_nameindex *" +.Ft struct if_nameindex * .Fn if_nameindex "void" -.Ft "void" +.Ft void .Fn if_freenameindex "struct if_nameindex *ptr" .Sh DESCRIPTION These functions map interface indexes to interface names (such as diff --git a/src/lib/libc/net/inet6_opt_init.3 b/src/lib/libc/net/inet6_opt_init.3 index 41ba842166..87244507a9 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.8 2022/03/31 17:27:16 naddy Exp $ +.\" $OpenBSD: inet6_opt_init.3,v 1.9 2025/06/13 18:34:00 schwarze 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 31 2022 $ +.Dd $Mdocdate: June 13 2025 $ .Dt INET6_OPT_INIT 3 .Os .\" @@ -44,19 +44,19 @@ .\" .Sh SYNOPSIS .In netinet/in.h -.Ft "int" +.Ft int .Fn inet6_opt_init "void *extbuf" "socklen_t extlen" -.Ft "int" +.Ft int .Fn inet6_opt_append "void *extbuf" "socklen_t extlen" "int offset" "u_int8_t type" "socklen_t len" "u_int8_t align" "void **databufp" -.Ft "int" +.Ft int .Fn inet6_opt_finish "void *extbuf" "socklen_t extlen" "int offset" -.Ft "int" +.Ft int .Fn inet6_opt_set_val "void *databuf" "int offset" "void *val" "socklen_t vallen" -.Ft "int" +.Ft int .Fn inet6_opt_next "void *extbuf" "socklen_t extlen" "int offset" "u_int8_t *typep" "socklen_t *lenp" "void **databufp" -.Ft "int" +.Ft int .Fn inet6_opt_find "void *extbuf" "socklen_t extlen" "int offset" "u_int8_t type" "socklen_t *lenp" "void **databufp" -.Ft "int" +.Ft int .Fn inet6_opt_get_val "void *databuf" "socklen_t offset" "void *val" "socklen_t vallen" .\" .Sh DESCRIPTION diff --git a/src/lib/libc/net/inet6_rth_space.3 b/src/lib/libc/net/inet6_rth_space.3 index c40b45057e..7304266fe1 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.8 2022/03/31 17:27:16 naddy Exp $ +.\" $OpenBSD: inet6_rth_space.3,v 1.9 2025/06/13 18:34:00 schwarze 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: March 31 2022 $ +.Dd $Mdocdate: June 13 2025 $ .Dt INET6_RTH_SPACE 3 .Os .\" @@ -45,7 +45,7 @@ .In netinet/in.h .Ft socklen_t .Fn inet6_rth_space "int" "int" -.Ft "void *" +.Ft void * .Fn inet6_rth_init "void *" "socklen_t" "int" "int" .Ft int .Fn inet6_rth_add "void *" "const struct in6_addr *" @@ -53,7 +53,7 @@ .Fn inet6_rth_reverse "const void *" "void *" .Ft int .Fn inet6_rth_segments "const void *" -.Ft "struct in6_addr *" +.Ft struct in6_addr * .Fn inet6_rth_getaddr "const void *" "int" .\" .Sh DESCRIPTION diff --git a/src/lib/libc/stdlib/ptsname.3 b/src/lib/libc/stdlib/ptsname.3 index 98705528f5..eea36a5a02 100644 --- a/src/lib/libc/stdlib/ptsname.3 +++ b/src/lib/libc/stdlib/ptsname.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ptsname.3,v 1.2 2012/12/04 18:42:16 millert Exp $ +.\" $OpenBSD: ptsname.3,v 1.3 2025/06/13 18:34:00 schwarze Exp $ .\" .\" Copyright (c) 2002 The FreeBSD Project, Inc. .\" All rights reserved. @@ -32,7 +32,7 @@ .\" .\" $FreeBSD: head/lib/libc/stdlib/ptsname.3 240412 2012-09-12 17:54:09Z emaste $ .\" -.Dd $Mdocdate: December 4 2012 $ +.Dd $Mdocdate: June 13 2025 $ .Dt PTSNAME 3 .Os .Sh NAME @@ -44,7 +44,7 @@ .In stdlib.h .Ft int .Fn grantpt "int fildes" -.Ft "char *" +.Ft char * .Fn ptsname "int fildes" .Ft int .Fn unlockpt "int fildes" diff --git a/src/lib/libc/stdlib/rand48.3 b/src/lib/libc/stdlib/rand48.3 index fa7a7179bc..02e1999db9 100644 --- a/src/lib/libc/stdlib/rand48.3 +++ b/src/lib/libc/stdlib/rand48.3 @@ -9,9 +9,9 @@ .\" of any kind. I shall in no event be liable for anything that happens .\" to anyone/anything when using this software. .\" -.\" $OpenBSD: rand48.3,v 1.21 2019/12/20 19:16:40 tb Exp $ +.\" $OpenBSD: rand48.3,v 1.22 2025/06/13 18:34:00 schwarze Exp $ .\" -.Dd $Mdocdate: December 20 2019 $ +.Dd $Mdocdate: June 13 2025 $ .Dt DRAND48 3 .Os .Sh NAME @@ -46,9 +46,9 @@ .Fn srand48 "long seed" .Ft void .Fn srand48_deterministic "long seed" -.Ft "unsigned short *" +.Ft unsigned short * .Fn seed48 "unsigned short xseed[3]" -.Ft "unsigned short *" +.Ft unsigned short * .Fn seed48_deterministic "unsigned short xseed[3]" .Ft void .Fn lcong48 "unsigned short p[7]" diff --git a/src/lib/libc/stdlib/realpath.3 b/src/lib/libc/stdlib/realpath.3 index 1dec10fef4..1f932e3bb5 100644 --- a/src/lib/libc/stdlib/realpath.3 +++ b/src/lib/libc/stdlib/realpath.3 @@ -28,9 +28,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: realpath.3,v 1.26 2021/10/13 15:04:53 kn Exp $ +.\" $OpenBSD: realpath.3,v 1.27 2025/06/13 18:34:00 schwarze Exp $ .\" -.Dd $Mdocdate: October 13 2021 $ +.Dd $Mdocdate: June 13 2025 $ .Dt REALPATH 3 .Os .Sh NAME @@ -39,7 +39,7 @@ .Sh SYNOPSIS .In limits.h .In stdlib.h -.Ft "char *" +.Ft char * .Fn realpath "const char *pathname" "char *resolved" .Sh DESCRIPTION The diff --git a/src/lib/libc/string/memmem.3 b/src/lib/libc/string/memmem.3 index de62d738de..eeb621f8f6 100644 --- a/src/lib/libc/string/memmem.3 +++ b/src/lib/libc/string/memmem.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: memmem.3,v 1.4 2024/08/03 20:13:23 guenther Exp $ +.\" $OpenBSD: memmem.3,v 1.5 2025/06/13 18:34:00 schwarze Exp $ .\" .\" Copyright (c) 2005 Pascal Gloor .\" @@ -26,7 +26,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: August 3 2024 $ +.Dd $Mdocdate: June 13 2025 $ .Dt MEMMEM 3 .Os .Sh NAME @@ -34,7 +34,7 @@ .Nd locate a byte substring in a byte string .Sh SYNOPSIS .In string.h -.Ft "void *" +.Ft void * .Fo memmem .Fa "const void *big" "size_t big_len" .Fa "const void *little" "size_t little_len" -- cgit v1.2.3-55-g6feb