summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/lib/libdialog/dialog.38
-rw-r--r--lib/libc/gen/exec.38
-rw-r--r--lib/libc/gen/psignal.36
-rw-r--r--lib/libc/net/gethostbyname.32
-rw-r--r--lib/libc/stdlib/getopt.312
-rw-r--r--lib/libc/stdlib/getsubopt.32
-rw-r--r--lib/libc/stdtime/ctime.32
-rw-r--r--lib/libc/string/strerror.34
-rw-r--r--share/man/man3/end.36
-rw-r--r--share/man/man9/at_exit.92
-rw-r--r--share/man/man9/at_fork.94
-rw-r--r--share/man/man9/bios.96
12 files changed, 32 insertions, 30 deletions
diff --git a/gnu/lib/libdialog/dialog.3 b/gnu/lib/libdialog/dialog.3
index 140c4ab7d3e8..876c6738b65a 100644
--- a/gnu/lib/libdialog/dialog.3
+++ b/gnu/lib/libdialog/dialog.3
@@ -326,7 +326,7 @@ should be a positive
integer representing the number of string pointer pairs to find in
.Va itptr
(which should be of type
-.Ft char "**" ),
+.Ft char "**" ) ,
the strings are
expected to be in prompt and title order for each item and the
.Va result
@@ -392,7 +392,7 @@ should be a positive
integer representing the number of string pointer tuples to find in
.Va itptr
(which should be of type
-.Ft "char **" ),
+.Ft "char **" ) ,
the strings are
expected to be in prompt, title and state ("on" or "off") order for
each item and the
@@ -408,7 +408,7 @@ integer representing the number of
structures pointed to by
.Va itptr
(which should be of type
-.Ft "dialogMenuItem *" ),
+.Ft "dialogMenuItem *" ) ,
one structure per item. In the new interface,
the
.Va result
@@ -475,7 +475,7 @@ should be a positive
integer representing the number of string pointer tuples to find in
.Va itptr
(which should be of type
-.Ft "char **" ),
+.Ft "char **" ) ,
the strings are
expected to be in prompt, title and state ("on" or "off") order for
each item and the
diff --git a/lib/libc/gen/exec.3 b/lib/libc/gen/exec.3
index 11717ef86556..12de06e7d480 100644
--- a/lib/libc/gen/exec.3
+++ b/lib/libc/gen/exec.3
@@ -47,7 +47,7 @@
.Lb libc
.Sh SYNOPSIS
.Fd #include <unistd.h>
-.Vt extern char **environ;
+.Vt extern char **environ ;
.Ft int
.Fn execl "const char *path" "const char *arg" ...
.Ft int
@@ -155,7 +155,7 @@ errors except
.Er ENOEXEC
as being ambiguous here, although only the critical error
.Er EACCES
-is really ambiguous),
+is really ambiguous),
then these functions will act as if they stat the file to determine
whether the file exists and has suitable execute permissions.
If it does, they will return immediately with the global variable
@@ -225,7 +225,7 @@ for any of the errors specified for the library function
.Xr fork 2 ,
.Xr ktrace 2 ,
.Xr ptrace 2 ,
-.Xr environ 7 .
+.Xr environ 7
.Sh COMPATIBILITY
Historically, the default path for the
.Fn execlp
@@ -260,7 +260,7 @@ upon which they returned.
They now return for
.Er ETXTBSY ,
and determine existence and executability more carefully.
-In particular,
+In particular,
.Er EACCES
for inaccessible directories in the path prefix is no longer
confused with
diff --git a/lib/libc/gen/psignal.3 b/lib/libc/gen/psignal.3
index 3867a32f0b57..3ea6216e1e6d 100644
--- a/lib/libc/gen/psignal.3
+++ b/lib/libc/gen/psignal.3
@@ -47,8 +47,8 @@
.Fd #include <signal.h>
.Ft void
.Fn psignal "unsigned sig" "const char *s"
-.Vt extern const char * const sys_siglist[];
-.Vt extern const char * const sys_signame[];
+.Vt extern const char * const sys_siglist[] ;
+.Vt extern const char * const sys_signame[] ;
.Fd #include <string.h>
.Ft "char *"
.Fn strsignal "int sig"
@@ -109,5 +109,5 @@ and
.Sh HISTORY
The
.Fn psignal
-function appeared in
+function appeared in
.Bx 4.2 .
diff --git a/lib/libc/net/gethostbyname.3 b/lib/libc/net/gethostbyname.3
index e513d741faf2..c7b5e65059fc 100644
--- a/lib/libc/net/gethostbyname.3
+++ b/lib/libc/net/gethostbyname.3
@@ -49,7 +49,7 @@
.Lb libc
.Sh SYNOPSIS
.Fd #include <netdb.h>
-.Vt extern int h_errno;
+.Vt extern int h_errno ;
.Ft struct hostent *
.Fn gethostbyname "const char *name"
.Ft struct hostent *
diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3
index 7d8047260c10..d9d69c1411d7 100644
--- a/lib/libc/stdlib/getopt.3
+++ b/lib/libc/stdlib/getopt.3
@@ -42,11 +42,11 @@
.Lb libc
.Sh SYNOPSIS
.Fd #include <unistd.h>
-.Vt extern char *optarg;
-.Vt extern int optind;
-.Vt extern int optopt;
-.Vt extern int opterr;
-.Vt extern int optreset;
+.Vt extern char *optarg ;
+.Vt extern int optind ;
+.Vt extern int optopt ;
+.Vt extern int opterr ;
+.Vt extern int optreset ;
.Ft int
.Fn getopt "int argc" "char * const *argv" "const char *optstring"
.Sh DESCRIPTION
@@ -142,7 +142,7 @@ returns \-1.
If the
.Fn getopt
function encounters a character not found in the string
-.Va optarg
+.Va optstring
or detects
a missing option argument it writes an error message to the
.Em stderr
diff --git a/lib/libc/stdlib/getsubopt.3 b/lib/libc/stdlib/getsubopt.3
index 1efd64ef1a48..c085a73ac353 100644
--- a/lib/libc/stdlib/getsubopt.3
+++ b/lib/libc/stdlib/getsubopt.3
@@ -42,7 +42,7 @@
.Lb libc
.Sh SYNOPSIS
.Fd #include <unistd.h>
-.Vt extern char *suboptarg
+.Vt extern char *suboptarg ;
.Ft int
.Fn getsubopt "char **optionp" "char * const *tokens" "char **valuep"
.Sh DESCRIPTION
diff --git a/lib/libc/stdtime/ctime.3 b/lib/libc/stdtime/ctime.3
index 69cfb12c5f76..326a2c1dba91 100644
--- a/lib/libc/stdtime/ctime.3
+++ b/lib/libc/stdtime/ctime.3
@@ -54,7 +54,7 @@
.Lb libc
.Sh SYNOPSIS
.Fd #include <time.h>
-.Vt extern char *tzname[2];
+.Vt extern char *tzname[2] ;
.Ft char *
.Fn ctime "const time_t *clock"
.Ft double
diff --git a/lib/libc/string/strerror.3 b/lib/libc/string/strerror.3
index 31499259d2d7..762f89d35ee6 100644
--- a/lib/libc/string/strerror.3
+++ b/lib/libc/string/strerror.3
@@ -51,8 +51,8 @@
.Fd #include <stdio.h>
.Ft void
.Fn perror "const char *string"
-.Vt extern const char * const sys_errlist[];
-.Vt extern const int sys_nerr;
+.Vt extern const char * const sys_errlist[] ;
+.Vt extern const int sys_nerr ;
.Fd #include <string.h>
.Ft char *
.Fn strerror "int errnum"
diff --git a/share/man/man3/end.3 b/share/man/man3/end.3
index 00a406226015..42e73fe586a4 100644
--- a/share/man/man3/end.3
+++ b/share/man/man3/end.3
@@ -41,9 +41,9 @@
.Nm edata
.Nd end boundaries of image segments
.Sh SYNOPSIS
-.Vt extern end;
-.Vt extern etext;
-.Vt extern edata;
+.Vt extern end ;
+.Vt extern etext ;
+.Vt extern edata ;
.Sh DESCRIPTION
The globals
.Va end , etext
diff --git a/share/man/man9/at_exit.9 b/share/man/man9/at_exit.9
index 9bb01039fdaf..354b2c478aca 100644
--- a/share/man/man9/at_exit.9
+++ b/share/man/man9/at_exit.9
@@ -35,7 +35,7 @@
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Fd #include <sys/systm.h>
-.Ft typedef void \*(lp*exitlist_fn\*(rp \*(lpstruct proc *\*(rp;
+.Ft typedef\ void ( exitlist_fn ) ( struct\ proc\ * ) ;
.Pp
.Ft int
.Fn at_exit "exitlist_fn func"
diff --git a/share/man/man9/at_fork.9 b/share/man/man9/at_fork.9
index 7b8eb598a06e..3e576ab6c750 100644
--- a/share/man/man9/at_fork.9
+++ b/share/man/man9/at_fork.9
@@ -35,7 +35,9 @@
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Fd #include <sys/systm.h>
-.Ft typedef void \*(lp*forklist_fn\*(rp \*(lpstruct proc*, struct proc*, int\*(rp;
+.Ft "typedef void" ( *forklist_fn )
+.Fa ( "struct proc*" , "struct proc*" , int ) ;
+.Pp
.Ft int
.Fn at_fork "forklist_fn func"
.Ft int
diff --git a/share/man/man9/bios.9 b/share/man/man9/bios.9
index 9929d147427c..193cfbd6d012 100644
--- a/share/man/man9/bios.9
+++ b/share/man/man9/bios.9
@@ -43,9 +43,9 @@
.Fn bios32 "caddr_t entry" "struct bios32_args *args"
.Fn BIOS_PADDRTOVADDR "addr"
.Fn BIOS_VADDRTOPADDR "addr"
-.Ft extern struct bios32_SDentry PCIbios;
-.Ft extern struct SMBIOS_table SMBIOStable;
-.Ft extern struct DMI_table DMItable;
+.Vt extern struct bios32_SDentry PCIbios ;
+.Vt extern struct SMBIOS_table SMBIOStable ;
+.Vt extern struct DMI_table DMItable ;
.Sh DESCRIPTION
These functions provide a general-purpose interface for dealing with
the BIOS functions and data encountered on x86 PC-architecture systems.