aboutsummaryrefslogtreecommitdiffstats
path: root/man/man3/gethostbyname.3
diff options
authorAlejandro Colomar <alx@kernel.org>2025-06-06 13:27:02 +0200
committerAlejandro Colomar <alx@kernel.org>2025-06-28 16:51:43 +0200
commit8eea66b827a11bc8983da517499cc236c6cd97ba (patch)
treeaef545da6666369425609c27752453f9f9cf45d8 /man/man3/gethostbyname.3
parent6569dd9b22d256f26928ddcc398db9f123546171 (diff)
downloadman-pages-master.tar.gz
man/: SYNOPSIS: Don't highlight forward declarations of function parametersHEADmaster
Previously, many people confused these for actual parameters, since it's hard to distinguish a ',' from ';'. By removing bold/italics from these, it will be easier to distinguish them. The cases have been found with a script: $ find -type f \ | xargs grep -l '^\.TH ' \ | sort \ | xargs mansect SYNOPSIS \ | man /dev/stdin \ | grep -e '^[^ ]' -e '[^ ]( [^ )].*[^)];' \ | less; Reported-by: Mark Naughton <mnaughto@redhat.com> Suggested-by: Mark Harris <mark.hsj@gmail.com> Acked-by: Mark Naughton <mnaughto@redhat.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man3/gethostbyname.3')
-rw-r--r--man/man3/gethostbyname.310
1 files changed, 5 insertions, 5 deletions
diff --git a/man/man3/gethostbyname.3 b/man/man3/gethostbyname.3
index 4351b214ea..b09bd923b5 100644
--- a/man/man3/gethostbyname.3
+++ b/man/man3/gethostbyname.3
@@ -24,7 +24,7 @@ Standard C library
.B [[deprecated]] extern int h_errno;
.P
.BI "[[deprecated]] struct hostent *gethostbyname(const char *" name );
-.BI "[[deprecated]] struct hostent *gethostbyaddr(socklen_t " size ;
+.BR "[[deprecated]] struct hostent *gethostbyaddr(" "socklen_t size;"
.BI " const void " addr [ size ],
.BI " socklen_t " size ", int " type );
.P
@@ -38,14 +38,14 @@ Standard C library
.B [[deprecated]]
.BI "struct hostent *gethostbyname2(const char *" name ", int " af );
.P
-.BI "int gethostent_r(size_t " bufsize ;
+.BR "int gethostent_r(" "size_t bufsize;"
.BI " struct hostent *restrict " ret ,
.BI " char " buf "[restrict " bufsize "], size_t " bufsize ,
.BI " struct hostent **restrict " result ,
.BI " int *restrict " h_errnop );
.P
.B [[deprecated]]
-.BI "int gethostbyaddr_r(socklen_t " size ", size_t " bufsize ;
+.BR "int gethostbyaddr_r(" "socklen_t size, size_t bufsize;"
.BI " const void " addr "[restrict " size "], socklen_t " size ,
.BI " int " type ,
.BI " struct hostent *restrict " ret ,
@@ -53,14 +53,14 @@ Standard C library
.BI " struct hostent **restrict " result ,
.BI " int *restrict " h_errnop );
.B [[deprecated]]
-.BI "int gethostbyname_r(size_t " bufsize ;
+.BR "int gethostbyname_r(" "size_t bufsize;"
.BI " const char *restrict " name ,
.BI " struct hostent *restrict " ret ,
.BI " char " buf "[restrict " bufsize "], size_t " bufsize ,
.BI " struct hostent **restrict " result ,
.BI " int *restrict " h_errnop );
.B [[deprecated]]
-.BI "int gethostbyname2_r(size_t " bufsize ;
+.BR "int gethostbyname2_r(" "size_t bufsize;"
.BI " const char *restrict " name ", int " af,
.BI " struct hostent *restrict " ret ,
.BI " char " buf "[restrict " bufsize "], size_t " bufsize ,