summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libc/gen/alarm.32
-rw-r--r--lib/libc/gen/directory.34
-rw-r--r--lib/libc/gen/frexp.34
-rw-r--r--lib/libc/gen/getdomainname.34
-rw-r--r--lib/libc/gen/getgrent.34
-rw-r--r--lib/libc/gen/getmntinfo.32
-rw-r--r--lib/libc/gen/getpagesize.34
-rw-r--r--lib/libc/gen/getvfsent.32
-rw-r--r--lib/libc/gen/ldexp.34
-rw-r--r--lib/libc/gen/msgctl.34
-rw-r--r--lib/libc/gen/msgrcv.34
-rw-r--r--lib/libc/gen/nice.32
-rw-r--r--lib/libc/gen/popen.34
-rw-r--r--lib/libc/gen/signal.32
-rw-r--r--lib/libc/gen/ualarm.32
-rw-r--r--lib/libc/gen/usleep.36
-rw-r--r--lib/libc/gen/utime.34
-rw-r--r--lib/libc/locale/mbrune.32
-rw-r--r--lib/libc/locale/multibyte.32
-rw-r--r--lib/libc/locale/rune.32
-rw-r--r--lib/libc/locale/toascii.34
-rw-r--r--lib/libc/locale/tolower.34
-rw-r--r--lib/libc/locale/toupper.34
-rw-r--r--lib/libc/net/getnetent.33
-rw-r--r--lib/libc/net/resolver.32
-rw-r--r--lib/libc/nls/catclose.34
-rw-r--r--lib/libc/stdio/fflush.32
-rw-r--r--lib/libc/stdio/fputs.32
-rw-r--r--lib/libc/stdio/getc.32
-rw-r--r--lib/libc/stdio/scanf.38
-rw-r--r--lib/libc/stdio/setbuf.36
-rw-r--r--lib/libc/stdio/stdio.32
-rw-r--r--lib/libc/stdio/ungetc.32
-rw-r--r--lib/libc/stdlib/abs.34
-rw-r--r--lib/libc/stdlib/bsearch.32
-rw-r--r--lib/libc/stdlib/exit.34
-rw-r--r--lib/libc/stdlib/labs.32
-rw-r--r--lib/libc/stdtime/strftime.32
-rw-r--r--lib/libc/string/strdup.34
-rw-r--r--lib/libc/string/string.312
-rw-r--r--lib/libc/sys/adjtime.22
-rw-r--r--lib/libc/sys/bind.24
-rw-r--r--lib/libc/sys/brk.24
-rw-r--r--lib/libc/sys/chmod.22
-rw-r--r--lib/libc/sys/chown.24
-rw-r--r--lib/libc/sys/close.26
-rw-r--r--lib/libc/sys/connect.24
-rw-r--r--lib/libc/sys/dup.26
-rw-r--r--lib/libc/sys/flock.24
-rw-r--r--lib/libc/sys/getdirentries.24
-rw-r--r--lib/libc/sys/getgid.24
-rw-r--r--lib/libc/sys/getitimer.22
-rw-r--r--lib/libc/sys/getpeername.24
-rw-r--r--lib/libc/sys/ioctl.24
-rw-r--r--lib/libc/sys/kill.22
-rw-r--r--lib/libc/sys/ktrace.24
-rw-r--r--lib/libc/sys/mmap.26
-rw-r--r--lib/libc/sys/mount.24
-rw-r--r--lib/libc/sys/msync.22
-rw-r--r--lib/libc/sys/munmap.22
-rw-r--r--lib/libc/sys/nfssvc.22
-rw-r--r--lib/libc/sys/open.24
-rw-r--r--lib/libc/sys/pipe.26
-rw-r--r--lib/libc/sys/ptrace.22
-rw-r--r--lib/libc/sys/recv.22
-rw-r--r--lib/libc/sys/rfork.26
-rw-r--r--lib/libc/sys/rtprio.22
-rw-r--r--lib/libc/sys/semop.24
-rw-r--r--lib/libc/sys/send.22
-rw-r--r--lib/libc/sys/setuid.24
-rw-r--r--lib/libc/sys/shmat.24
-rw-r--r--lib/libc/sys/shmctl.22
-rw-r--r--lib/libc/sys/shmget.22
-rw-r--r--lib/libc/sys/sigaction.210
-rw-r--r--lib/libc/sys/sigprocmask.24
-rw-r--r--lib/libc/sys/sigsuspend.22
-rw-r--r--lib/libc/sys/socket.24
-rw-r--r--lib/libc/sys/socketpair.24
-rw-r--r--lib/libc/sys/swapon.24
-rw-r--r--lib/libc/sys/symlink.24
-rw-r--r--lib/libc_r/man/pthread_create.34
-rw-r--r--lib/libc_r/man/pthread_exit.36
-rw-r--r--lib/libc_r/man/pthread_join.34
-rw-r--r--lib/libc_r/man/pthread_key_create.34
-rw-r--r--lib/libc_r/man/pthread_key_delete.32
-rw-r--r--lib/libc_r/man/pthread_setspecific.34
-rw-r--r--lib/libcompat/4.1/ftime.34
-rw-r--r--lib/libcompat/4.1/vtimes.32
-rw-r--r--lib/libcompat/4.3/re_comp.32
-rw-r--r--lib/libcompat/4.4/cuserid.34
-rw-r--r--lib/libcompat/regexp/regexp.32
-rw-r--r--lib/libkvm/kvm_getfiles.38
-rw-r--r--lib/libkvm/kvm_getloadavg.34
-rw-r--r--lib/libm/common_source/acos.310
-rw-r--r--lib/libm/common_source/acosh.34
-rw-r--r--lib/libm/common_source/asin.34
-rw-r--r--lib/libm/common_source/asinh.34
-rw-r--r--lib/libm/common_source/atan.34
-rw-r--r--lib/libm/common_source/atanh.34
-rw-r--r--lib/libm/common_source/ceil.34
-rw-r--r--lib/libm/common_source/cos.310
-rw-r--r--lib/libm/common_source/cosh.34
-rw-r--r--lib/libm/common_source/exp.34
-rw-r--r--lib/libm/common_source/fabs.34
-rw-r--r--lib/libm/common_source/floor.36
-rw-r--r--lib/libm/common_source/ieee.34
-rw-r--r--lib/libm/common_source/infnan.32
-rw-r--r--lib/libm/common_source/j0.34
-rw-r--r--lib/libm/common_source/lgamma.34
-rw-r--r--lib/libm/common_source/rint.32
-rw-r--r--lib/libm/common_source/sin.34
-rw-r--r--lib/libm/common_source/sinh.34
-rw-r--r--lib/libm/common_source/sqrt.34
-rw-r--r--lib/libm/common_source/tan.34
-rw-r--r--lib/libm/common_source/tanh.34
-rw-r--r--lib/libpthread/man/pthread_create.34
-rw-r--r--lib/libpthread/man/pthread_exit.36
-rw-r--r--lib/libpthread/man/pthread_join.34
-rw-r--r--lib/libpthread/man/pthread_key_create.34
-rw-r--r--lib/libpthread/man/pthread_key_delete.32
-rw-r--r--lib/libpthread/man/pthread_setspecific.34
-rw-r--r--lib/libscsi/scsi.34
-rw-r--r--lib/libskey/skey.32
-rw-r--r--lib/libutil/login.conf.52
-rw-r--r--lib/libutil/login_auth.34
-rw-r--r--lib/libutil/login_cap.34
-rw-r--r--lib/libutil/login_class.36
-rw-r--r--lib/libutil/login_times.36
-rw-r--r--lib/msun/man/acos.312
-rw-r--r--lib/msun/man/asin.34
-rw-r--r--lib/msun/man/atan.34
-rw-r--r--lib/msun/man/ceil.34
-rw-r--r--lib/msun/man/cos.312
-rw-r--r--lib/msun/man/cosh.34
-rw-r--r--lib/msun/man/fabs.34
-rw-r--r--lib/msun/man/floor.34
-rw-r--r--lib/msun/man/rint.32
-rw-r--r--lib/msun/man/sin.34
-rw-r--r--lib/msun/man/sinh.34
-rw-r--r--lib/msun/man/tan.34
-rw-r--r--lib/msun/man/tanh.34
-rw-r--r--share/man/man3/pthread_create.34
-rw-r--r--share/man/man3/pthread_exit.36
-rw-r--r--share/man/man3/pthread_join.34
-rw-r--r--share/man/man3/pthread_key_create.34
-rw-r--r--share/man/man3/pthread_key_delete.32
-rw-r--r--share/man/man3/pthread_setspecific.34
147 files changed, 289 insertions, 288 deletions
diff --git a/lib/libc/gen/alarm.3 b/lib/libc/gen/alarm.3
index ae0c22d..4d99fa1 100644
--- a/lib/libc/gen/alarm.3
+++ b/lib/libc/gen/alarm.3
@@ -71,8 +71,8 @@ is the amount of time left on the timer from a previous call to
.Fn alarm .
If no alarm is currently set, the return value is 0.
.Sh SEE ALSO
-.Xr sigaction 2 ,
.Xr setitimer 2 ,
+.Xr sigaction 2 ,
.Xr sigpause 2 ,
.Xr sigvec 2 ,
.Xr signal 3 ,
diff --git a/lib/libc/gen/directory.3 b/lib/libc/gen/directory.3
index 434f197..0abbe5f 100644
--- a/lib/libc/gen/directory.3
+++ b/lib/libc/gen/directory.3
@@ -164,10 +164,10 @@ while ((dp = readdir(dirp)) != NULL)
return NOT_FOUND;
.Ed
.Sh SEE ALSO
-.Xr open 2 ,
.Xr close 2 ,
-.Xr read 2 ,
.Xr lseek 2 ,
+.Xr open 2 ,
+.Xr read 2 ,
.Xr dir 5
.Sh HISTORY
The
diff --git a/lib/libc/gen/frexp.3 b/lib/libc/gen/frexp.3
index 574efa3..58c25fc 100644
--- a/lib/libc/gen/frexp.3
+++ b/lib/libc/gen/frexp.3
@@ -76,8 +76,8 @@ If
is zero, both parts of the result are zero.
.Sh SEE ALSO
.Xr ldexp 3 ,
-.Xr modf 3 ,
-.Xr math 3
+.Xr math 3 ,
+.Xr modf 3
.Sh STANDARDS
The
.Fn frexp
diff --git a/lib/libc/gen/getdomainname.3 b/lib/libc/gen/getdomainname.3
index d186291..ce2f94a 100644
--- a/lib/libc/gen/getdomainname.3
+++ b/lib/libc/gen/getdomainname.3
@@ -84,8 +84,8 @@ The caller tried to set the hostname and was not the super-user.
.El
.Sh SEE ALSO
.Xr gethostid 3 ,
-.Xr sysctl 3 ,
-.Xr gethostname 3
+.Xr gethostname 3 ,
+.Xr sysctl 3
.Sh BUGS
Domain names are limited to
.Dv MAXHOSTNAMELEN
diff --git a/lib/libc/gen/getgrent.3 b/lib/libc/gen/getgrent.3
index 86ade19..4ed5595 100644
--- a/lib/libc/gen/getgrent.3
+++ b/lib/libc/gen/getgrent.3
@@ -168,8 +168,8 @@ group database file
.El
.Sh SEE ALSO
.Fn getpwent 3 ,
-.Fn group 5 ,
-.Fn yp 4
+.Fn yp 4 ,
+.Fn group 5
.Sh HISTORY
The functions
.Fn endgrent ,
diff --git a/lib/libc/gen/getmntinfo.3 b/lib/libc/gen/getmntinfo.3
index 4b81e05..e92755b 100644
--- a/lib/libc/gen/getmntinfo.3
+++ b/lib/libc/gen/getmntinfo.3
@@ -85,8 +85,8 @@ or
.Xr malloc 3 .
.Sh SEE ALSO
.Xr getfsstat 2 ,
-.Xr statfs 2 ,
.Xr mount 2 ,
+.Xr statfs 2 ,
.Xr mount 8
.Sh HISTORY
The
diff --git a/lib/libc/gen/getpagesize.3 b/lib/libc/gen/getpagesize.3
index 6d56451..51dbcd1 100644
--- a/lib/libc/gen/getpagesize.3
+++ b/lib/libc/gen/getpagesize.3
@@ -51,8 +51,8 @@ The page size is a system
page size and may not be the same as the underlying
hardware page size.
.Sh SEE ALSO
-.Xr sbrk 2 ,
-.Xr pagesize 1
+.Xr pagesize 1 ,
+.Xr sbrk 2
.Sh HISTORY
The
.Fn getpagesze
diff --git a/lib/libc/gen/getvfsent.3 b/lib/libc/gen/getvfsent.3
index c992341..512a090 100644
--- a/lib/libc/gen/getvfsent.3
+++ b/lib/libc/gen/getvfsent.3
@@ -209,8 +209,8 @@ and
.Fn vfsload
to search for loadable modules.
.Sh SEE ALSO
-.Xr modload 8 ,
.Xr mount 2 ,
+.Xr modload 8 ,
.Xr mount 8
.Sh BUGS
The return value of the
diff --git a/lib/libc/gen/ldexp.3 b/lib/libc/gen/ldexp.3
index a19b329..0307ad1 100644
--- a/lib/libc/gen/ldexp.3
+++ b/lib/libc/gen/ldexp.3
@@ -68,8 +68,8 @@ and the value
is returned.
.Sh SEE ALSO
.Xr frexp 3 ,
-.Xr modf 3 ,
-.Xr math 3
+.Xr math 3 ,
+.Xr modf 3
.Sh STANDARDS
The
.Fn ldexp
diff --git a/lib/libc/gen/msgctl.3 b/lib/libc/gen/msgctl.3
index 659501f..c55ece4 100644
--- a/lib/libc/gen/msgctl.3
+++ b/lib/libc/gen/msgctl.3
@@ -194,8 +194,8 @@ is not a valid command.
specifies an invalid address.
.El
.Sh SEE ALSO
-.Xr msgsnd 3 ,
+.Xr msgget 3 ,
.Xr msgrcv 3 ,
-.Xr msgget 3
+.Xr msgsnd 3
.Sh HISTORY
Message queues appeared in the first release of AT&T Unix System V.
diff --git a/lib/libc/gen/msgrcv.3 b/lib/libc/gen/msgrcv.3
index 76b94ea..6b43837 100644
--- a/lib/libc/gen/msgrcv.3
+++ b/lib/libc/gen/msgrcv.3
@@ -169,9 +169,9 @@ There is no message of the requested type available on the message queue,
and IPC_NOWAIT is set in
.Fa msgflg .
.Sh SEE ALSO
-.Xr msgsnd 3 ,
.Xr msgctl 3 ,
-.Xr msgget 3
+.Xr msgget 3 ,
+.Xr msgsnd 3
.Sh BUGS
NetBSD and FreeBSD do not define the EIDRM error value, which should be used in
the case of a removed message queue, nor the ENOMSG value, which
diff --git a/lib/libc/gen/nice.3 b/lib/libc/gen/nice.3
index 64a87c6..cbec150 100644
--- a/lib/libc/gen/nice.3
+++ b/lib/libc/gen/nice.3
@@ -57,8 +57,8 @@ Children inherit the priority of their parent processes via
.Xr fork 2 .
.Sh SEE ALSO
.Xr nice 1 ,
-.Xr setpriority 2 ,
.Xr fork 2 ,
+.Xr setpriority 2 ,
.Xr renice 8
.Sh HISTORY
A
diff --git a/lib/libc/gen/popen.3 b/lib/libc/gen/popen.3
index db4adfa..01b0c2f 100644
--- a/lib/libc/gen/popen.3
+++ b/lib/libc/gen/popen.3
@@ -139,12 +139,12 @@ The
function does not reliably set
.Va errno .
.Sh SEE ALSO
-.Xr fork 2 ,
.Xr sh 1 ,
+.Xr fork 2 ,
.Xr pipe 2 ,
.Xr wait4 2 ,
-.Xr fflush 3 ,
.Xr fclose 3 ,
+.Xr fflush 3 ,
.Xr fopen 3 ,
.Xr stdio 3 ,
.Xr system 3
diff --git a/lib/libc/gen/signal.3 b/lib/libc/gen/signal.3
index cff30ec..b5503d1 100644
--- a/lib/libc/gen/signal.3
+++ b/lib/libc/gen/signal.3
@@ -210,8 +210,8 @@ or
.Ev SIGSTOP .
.Sh SEE ALSO
.Xr kill 1 ,
-.Xr ptrace 2 ,
.Xr kill 2 ,
+.Xr ptrace 2 ,
.Xr sigaction 2 ,
.Xr sigaltstack 2 ,
.Xr sigprocmask 2 ,
diff --git a/lib/libc/gen/ualarm.3 b/lib/libc/gen/ualarm.3
index 588cfcd..b64ed96 100644
--- a/lib/libc/gen/ualarm.3
+++ b/lib/libc/gen/ualarm.3
@@ -80,9 +80,9 @@ is 2147483647.
.Xr setitimer 2 ,
.Xr sigpause 2 ,
.Xr sigvec 2 ,
+.Xr alarm 3 ,
.Xr signal 3 ,
.Xr sleep 3 ,
-.Xr alarm 3 ,
.Xr usleep 3
.Sh HISTORY
The
diff --git a/lib/libc/gen/usleep.3 b/lib/libc/gen/usleep.3
index 630e386..66b317a 100644
--- a/lib/libc/gen/usleep.3
+++ b/lib/libc/gen/usleep.3
@@ -72,12 +72,12 @@ such a function would not restart after signals, but would not interfere
with other uses of
.Xr setitimer .
.Sh SEE ALSO
-.Xr setitimer 2 ,
.Xr getitimer 2 ,
+.Xr setitimer 2 ,
.Xr sigpause 2 ,
-.Xr ualarm 3 ,
+.Xr alarm 3 ,
.Xr sleep 3 ,
-.Xr alarm 3
+.Xr ualarm 3
.Sh HISTORY
The
.Fn usleep
diff --git a/lib/libc/gen/utime.3 b/lib/libc/gen/utime.3
index 7c6ed92..785a945 100644
--- a/lib/libc/gen/utime.3
+++ b/lib/libc/gen/utime.3
@@ -73,8 +73,8 @@ function may fail and set
for any of the errors specified for the library function
.Xr utimes 2 .
.Sh SEE ALSO
-.Xr utimes 2 ,
-.Xr stat 2
+.Xr stat 2 ,
+.Xr utimes 2
.Sh HISTORY
A
.Fn utime
diff --git a/lib/libc/locale/mbrune.3 b/lib/libc/locale/mbrune.3
index d843a02..c9515d8 100644
--- a/lib/libc/locale/mbrune.3
+++ b/lib/libc/locale/mbrune.3
@@ -138,10 +138,10 @@ if the
.Fa pattern
does not appear in the string.
.Sh "SEE ALSO
-.Xr euc 4 ,
.Xr mbrune 3 ,
.Xr rune 3 ,
.Xr setlocale 3 ,
+.Xr euc 4 ,
.Xr utf2 4
.Sh HISTORY
The
diff --git a/lib/libc/locale/multibyte.3 b/lib/libc/locale/multibyte.3
index 3ea10e5..7546cb2 100644
--- a/lib/libc/locale/multibyte.3
+++ b/lib/libc/locale/multibyte.3
@@ -222,10 +222,10 @@ not counting any terminating null byte.
If any invalid multibyte characters are encountered,
both functions return \-1.
.Sh "SEE ALSO
-.Xr euc 4 ,
.Xr mbrune 3 ,
.Xr rune 3 ,
.Xr setlocale 3 ,
+.Xr euc 4 ,
.Xr utf2 4
.Sh STANDARDS
The
diff --git a/lib/libc/locale/rune.3 b/lib/libc/locale/rune.3
index 659133f..89acde6 100644
--- a/lib/libc/locale/rune.3
+++ b/lib/libc/locale/rune.3
@@ -238,9 +238,9 @@ as a multibyte string.
binary LC_CTYPE file for the locale \fIlocale\fP.
.El
.Sh "SEE ALSO
-.Xr euc 4 ,
.Xr mbrune 3 ,
.Xr setlocale 3 ,
+.Xr euc 4 ,
.Xr utf2 4
.Sh NOTE
The ANSI C type
diff --git a/lib/libc/locale/toascii.3 b/lib/libc/locale/toascii.3
index 54fa292..788d2f2 100644
--- a/lib/libc/locale/toascii.3
+++ b/lib/libc/locale/toascii.3
@@ -51,9 +51,9 @@ The
.Fn toascii
function always returns a valid ASCII character.
.Sh SEE ALSO
-.Xr isascii 3 ,
.Xr isalnum 3 ,
.Xr isalpha 3 ,
+.Xr isascii 3 ,
.Xr iscntrl 3 ,
.Xr isdigit 3 ,
.Xr isgraph 3 ,
@@ -63,7 +63,7 @@ function always returns a valid ASCII character.
.Xr isspace 3 ,
.Xr isupper 3 ,
.Xr isxdigit 3 ,
+.Xr stdio 3 ,
.Xr tolower 3 ,
.Xr toupper 3 ,
-.Xr stdio 3 ,
.Xr ascii 7
diff --git a/lib/libc/locale/tolower.3 b/lib/libc/locale/tolower.3
index 49ce819..3f98965 100644
--- a/lib/libc/locale/tolower.3
+++ b/lib/libc/locale/tolower.3
@@ -65,9 +65,9 @@ one; otherwise the argument is returned unchanged.
.\" .Xr islower
.\" is true.
.Sh SEE ALSO
-.Xr isascii 3 ,
.Xr isalnum 3 ,
.Xr isalpha 3 ,
+.Xr isascii 3 ,
.Xr iscntrl 3 ,
.Xr isdigit 3 ,
.Xr isgraph 3 ,
@@ -77,9 +77,9 @@ one; otherwise the argument is returned unchanged.
.Xr isspace 3 ,
.Xr isupper 3 ,
.Xr isxdigit 3 ,
+.Xr stdio 3 ,
.Xr toascii 3 ,
.Xr toupper 3 ,
-.Xr stdio 3 ,
.Xr ascii 7
.Sh STANDARDS
The
diff --git a/lib/libc/locale/toupper.3 b/lib/libc/locale/toupper.3
index cd0b36e..2802637 100644
--- a/lib/libc/locale/toupper.3
+++ b/lib/libc/locale/toupper.3
@@ -65,9 +65,9 @@ one; otherwise the argument is returned unchanged.
.\" .Xr isupper
.\" is true.
.Sh SEE ALSO
-.Xr isascii 3 ,
.Xr isalnum 3 ,
.Xr isalpha 3 ,
+.Xr isascii 3 ,
.Xr iscntrl 3 ,
.Xr isdigit 3 ,
.Xr isgraph 3 ,
@@ -77,9 +77,9 @@ one; otherwise the argument is returned unchanged.
.Xr isspace 3 ,
.Xr isupper 3 ,
.Xr isxdigit 3 ,
+.Xr stdio 3 ,
.Xr toascii 3 ,
.Xr tolower 3 ,
-.Xr stdio 3 ,
.Xr ascii 7
.Sh STANDARDS
The
diff --git a/lib/libc/net/getnetent.3 b/lib/libc/net/getnetent.3
index 6b6aeb9..ba2abc0 100644
--- a/lib/libc/net/getnetent.3
+++ b/lib/libc/net/getnetent.3
@@ -132,7 +132,8 @@ Null pointer
.Dv EOF
or error.
.Sh SEE ALSO
-.Xr networks 5 ,
+.Xr networks 5
+.Pp
.%T RFC 1101
.Sh HISTORY
The
diff --git a/lib/libc/net/resolver.3 b/lib/libc/net/resolver.3
index f157904..dbfe3a9 100644
--- a/lib/libc/net/resolver.3
+++ b/lib/libc/net/resolver.3
@@ -326,9 +326,9 @@ see
.El
.Sh SEE ALSO
.Xr gethostbyname 3 ,
-.Xr named 8 ,
.Xr resolver 5 ,
.Xr hostname 7 ,
+.Xr named 8
.Pp
.%T RFC1032 ,
.%T RFC1033 ,
diff --git a/lib/libc/nls/catclose.3 b/lib/libc/nls/catclose.3
index f752784..2682b2f 100644
--- a/lib/libc/nls/catclose.3
+++ b/lib/libc/nls/catclose.3
@@ -44,8 +44,8 @@ The
function closes the message catalog specified by the argument
.Fa catd .
.Sh SEE ALSO
-.Xr catopen 3 ,
-.Xr catgets 3
+.Xr catgets 3 ,
+.Xr catopen 3
.Sh STANDARDS
The
.Fn catclose
diff --git a/lib/libc/stdio/fflush.3 b/lib/libc/stdio/fflush.3
index ce3f1b7..abc8c67 100644
--- a/lib/libc/stdio/fflush.3
+++ b/lib/libc/stdio/fflush.3
@@ -99,8 +99,8 @@ for any of the errors specified for the routine
.Xr write 2 .
.Sh SEE ALSO
.Xr write 2 ,
-.Xr fopen 3 ,
.Xr fclose 3 ,
+.Xr fopen 3 ,
.Xr setbuf 3
.Sh STANDARDS
The
diff --git a/lib/libc/stdio/fputs.3 b/lib/libc/stdio/fputs.3
index 5578ec2..0961366 100644
--- a/lib/libc/stdio/fputs.3
+++ b/lib/libc/stdio/fputs.3
@@ -95,8 +95,8 @@ may also fail and set
for any of the errors specified for the routines
.Xr write 2 .
.Sh SEE ALSO
-.Xr putc 3 ,
.Xr ferror 3 ,
+.Xr putc 3 ,
.Xr stdio 3
.Sh STANDARDS
The functions
diff --git a/lib/libc/stdio/getc.3 b/lib/libc/stdio/getc.3
index 352f20b..0c63fbe 100644
--- a/lib/libc/stdio/getc.3
+++ b/lib/libc/stdio/getc.3
@@ -106,8 +106,8 @@ until the condition is cleared with
.Xr clearerr 3 .
.Sh SEE ALSO
.Xr ferror 3 ,
-.Xr fread 3 ,
.Xr fopen 3 ,
+.Xr fread 3 ,
.Xr putc 3 ,
.Xr ungetc 3
.Sh STANDARDS
diff --git a/lib/libc/stdio/scanf.3 b/lib/libc/stdio/scanf.3
index dbfff88..e262d42 100644
--- a/lib/libc/stdio/scanf.3
+++ b/lib/libc/stdio/scanf.3
@@ -391,11 +391,11 @@ end-of-file occurs. If an error or end-of-file occurs after conversion
has begun,
the number of conversions which were successfully completed is returned.
.Sh SEE ALSO
-.Xr strtol 3 ,
-.Xr strtoul 3 ,
-.Xr strtod 3 ,
.Xr getc 3 ,
-.Xr printf 3
+.Xr printf 3 ,
+.Xr strtod 3 ,
+.Xr strtol 3 ,
+.Xr strtoul 3
.Sh STANDARDS
The functions
.Fn fscanf ,
diff --git a/lib/libc/stdio/setbuf.3 b/lib/libc/stdio/setbuf.3
index 30e9db7..a94dec1 100644
--- a/lib/libc/stdio/setbuf.3
+++ b/lib/libc/stdio/setbuf.3
@@ -170,12 +170,12 @@ function returns what the equivalent
.Fn setvbuf
would have returned.
.Sh SEE ALSO
-.Xr fopen 3 ,
.Xr fclose 3 ,
+.Xr fopen 3 ,
.Xr fread 3 ,
.Xr malloc 3 ,
-.Xr puts 3 ,
-.Xr printf 3
+.Xr printf 3 ,
+.Xr puts 3
.Sh STANDARDS
The
.Fn setbuf
diff --git a/lib/libc/stdio/stdio.3 b/lib/libc/stdio/stdio.3
index 5b200c0..81a6970 100644
--- a/lib/libc/stdio/stdio.3
+++ b/lib/libc/stdio/stdio.3
@@ -204,8 +204,8 @@ and
exist and will be used if the macros
definitions are explicitly removed.
.Sh SEE ALSO
-.Xr open 2 ,
.Xr close 2 ,
+.Xr open 2 ,
.Xr read 2 ,
.Xr write 2
.Sh BUGS
diff --git a/lib/libc/stdio/ungetc.3 b/lib/libc/stdio/ungetc.3
index e88b64f..e5c68d0 100644
--- a/lib/libc/stdio/ungetc.3
+++ b/lib/libc/stdio/ungetc.3
@@ -85,8 +85,8 @@ character equals
.Dv EOF ,
the operation will fail and the stream will remain unchanged.
.Sh SEE ALSO
-.Xr getc 3 ,
.Xr fseek 3 ,
+.Xr getc 3 ,
.Xr setvbuf 3
.Sh STANDARDS
The
diff --git a/lib/libc/stdlib/abs.3 b/lib/libc/stdlib/abs.3
index 132d905..233aa31 100644
--- a/lib/libc/stdlib/abs.3
+++ b/lib/libc/stdlib/abs.3
@@ -60,10 +60,10 @@ function
returns
the absolute value.
.Sh SEE ALSO
-.Xr floor 3 ,
-.Xr labs 3 ,
.Xr cabs 3 ,
+.Xr floor 3 ,
.Xr hypot 3 ,
+.Xr labs 3 ,
.Xr math 3
.Sh STANDARDS
The
diff --git a/lib/libc/stdlib/bsearch.3 b/lib/libc/stdlib/bsearch.3
index e4cf49f..a4e076e 100644
--- a/lib/libc/stdlib/bsearch.3
+++ b/lib/libc/stdlib/bsearch.3
@@ -81,7 +81,7 @@ If two members compare as equal, which member is matched is unspecified.
.Sh SEE ALSO
.Xr db 3 ,
.Xr lsearch 3 ,
-.Xr qsort 3 ,
+.Xr qsort 3
.\" .Xr tsearch 3
.Sh STANDARDS
The
diff --git a/lib/libc/stdlib/exit.3 b/lib/libc/stdlib/exit.3
index 8beca7c..de91276 100644
--- a/lib/libc/stdlib/exit.3
+++ b/lib/libc/stdlib/exit.3
@@ -79,8 +79,8 @@ never returns.
.Xr _exit 2 ,
.Xr atexit 3 ,
.Xr intro 3 ,
-.Xr tmpfile 3 ,
-.Xr sysexits 3
+.Xr sysexits 3 ,
+.Xr tmpfile 3
.Sh STANDARDS
The
.Fn exit
diff --git a/lib/libc/stdlib/labs.3 b/lib/libc/stdlib/labs.3
index ef9ba80..2dba8cc 100644
--- a/lib/libc/stdlib/labs.3
+++ b/lib/libc/stdlib/labs.3
@@ -53,8 +53,8 @@ returns the absolute value of the long integer
.Ar j .
.Sh SEE ALSO
.Xr abs 3 ,
-.Xr floor 3 ,
.Xr cabs 3 ,
+.Xr floor 3 ,
.Xr math 3
.Sh STANDARDS
The
diff --git a/lib/libc/stdtime/strftime.3 b/lib/libc/stdtime/strftime.3
index 6f4a86b..9a1f2d5 100644
--- a/lib/libc/stdtime/strftime.3
+++ b/lib/libc/stdtime/strftime.3
@@ -196,8 +196,8 @@ is replaced by
.El
.Sh SEE ALSO
.Xr date 1 ,
-.Xr ctime 3 ,
.Xr printf 1 ,
+.Xr ctime 3 ,
.Xr printf 3
.Sh STANDARDS
The
diff --git a/lib/libc/string/strdup.3 b/lib/libc/string/strdup.3
index 6d076ff..e93ee29 100644
--- a/lib/libc/string/strdup.3
+++ b/lib/libc/string/strdup.3
@@ -56,8 +56,8 @@ argument to the function
.Pp
If insufficient memory is available, NULL is returned.
.Sh SEE ALSO
-.Xr malloc 3 ,
-.Xr free 3
+.Xr free 3 ,
+.Xr malloc 3
.Sh HISTORY
The
.Fn strdup
diff --git a/lib/libc/string/string.3 b/lib/libc/string/string.3
index da20862..f380189 100644
--- a/lib/libc/string/string.3
+++ b/lib/libc/string/string.3
@@ -115,23 +115,23 @@ Except as noted in their specific manual pages,
the string functions do not test the destination
for size limitations.
.Sh SEE ALSO
+.Xr bstring 3 ,
.Xr index 3 ,
+.Xr rindex 3 ,
+.Xr strcasecmp 3 ,
.Xr strcat 3 ,
.Xr strchr 3 ,
-.Xr strrchr 3 ,
.Xr strcmp 3 ,
-.Xr strcasecmp 3 ,
.Xr strcpy 3 ,
+.Xr strcspn 3 ,
.Xr strerror 3 ,
.Xr strlen 3 ,
.Xr strpbrk 3 ,
+.Xr strrchr 3 ,
.Xr strsep 3 ,
.Xr strspn 3 ,
-.Xr strcspn 3 ,
.Xr strstr 3 ,
-.Xr strtok 3 ,
-.Xr rindex 3 ,
-.Xr bstring 3
+.Xr strtok 3
.Sh STANDARDS
The
.Fn strcat ,
diff --git a/lib/libc/sys/adjtime.2 b/lib/libc/sys/adjtime.2
index 712f0cb..ddb8137 100644
--- a/lib/libc/sys/adjtime.2
+++ b/lib/libc/sys/adjtime.2
@@ -98,7 +98,7 @@ The process's effective user ID is not that of the super-user.
.Xr date 1 ,
.Xr gettimeofday 2 ,
.Xr timed 8 ,
-.Xr timedc 8 ,
+.Xr timedc 8
.Rs
.%T "TSP: The Time Synchronization Protocol for UNIX 4.3BSD"
.%A R. Gusella
diff --git a/lib/libc/sys/bind.2 b/lib/libc/sys/bind.2
index 97f87ff..2094852 100644
--- a/lib/libc/sys/bind.2
+++ b/lib/libc/sys/bind.2
@@ -136,9 +136,9 @@ An empty pathname was specified.
.El
.Sh SEE ALSO
.Xr connect 2 ,
+.Xr getsockname 2 ,
.Xr listen 2 ,
-.Xr socket 2 ,
-.Xr getsockname 2
+.Xr socket 2
.Sh HISTORY
The
.Fn bind
diff --git a/lib/libc/sys/brk.2 b/lib/libc/sys/brk.2
index b587208..6867fcb 100644
--- a/lib/libc/sys/brk.2
+++ b/lib/libc/sys/brk.2
@@ -132,8 +132,8 @@ to support the expansion.
.Sh SEE ALSO
.Xr execve 2 ,
.Xr getrlimit 2 ,
-.Xr malloc 3 ,
-.Xr end 3
+.Xr end 3 ,
+.Xr malloc 3
.Sh BUGS
Setting the break may fail due to a temporary lack of
swap space. It is not possible to distinguish this
diff --git a/lib/libc/sys/chmod.2 b/lib/libc/sys/chmod.2
index 18b1ebd..683f3da 100644
--- a/lib/libc/sys/chmod.2
+++ b/lib/libc/sys/chmod.2
@@ -160,8 +160,8 @@ An I/O error occurred while reading from or writing to the file system.
.El
.Sh SEE ALSO
.Xr chmod 1 ,
-.Xr open 2 ,
.Xr chown 2 ,
+.Xr open 2 ,
.Xr stat 2 ,
.Xr sticky 8
.Sh STANDARDS
diff --git a/lib/libc/sys/chown.2 b/lib/libc/sys/chown.2
index d8b449b..2b4d6b8 100644
--- a/lib/libc/sys/chown.2
+++ b/lib/libc/sys/chown.2
@@ -125,10 +125,10 @@ The named file resides on a read-only file system.
An I/O error occurred while reading from or writing to the file system.
.El
.Sh SEE ALSO
-.Xr chown 8 ,
.Xr chgrp 1 ,
.Xr chmod 2 ,
-.Xr flock 2
+.Xr flock 2 ,
+.Xr chown 8
.Sh STANDARDS
The
.Fn chown
diff --git a/lib/libc/sys/close.2 b/lib/libc/sys/close.2
index 0923c73..2750fbe 100644
--- a/lib/libc/sys/close.2
+++ b/lib/libc/sys/close.2
@@ -130,13 +130,13 @@ An interrupt was received.
.El
.Sh SEE ALSO
.Xr accept 2 ,
+.Xr execve 2 ,
+.Xr fcntl 2 ,
.Xr flock 2 ,
.Xr open 2 ,
.Xr pipe 2 ,
.Xr socket 2 ,
-.Xr socketpair 2 ,
-.Xr execve 2 ,
-.Xr fcntl 2
+.Xr socketpair 2
.Sh STANDARDS
The
.Fn close
diff --git a/lib/libc/sys/connect.2 b/lib/libc/sys/connect.2
index 7302647..446fab5 100644
--- a/lib/libc/sys/connect.2
+++ b/lib/libc/sys/connect.2
@@ -159,9 +159,9 @@ Too many symbolic links were encountered in translating the pathname.
.El
.Sh SEE ALSO
.Xr accept 2 ,
+.Xr getsockname 2 ,
.Xr select 2 ,
-.Xr socket 2 ,
-.Xr getsockname 2
+.Xr socket 2
.Sh HISTORY
The
.Fn connect
diff --git a/lib/libc/sys/dup.2 b/lib/libc/sys/dup.2
index d3ea74e..8f7f1eb 100644
--- a/lib/libc/sys/dup.2
+++ b/lib/libc/sys/dup.2
@@ -164,13 +164,13 @@ Too many descriptors are active.
.El
.Sh SEE ALSO
.Xr accept 2 ,
-.Xr open 2 ,
.Xr close 2 ,
.Xr fcntl 2 ,
+.Xr getdtablesize 2 ,
+.Xr open 2 ,
.Xr pipe 2 ,
.Xr socket 2 ,
-.Xr socketpair 2 ,
-.Xr getdtablesize 2
+.Xr socketpair 2
.Sh STANDARDS
The
.Fn dup
diff --git a/lib/libc/sys/flock.2 b/lib/libc/sys/flock.2
index 40edd3c..966f7a9 100644
--- a/lib/libc/sys/flock.2
+++ b/lib/libc/sys/flock.2
@@ -159,11 +159,11 @@ The argument
refers to an object that does not support file locking.
.El
.Sh SEE ALSO
-.Xr open 2 ,
.Xr close 2 ,
.Xr dup 2 ,
.Xr execve 2 ,
-.Xr fork 2
+.Xr fork 2 ,
+.Xr open 2
.Sh HISTORY
The
.Fn flock
diff --git a/lib/libc/sys/getdirentries.2 b/lib/libc/sys/getdirentries.2
index af1ca7a..42857bb 100644
--- a/lib/libc/sys/getdirentries.2
+++ b/lib/libc/sys/getdirentries.2
@@ -166,8 +166,8 @@ An
error occurred while reading from or writing to the file system.
.El
.Sh SEE ALSO
-.Xr open 2 ,
-.Xr lseek 2
+.Xr lseek 2 ,
+.Xr open 2
.Sh HISTORY
The
.Fn getdirentries
diff --git a/lib/libc/sys/getgid.2 b/lib/libc/sys/getgid.2
index 21a7cc2..987f2a3 100644
--- a/lib/libc/sys/getgid.2
+++ b/lib/libc/sys/getgid.2
@@ -69,8 +69,8 @@ functions are always successful, and no return value is reserved to
indicate an error.
.Sh SEE ALSO
.Xr getuid 2 ,
-.Xr setregid 2 ,
-.Xr setgid 2
+.Xr setgid 2 ,
+.Xr setregid 2
.Sh STANDARDS
The
.Fn getgid
diff --git a/lib/libc/sys/getitimer.2 b/lib/libc/sys/getitimer.2
index 4e53188..d4534af 100644
--- a/lib/libc/sys/getitimer.2
+++ b/lib/libc/sys/getitimer.2
@@ -156,9 +156,9 @@ parameter specified a time that was too large
to be handled.
.El
.Sh SEE ALSO
+.Xr gettimeofday 2 ,
.Xr select 2 ,
.Xr sigvec 2 ,
-.Xr gettimeofday 2 ,
.Xr clocks 7
.Sh HISTORY
The
diff --git a/lib/libc/sys/getpeername.2 b/lib/libc/sys/getpeername.2
index abfe0c9..b9b6a03 100644
--- a/lib/libc/sys/getpeername.2
+++ b/lib/libc/sys/getpeername.2
@@ -104,8 +104,8 @@ process address space.
.Sh SEE ALSO
.Xr accept 2 ,
.Xr bind 2 ,
-.Xr socket 2 ,
-.Xr getsockname 2
+.Xr getsockname 2 ,
+.Xr socket 2
.Sh HISTORY
The
.Fn getpeername
diff --git a/lib/libc/sys/ioctl.2 b/lib/libc/sys/ioctl.2
index f848938..a1d5f79 100644
--- a/lib/libc/sys/ioctl.2
+++ b/lib/libc/sys/ioctl.2
@@ -120,8 +120,8 @@ is not valid.
.Xr mt 1 ,
.Xr execve 2 ,
.Xr fcntl 2 ,
-.Xr tty 4 ,
-.Xr intro 4
+.Xr intro 4 ,
+.Xr tty 4
.Sh HISTORY
An
.Fn ioctl
diff --git a/lib/libc/sys/kill.2 b/lib/libc/sys/kill.2
index 3d53ada..418b751 100644
--- a/lib/libc/sys/kill.2
+++ b/lib/libc/sys/kill.2
@@ -120,8 +120,8 @@ When signaling a process group, this error is returned if any members
of the group could not be signaled.
.El
.Sh SEE ALSO
-.Xr getpid 2 ,
.Xr getpgrp 2 ,
+.Xr getpid 2 ,
.Xr killpg 2 ,
.Xr sigaction 2
.Sh STANDARDS
diff --git a/lib/libc/sys/ktrace.2 b/lib/libc/sys/ktrace.2
index 213fe9b..89baa51 100644
--- a/lib/libc/sys/ktrace.2
+++ b/lib/libc/sys/ktrace.2
@@ -154,8 +154,8 @@ Too many symbolic links were encountered in translating the pathname.
An I/O error occurred while reading from or writing to the file system.
.El
.Sh SEE ALSO
-.Xr ktrace 1 ,
-.Xr kdump 1
+.Xr kdump 1 ,
+.Xr ktrace 1
.Sh HISTORY
A
.Nm ktrace
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2
index a616a2c..855a032 100644
--- a/lib/libc/sys/mmap.2
+++ b/lib/libc/sys/mmap.2
@@ -210,13 +210,13 @@ parameter wasn't available.
.Dv MAP_ANON
was specified and insufficient memory was available.
.Sh "SEE ALSO"
-.Xr msync 2 ,
-.Xr munmap 2 ,
-.Xr mprotect 2 ,
.Xr madvise 2 ,
.Xr mincore 2 ,
.Xr mlock 2 ,
+.Xr mprotect 2 ,
+.Xr msync 2 ,
.Xr munlock 2 ,
+.Xr munmap 2 ,
.Xr getpagesize 3
.Sh BUGS
diff --git a/lib/libc/sys/mount.2 b/lib/libc/sys/mount.2
index 0fc39d3..82c7f22 100644
--- a/lib/libc/sys/mount.2
+++ b/lib/libc/sys/mount.2
@@ -327,9 +327,9 @@ or
mount can also fail if the maximum number of filesystems are currently
mounted.
.Sh SEE ALSO
+.Xr mfs 8 ,
.Xr mount 8 ,
-.Xr umount 8 ,
-.Xr mfs 8
+.Xr umount 8
.Sh BUGS
Some of the error codes need translation to more obvious messages.
.Sh HISTORY
diff --git a/lib/libc/sys/msync.2 b/lib/libc/sys/msync.2
index b1c3b3e..f21ff29 100644
--- a/lib/libc/sys/msync.2
+++ b/lib/libc/sys/msync.2
@@ -87,7 +87,7 @@ was both MS_ASYNC and MS_INVALIDATE. Only one of these flags is allowed.
.Xr madvise 2 ,
.Xr mincore 2 ,
.Xr mprotect 2 ,
-.Xr munmap 2 ,
+.Xr munmap 2
.Sh HISTORY
The
.Fn msync
diff --git a/lib/libc/sys/munmap.2 b/lib/libc/sys/munmap.2
index c7aba9e..208dc0b 100644
--- a/lib/libc/sys/munmap.2
+++ b/lib/libc/sys/munmap.2
@@ -71,8 +71,8 @@ valid address space.
.Sh "SEE ALSO"
.Xr madvise 2 ,
.Xr mincore 2 ,
-.Xr msync 2 ,
.Xr mprotect 2 ,
+.Xr msync 2 ,
.Xr munmap 2 ,
.Xr getpagesize 3
.Sh HISTORY
diff --git a/lib/libc/sys/nfssvc.2 b/lib/libc/sys/nfssvc.2
index e113fd0..4ba2861 100644
--- a/lib/libc/sys/nfssvc.2
+++ b/lib/libc/sys/nfssvc.2
@@ -215,8 +215,8 @@ as explained above.
The caller is not the super-user.
.El
.Sh SEE ALSO
-.Xr nfsd 8 ,
.Xr mount_nfs 8 ,
+.Xr nfsd 8 ,
.Xr nfsiod 8
.Sh HISTORY
The
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2
index 7dcaeaf..11d2906 100644
--- a/lib/libc/sys/open.2
+++ b/lib/libc/sys/open.2
@@ -276,8 +276,8 @@ An attempt was made to open a socket (not currently implemented).
.Xr getdtablesize 2 ,
.Xr lseek 2 ,
.Xr read 2 ,
-.Xr write 2 ,
-.Xr umask 2
+.Xr umask 2 ,
+.Xr write 2
.Sh HISTORY
An
.Fn open
diff --git a/lib/libc/sys/pipe.2 b/lib/libc/sys/pipe.2
index 9a03c84..d50c94f 100644
--- a/lib/libc/sys/pipe.2
+++ b/lib/libc/sys/pipe.2
@@ -107,10 +107,10 @@ space.
.El
.Sh SEE ALSO
.Xr sh 1 ,
-.Xr read 2 ,
-.Xr write 2 ,
.Xr fork 2 ,
-.Xr socketpair 2
+.Xr read 2 ,
+.Xr socketpair 2 ,
+.Xr write 2
.Sh HISTORY
A
.Fn pipe
diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2
index a7bfa2e..999f0d4 100644
--- a/lib/libc/sys/ptrace.2
+++ b/lib/libc/sys/ptrace.2
@@ -280,9 +280,9 @@ on a process in violation of the requirements listed under
above.
.El
.Sh SEE ALSO
+.Xr execve 2 ,
.Xr sigaction 2 ,
.Xr wait 2 ,
-.Xr execve 2 ,
.Xr execv 3
.Sh HISTORY
A
diff --git a/lib/libc/sys/recv.2 b/lib/libc/sys/recv.2
index 02f841b..5751022 100644
--- a/lib/libc/sys/recv.2
+++ b/lib/libc/sys/recv.2
@@ -252,9 +252,9 @@ address space.
.El
.Sh SEE ALSO
.Xr fcntl 2 ,
+.Xr getsockopt 2 ,
.Xr read 2 ,
.Xr select 2 ,
-.Xr getsockopt 2 ,
.Xr socket 2
.Sh HISTORY
The
diff --git a/lib/libc/sys/rfork.2 b/lib/libc/sys/rfork.2
index 1ba7b56..4a54149 100644
--- a/lib/libc/sys/rfork.2
+++ b/lib/libc/sys/rfork.2
@@ -127,10 +127,10 @@ Both the RFFDG and the RFCFDG flags were specified.
There is insufficient swap space for the new process.
.El
.Sh SEE ALSO
-.Xr intro 2 ,
.Xr fork 2 ,
-.Xr vfork 2 ,
-.Xr minherit 2
+.Xr intro 2 ,
+.Xr minherit 2 ,
+.Xr vfork 2
.Sh HISTORY
The
.Fn rfork
diff --git a/lib/libc/sys/rtprio.2 b/lib/libc/sys/rtprio.2
index f82cc8b..63a3b64 100644
--- a/lib/libc/sys/rtprio.2
+++ b/lib/libc/sys/rtprio.2
@@ -98,9 +98,9 @@ The specified process was not found.
The original author was Henrik Vestergaard Draboel - hvd@terry.ping.dk. This
implementation in FreeBSD was substantially rewritten by David Greenman.
.Sh SEE ALSO
-.Xr rtprio 1 ,
.Xr nice 1 ,
.Xr ps 1 ,
+.Xr rtprio 1 ,
.Xr setpriority 2 ,
.Xr nice 3 ,
.Xr renice 8
diff --git a/lib/libc/sys/semop.2 b/lib/libc/sys/semop.2
index ef24a7d..f1978c1 100644
--- a/lib/libc/sys/semop.2
+++ b/lib/libc/sys/semop.2
@@ -188,5 +188,5 @@ Too many operations were specified.
.Fa sem_num
was not in the range of valid semaphores for the set.
.Sh SEE ALSO
-.Xr semget 2 ,
-.Xr semctl 2
+.Xr semctl 2 ,
+.Xr semget 2
diff --git a/lib/libc/sys/send.2 b/lib/libc/sys/send.2
index abeadb6..ac9451a 100644
--- a/lib/libc/sys/send.2
+++ b/lib/libc/sys/send.2
@@ -167,9 +167,9 @@ but may be caused by transient congestion.
.El
.Sh SEE ALSO
.Xr fcntl 2 ,
+.Xr getsockopt 2 ,
.Xr recv 2 ,
.Xr select 2 ,
-.Xr getsockopt 2 ,
.Xr socket 2 ,
.Xr write 2
.Sh HISTORY
diff --git a/lib/libc/sys/setuid.2 b/lib/libc/sys/setuid.2
index cfd8cbf..81f5516a 100644
--- a/lib/libc/sys/setuid.2
+++ b/lib/libc/sys/setuid.2
@@ -122,8 +122,8 @@ If the user is not the super user, or the uid
specified is not the real, effective ID, or saved ID,
these functions return \-1.
.Sh SEE ALSO
-.Xr getuid 2 ,
-.Xr getgid 2
+.Xr getgid 2 ,
+.Xr getuid 2
.Sh STANDARDS
The
.Fn setuid
diff --git a/lib/libc/sys/shmat.2 b/lib/libc/sys/shmat.2
index 72b5287..bae729e 100644
--- a/lib/libc/sys/shmat.2
+++ b/lib/libc/sys/shmat.2
@@ -106,5 +106,5 @@ will fail if:
.Fa addr
does not point to a shared memory segment.
.Sh "SEE ALSO"
-.Xr shmget 2 ,
-.Xr shmctl 2
+.Xr shmctl 2 ,
+.Xr shmget 2
diff --git a/lib/libc/sys/shmctl.2 b/lib/libc/sys/shmctl.2
index c704467..6f684a7 100644
--- a/lib/libc/sys/shmctl.2
+++ b/lib/libc/sys/shmctl.2
@@ -130,7 +130,7 @@ the shared memory segment's owner or creator.
Permission denied due to mismatch between operation and mode of
shared memory segment.
.Sh "SEE ALSO"
-.Xr shmget 2 ,
.Xr shmat 2 ,
.Xr shmdt 2 ,
+.Xr shmget 2 ,
.Xr ftok 3
diff --git a/lib/libc/sys/shmget.2 b/lib/libc/sys/shmget.2
index 8c93fd2..27bf16f 100644
--- a/lib/libc/sys/shmget.2
+++ b/lib/libc/sys/shmget.2
@@ -132,7 +132,7 @@ corresponding to
already exists.
.Pp
.Sh "SEE ALSO"
-.Xr shmctl 2 ,
.Xr shmat 2 ,
+.Xr shmctl 2 ,
.Xr shmdt 2 ,
.Xr ftok 3
diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2
index 2f939cf..36d0ef0 100644
--- a/lib/libc/sys/sigaction.2
+++ b/lib/libc/sys/sigaction.2
@@ -369,15 +369,15 @@ and
are intended for backwards compatability with other operating systems.
.Sh SEE ALSO
.Xr kill 1 ,
-.Xr ptrace 2 ,
.Xr kill 2 ,
+.Xr ptrace 2 ,
.Xr sigaction 2 ,
-.Xr sigprocmask 2 ,
-.Xr sigsuspend 2 ,
+.Xr sigaltstack 2 ,
.Xr sigblock 2 ,
-.Xr sigsetmask 2 ,
.Xr sigpause 2 ,
-.Xr sigaltstack 2 ,
+.Xr sigprocmask 2 ,
+.Xr sigsetmask 2 ,
+.Xr sigsuspend 2 ,
.Xr sigvec 2 ,
.Xr setjmp 3 ,
.Xr siginterrupt 3 ,
diff --git a/lib/libc/sys/sigprocmask.2 b/lib/libc/sys/sigprocmask.2
index 9f6685c..af1b574 100644
--- a/lib/libc/sys/sigprocmask.2
+++ b/lib/libc/sys/sigprocmask.2
@@ -110,8 +110,8 @@ has a value other than those listed here.
.Sh SEE ALSO
.Xr kill 2 ,
.Xr sigaction 2 ,
-.Xr sigsetops 3 ,
-.Xr sigsuspend 2
+.Xr sigsuspend 2 ,
+.Xr sigsetops 3
.Sh STANDARDS
The
.Fn sigprocmask
diff --git a/lib/libc/sys/sigsuspend.2 b/lib/libc/sys/sigsuspend.2
index 33c4b338..0c77bcb 100644
--- a/lib/libc/sys/sigsuspend.2
+++ b/lib/libc/sys/sigsuspend.2
@@ -69,8 +69,8 @@ always terminates by being interrupted, returning -1 with
set to
.Dv EINTR .
.Sh SEE ALSO
-.Xr sigprocmask 2 ,
.Xr sigaction 2 ,
+.Xr sigprocmask 2 ,
.Xr sigsetops 3
.Sh STANDARDS
The
diff --git a/lib/libc/sys/socket.2 b/lib/libc/sys/socket.2
index c9c5f71..cadaf2a 100644
--- a/lib/libc/sys/socket.2
+++ b/lib/libc/sys/socket.2
@@ -241,7 +241,6 @@ The socket cannot be created until sufficient resources are freed.
.Xr accept 2 ,
.Xr bind 2 ,
.Xr connect 2 ,
-.Xr getprotoent 3 ,
.Xr getsockname 2 ,
.Xr getsockopt 2 ,
.Xr ioctl 2 ,
@@ -252,7 +251,8 @@ The socket cannot be created until sufficient resources are freed.
.Xr send 2 ,
.Xr shutdown 2 ,
.Xr socketpair 2 ,
-.Xr write 2
+.Xr write 2 ,
+.Xr getprotoent 3
.Rs
.%T "An Introductory 4.3 BSD Interprocess Communication Tutorial"
.%B PS1
diff --git a/lib/libc/sys/socketpair.2 b/lib/libc/sys/socketpair.2
index f48e496..62aef76 100644
--- a/lib/libc/sys/socketpair.2
+++ b/lib/libc/sys/socketpair.2
@@ -77,9 +77,9 @@ The address
does not specify a valid part of the
process address space.
.Sh SEE ALSO
+.Xr pipe 2 ,
.Xr read 2 ,
-.Xr write 2 ,
-.Xr pipe 2
+.Xr write 2
.Sh BUGS
This call is currently implemented only for the
.Tn UNIX
diff --git a/lib/libc/sys/swapon.2 b/lib/libc/sys/swapon.2
index 16a0125..b684da1 100644
--- a/lib/libc/sys/swapon.2
+++ b/lib/libc/sys/swapon.2
@@ -97,8 +97,8 @@ An I/O error occurred while opening the swap device.
.Fa Special
points outside the process's allocated address space.
.Sh SEE ALSO
-.Xr swapon 8 ,
-.Xr config 8
+.Xr config 8 ,
+.Xr swapon 8
.Sh BUGS
There is no way to stop swapping on a disk so that the pack may be
dismounted.
diff --git a/lib/libc/sys/symlink.2 b/lib/libc/sys/symlink.2
index 2d5afa4..ce1fa7e 100644
--- a/lib/libc/sys/symlink.2
+++ b/lib/libc/sys/symlink.2
@@ -127,8 +127,8 @@ points outside the process's allocated address space.
.Xr link 2 ,
.Xr lstat 2 ,
.Xr readlink 2 ,
-.Xr symlink 7 ,
-.Xr unlink 2
+.Xr unlink 2 ,
+.Xr symlink 7
.Sh HISTORY
The
.Fn symlink
diff --git a/lib/libc_r/man/pthread_create.3 b/lib/libc_r/man/pthread_create.3
index 5ac24e8..aa81588 100644
--- a/lib/libc_r/man/pthread_create.3
+++ b/lib/libc_r/man/pthread_create.3
@@ -99,9 +99,9 @@ is invalid.
.El
.Pp
.Sh SEE ALSO
+.Xr fork 2 ,
.Xr pthread_exit 3 ,
-.Xr pthread_join 3 ,
-.Xr fork 2
+.Xr pthread_join 3
.Sh STANDARDS
.Fn pthread_create
is expected to conform to IEEE
diff --git a/lib/libc_r/man/pthread_exit.3 b/lib/libc_r/man/pthread_exit.3
index 99b5b1f..aad365e 100644
--- a/lib/libc_r/man/pthread_exit.3
+++ b/lib/libc_r/man/pthread_exit.3
@@ -88,10 +88,10 @@ function cannot return to its caller.
None.
.Pp
.Sh SEE ALSO
-.Xr pthread_create 3 ,
-.Xr pthread_join 3 ,
+.Xr _exit 2 ,
.Xr exit 2 ,
-.Xr _exit 2
+.Xr pthread_create 3 ,
+.Xr pthread_join 3
.Sh STANDARDS
.Fn pthread_exit
is expected to conform to IEEE
diff --git a/lib/libc_r/man/pthread_join.3 b/lib/libc_r/man/pthread_join.3
index 374b832..cabf319 100644
--- a/lib/libc_r/man/pthread_join.3
+++ b/lib/libc_r/man/pthread_join.3
@@ -91,8 +91,8 @@ specifies the calling thread.
.El
.Pp
.Sh SEE ALSO
-.Xr pthread_create 3 ,
-.Xr wait 2
+.Xr wait 2 ,
+.Xr pthread_create 3
.Sh STANDARDS
.Fn pthread_join
is expected to conform to IEEE
diff --git a/lib/libc_r/man/pthread_key_create.3 b/lib/libc_r/man/pthread_key_create.3
index 1bcf9e0..25165ce 100644
--- a/lib/libc_r/man/pthread_key_create.3
+++ b/lib/libc_r/man/pthread_key_create.3
@@ -89,8 +89,8 @@ Insufficient memory exists to create the key.
.Pp
.Sh SEE ALSO
.Xr pthread_getspecific 3 ,
-.Xr pthread_setspecific 3 ,
-.Xr pthread_key_delete 3
+.Xr pthread_key_delete 3 ,
+.Xr pthread_setspecific 3
.Sh STANDARDS
.Fn pthread_key_create
is expected to conform to IEEE
diff --git a/lib/libc_r/man/pthread_key_delete.3 b/lib/libc_r/man/pthread_key_delete.3
index 732c562..badfa8c 100644
--- a/lib/libc_r/man/pthread_key_delete.3
+++ b/lib/libc_r/man/pthread_key_delete.3
@@ -82,8 +82,8 @@ value is invalid.
.El
.Pp
.Sh SEE ALSO
-.Xr pthread_key_create 3 ,
.Xr pthread_getspecific 3 ,
+.Xr pthread_key_create 3 ,
.Xr pthread_setspecific 3
.Sh STANDARDS
.Fn pthread_key_delete
diff --git a/lib/libc_r/man/pthread_setspecific.3 b/lib/libc_r/man/pthread_setspecific.3
index 05b947f..838b587 100644
--- a/lib/libc_r/man/pthread_setspecific.3
+++ b/lib/libc_r/man/pthread_setspecific.3
@@ -81,9 +81,9 @@ value is invalid.
.El
.Pp
.Sh SEE ALSO
+.Xr pthread_getspecific 3 ,
.Xr pthread_key_create 3 ,
-.Xr pthread_key_delete 3 ,
-.Xr pthread_getspecific 3
+.Xr pthread_key_delete 3
.Sh STANDARDS
.Fn pthread_setspecific
is expected to conform to IEEE
diff --git a/lib/libcompat/4.1/ftime.3 b/lib/libcompat/4.1/ftime.3
index c1e9c3a..097eaa6 100644
--- a/lib/libcompat/4.1/ftime.3
+++ b/lib/libcompat/4.1/ftime.3
@@ -75,8 +75,8 @@ Daylight Saving time applies locally during the appropriate part of the year.
.Sh SEE ALSO
.Xr gettimeofday 2 ,
.Xr settimeofday 2 ,
-.Xr time 3 ,
-.Xr ctime 3
+.Xr ctime 3 ,
+.Xr time 3
.Sh HISTORY
The
.Nm
diff --git a/lib/libcompat/4.1/vtimes.3 b/lib/libcompat/4.1/vtimes.3
index 3edb741..6eeee64 100644
--- a/lib/libcompat/4.1/vtimes.3
+++ b/lib/libcompat/4.1/vtimes.3
@@ -131,8 +131,8 @@ These numbers account only for real
data supplied by the caching mechanism is charged only
to the first process to read or write the data.
.Sh SEE ALSO
-.Xr wait3 2 ,
.Xr getrusage 2 ,
+.Xr wait3 2 ,
.Xr time 3
.Sh HISTORY
The
diff --git a/lib/libcompat/4.3/re_comp.3 b/lib/libcompat/4.3/re_comp.3
index 26e14139..1c6a91d 100644
--- a/lib/libcompat/4.3/re_comp.3
+++ b/lib/libcompat/4.3/re_comp.3
@@ -110,8 +110,8 @@ unmatched \e).
.Ed
.Sh SEE ALSO
.Xr ed 1 ,
-.Xr ex 1 ,
.Xr egrep 1 ,
+.Xr ex 1 ,
.Xr fgrep 1 ,
.Xr grep 1 ,
.Xr regex 3
diff --git a/lib/libcompat/4.4/cuserid.3 b/lib/libcompat/4.4/cuserid.3
index 998751b..6676566 100644
--- a/lib/libcompat/4.4/cuserid.3
+++ b/lib/libcompat/4.4/cuserid.3
@@ -78,5 +78,5 @@ the buffer
.Fa s
will be filled with a null string.
.Sh SEE ALSO
-.Xr getpwuid 3 ,
-.Xr geteuid 2 .
+.Xr geteuid 2 ,
+.Xr getpwuid 3
diff --git a/lib/libcompat/regexp/regexp.3 b/lib/libcompat/regexp/regexp.3
index 8d3b565..f99202e 100644
--- a/lib/libcompat/regexp/regexp.3
+++ b/lib/libcompat/regexp/regexp.3
@@ -281,9 +281,9 @@ where failures are syntax errors, exceeding implementation limits,
or applying `+' or `*' to a possibly-null operand.
.Sh SEE ALSO
.Xr ed 1 ,
+.Xr egrep 1 ,
.Xr ex 1 ,
.Xr expr 1 ,
-.Xr egrep 1 ,
.Xr fgrep 1 ,
.Xr grep 1 ,
.Xr regex 3
diff --git a/lib/libkvm/kvm_getfiles.3 b/lib/libkvm/kvm_getfiles.3
index 60b0758..54a3270 100644
--- a/lib/libkvm/kvm_getfiles.3
+++ b/lib/libkvm/kvm_getfiles.3
@@ -76,10 +76,10 @@ will return NULL on failure.
This routine does not belong in the kvm interface.
.Sh SEE ALSO
.Xr kvm 3 ,
+.Xr kvm_close 3 ,
+.Xr kvm_geterr 3 ,
+.Xr kvm_nlist 3 ,
.Xr kvm_open 3 ,
.Xr kvm_openfiles 3 ,
-.Xr kvm_close 3 ,
.Xr kvm_read 3 ,
-.Xr kvm_write 3 ,
-.Xr kvm_nlist 3 ,
-.Xr kvm_geterr 3
+.Xr kvm_write 3
diff --git a/lib/libkvm/kvm_getloadavg.3 b/lib/libkvm/kvm_getloadavg.3
index 65768de..f5ca469 100644
--- a/lib/libkvm/kvm_getloadavg.3
+++ b/lib/libkvm/kvm_getloadavg.3
@@ -60,5 +60,5 @@ If the load average was unobtainable, \-1 is returned; otherwise,
the number of samples actually retrieved is returned.
.Sh SEE ALSO
.Xr uptime 1 ,
-.Xr kvm 3 ,
-.Xr getloadavg 3
+.Xr getloadavg 3 ,
+.Xr kvm 3
diff --git a/lib/libm/common_source/acos.3 b/lib/libm/common_source/acos.3
index 6f1f386..4613957 100644
--- a/lib/libm/common_source/acos.3
+++ b/lib/libm/common_source/acos.3
@@ -71,16 +71,16 @@ to
.Dv EDOM
and a reserved operand fault is generated.
.Sh SEE ALSO
-.Xr sin 3 ,
-.Xr cos 3 ,
-.Xr tan 3 ,
.Xr asin 3 ,
.Xr atan 3 ,
.Xr atan2 3 ,
-.Xr sinh 3 ,
+.Xr cos 3 ,
.Xr cosh 3 ,
-.Xr tanh 3 ,
.Xr math 3 ,
+.Xr sin 3 ,
+.Xr sinh 3 ,
+.Xr tan 3 ,
+.Xr tanh 3
.Sh STANDARDS
The
.Fn acos
diff --git a/lib/libm/common_source/acosh.3 b/lib/libm/common_source/acosh.3
index 3023da5..3475162 100644
--- a/lib/libm/common_source/acosh.3
+++ b/lib/libm/common_source/acosh.3
@@ -72,8 +72,8 @@ causes a reserved operand fault.
.Xr asinh 3 ,
.Xr atanh 3 ,
.Xr exp 3 ,
-.Xr infnan 3
-.Xr math 3 ,
+.Xr infnan 3 ,
+.Xr math 3
.Sh HISTORY
The
.Fn acosh
diff --git a/lib/libm/common_source/asin.3 b/lib/libm/common_source/asin.3
index 9ca39ca..ebd4671 100644
--- a/lib/libm/common_source/asin.3
+++ b/lib/libm/common_source/asin.3
@@ -78,11 +78,11 @@ a reserved operand fault generated.
.Xr atan2 3 ,
.Xr cos 3 ,
.Xr cosh 3 ,
+.Xr math 3 ,
.Xr sin 3 ,
.Xr sinh 3 ,
.Xr tan 3 ,
-.Xr tanh 3 ,
-.Xr math 3 ,
+.Xr tanh 3
.Sh STANDARDS
The
.Fn asin
diff --git a/lib/libm/common_source/asinh.3 b/lib/libm/common_source/asinh.3
index 3958960..cd0b983 100644
--- a/lib/libm/common_source/asinh.3
+++ b/lib/libm/common_source/asinh.3
@@ -60,8 +60,8 @@ returns the inverse hyperbolic sine of
.Xr acosh 3 ,
.Xr atanh 3 ,
.Xr exp 3 ,
-.Xr infnan 3
-.Xr math 3 ,
+.Xr infnan 3 ,
+.Xr math 3
.Sh HISTORY
The
.Fn asinh
diff --git a/lib/libm/common_source/atan.3 b/lib/libm/common_source/atan.3
index 776978e..1119033 100644
--- a/lib/libm/common_source/atan.3
+++ b/lib/libm/common_source/atan.3
@@ -62,11 +62,11 @@ radians.
.Xr atan2 3 ,
.Xr cos 3 ,
.Xr cosh 3 ,
+.Xr math 3 ,
.Xr sin 3 ,
.Xr sinh 3 ,
.Xr tan 3 ,
-.Xr tanh 3 ,
-.Xr math 3 ,
+.Xr tanh 3
.Sh STANDARDS
The
.Fn atan
diff --git a/lib/libm/common_source/atanh.3 b/lib/libm/common_source/atanh.3
index 6f08536..49d669f 100644
--- a/lib/libm/common_source/atanh.3
+++ b/lib/libm/common_source/atanh.3
@@ -74,8 +74,8 @@ a reserved operand fault is generated.
.Xr acosh 3 ,
.Xr asinh 3 ,
.Xr exp 3 ,
-.Xr infnan 3
-.Xr math 3 ,
+.Xr infnan 3 ,
+.Xr math 3
.Sh HISTORY
The
.Fn atanh
diff --git a/lib/libm/common_source/ceil.3 b/lib/libm/common_source/ceil.3
index 1c0e6b0..080f30e 100644
--- a/lib/libm/common_source/ceil.3
+++ b/lib/libm/common_source/ceil.3
@@ -55,9 +55,9 @@ expressed as a double.
.Xr abs 3 ,
.Xr fabs 3 ,
.Xr floor 3 ,
-.Xr rint 3 ,
.Xr ieee 3 ,
-.Xr math 3 .
+.Xr math 3 ,
+.Xr rint 3
.Sh STANDARDS
The
.Fn ceil
diff --git a/lib/libm/common_source/cos.3 b/lib/libm/common_source/cos.3
index d1051ed..d279d38 100644
--- a/lib/libm/common_source/cos.3
+++ b/lib/libm/common_source/cos.3
@@ -56,16 +56,16 @@ The
.Fn cos
function returns the cosine value.
.Sh SEE ALSO
-.Xr sin 3 ,
-.Xr tan 3 ,
-.Xr asin 3 ,
.Xr acos 3 ,
+.Xr asin 3 ,
.Xr atan 3 ,
.Xr atan2 3 ,
-.Xr sinh 3 ,
.Xr cosh 3 ,
-.Xr tanh 3 ,
.Xr math 3 ,
+.Xr sin 3 ,
+.Xr sinh 3 ,
+.Xr tan 3 ,
+.Xr tanh 3
.Sh STANDARDS
The
.Fn acos
diff --git a/lib/libm/common_source/cosh.3 b/lib/libm/common_source/cosh.3
index 4eabf55..f88c848 100644
--- a/lib/libm/common_source/cosh.3
+++ b/lib/libm/common_source/cosh.3
@@ -62,11 +62,11 @@ is set to
.Xr atan 3 ,
.Xr atan2 3 ,
.Xr cos 3 ,
+.Xr math 3 ,
.Xr sin 3 ,
.Xr sinh 3 ,
.Xr tan 3 ,
-.Xr tanh 3 ,
-.Xr math 3 ,
+.Xr tanh 3
.Sh STANDARDS
The
.Fn cosh
diff --git a/lib/libm/common_source/exp.3 b/lib/libm/common_source/exp.3
index 1bdf060..be7677c 100644
--- a/lib/libm/common_source/exp.3
+++ b/lib/libm/common_source/exp.3
@@ -260,8 +260,8 @@ then \*(Na**0 = 1 too because x**0 = 1 for all finite
and infinite x, i.e., independently of x.
.El
.Sh SEE ALSO
-.Xr math 3 ,
-.Xr infnan 3
+.Xr infnan 3 ,
+.Xr math 3
.Sh HISTORY
A
.Fn exp ,
diff --git a/lib/libm/common_source/fabs.3 b/lib/libm/common_source/fabs.3
index c03bd2c..82704f1 100644
--- a/lib/libm/common_source/fabs.3
+++ b/lib/libm/common_source/fabs.3
@@ -56,9 +56,9 @@ function returns the absolute value of
.Xr abs 3 ,
.Xr ceil 3 ,
.Xr floor 3 ,
-.Xr rint 3 ,
.Xr ieee 3 ,
-.Xr math 3 .
+.Xr math 3 ,
+.Xr rint 3
.Sh STANDARDS
The
.Fn fabs
diff --git a/lib/libm/common_source/floor.3 b/lib/libm/common_source/floor.3
index 5dbe1c8..2aed79d 100644
--- a/lib/libm/common_source/floor.3
+++ b/lib/libm/common_source/floor.3
@@ -53,11 +53,11 @@ function returns the largest integral value
expressed as a double.
.Sh SEE ALSO
.Xr abs 3 ,
-.Xr ieee 3 ,
.Xr fabs 3 ,
.Xr floor 3 ,
-.Xr rint 3 ,
-.Xr math 3
+.Xr ieee 3 ,
+.Xr math 3 ,
+.Xr rint 3
.Sh STANDARDS
The
.Fn floor
diff --git a/lib/libm/common_source/ieee.3 b/lib/libm/common_source/ieee.3
index fd44617..432f7a0 100644
--- a/lib/libm/common_source/ieee.3
+++ b/lib/libm/common_source/ieee.3
@@ -192,8 +192,8 @@ to
.Dv ERANGE .
.Sh SEE ALSO
.Xr floor 3 ,
-.Xr math 3 ,
-.Xr infnan 3
+.Xr infnan 3 ,
+.Xr math 3
.Sh HISTORY
The
.Nm ieee
diff --git a/lib/libm/common_source/infnan.3 b/lib/libm/common_source/infnan.3
index 6a94bf6..6da38fd8 100644
--- a/lib/libm/common_source/infnan.3
+++ b/lib/libm/common_source/infnan.3
@@ -158,8 +158,8 @@ int iarg ;
}
.Ed
.Sh SEE ALSO
-.Xr math 3 ,
.Xr intro 2 ,
+.Xr math 3 ,
.Xr signal 3 .
.Pp
.Dv ERANGE
diff --git a/lib/libm/common_source/j0.3 b/lib/libm/common_source/j0.3
index cd4ac12..3a7d3fb 100644
--- a/lib/libm/common_source/j0.3
+++ b/lib/libm/common_source/j0.3
@@ -118,8 +118,8 @@ is set to
.Er EDOM
and a reserve operand fault is generated.
.Sh SEE ALSO
-.Xr math 3 ,
-.Xr infnan 3
+.Xr infnan 3 ,
+.Xr math 3
.Sh HISTORY
A set of these functions
function appeared in
diff --git a/lib/libm/common_source/lgamma.3 b/lib/libm/common_source/lgamma.3
index 92f68ab..92f4ba6 100644
--- a/lib/libm/common_source/lgamma.3
+++ b/lib/libm/common_source/lgamma.3
@@ -105,8 +105,8 @@ For large non-integer negative values,
.Fn gamma
will underflow.
.Sh SEE ALSO
-.Xr math 3 ,
-.Xr infnan 3
+.Xr infnan 3 ,
+.Xr math 3
.Sh HISTORY
The
.Nm lgamma
diff --git a/lib/libm/common_source/rint.3 b/lib/libm/common_source/rint.3
index 00cbf1c..868ebc9 100644
--- a/lib/libm/common_source/rint.3
+++ b/lib/libm/common_source/rint.3
@@ -103,8 +103,8 @@ and the presence or absence of an integer overflow are hard to
predict.
.Sh SEE ALSO
.Xr abs 3 ,
-.Xr fabs 3 ,
.Xr ceil 3 ,
+.Xr fabs 3 ,
.Xr floor 3 ,
.Xr ieee 3 ,
.Xr math 3
diff --git a/lib/libm/common_source/sin.3 b/lib/libm/common_source/sin.3
index c9bddd9..0eab465 100644
--- a/lib/libm/common_source/sin.3
+++ b/lib/libm/common_source/sin.3
@@ -61,10 +61,10 @@ function returns the sine value.
.Xr atan2 3 ,
.Xr cos 3 ,
.Xr cosh 3 ,
+.Xr math 3 ,
.Xr sinh 3 ,
.Xr tan 3 ,
-.Xr tanh 3 ,
-.Xr math 3 ,
+.Xr tanh 3
.Sh STANDARDS
The
.Fn sin
diff --git a/lib/libm/common_source/sinh.3 b/lib/libm/common_source/sinh.3
index c8b1b7f..26a1403 100644
--- a/lib/libm/common_source/sinh.3
+++ b/lib/libm/common_source/sinh.3
@@ -63,10 +63,10 @@ is set to
.Xr atan2 3 ,
.Xr cos 3 ,
.Xr cosh 3 ,
+.Xr math 3 ,
.Xr sin 3 ,
.Xr tan 3 ,
-.Xr tanh 3 ,
-.Xr math 3 ,
+.Xr tanh 3
.Sh STANDARDS
The
.Fn sinh
diff --git a/lib/libm/common_source/sqrt.3 b/lib/libm/common_source/sqrt.3
index a6d47d9..9c8c22b 100644
--- a/lib/libm/common_source/sqrt.3
+++ b/lib/libm/common_source/sqrt.3
@@ -106,8 +106,8 @@ in the
.Em P Ns lace
carried.
.Sh SEE ALSO
-.Xr math 3 ,
-.Xr infnan 3
+.Xr infnan 3 ,
+.Xr math 3
.Sh STANDARDS
The
.Nm sqrt
diff --git a/lib/libm/common_source/tan.3 b/lib/libm/common_source/tan.3
index 4e82ae3..b0d3767 100644
--- a/lib/libm/common_source/tan.3
+++ b/lib/libm/common_source/tan.3
@@ -62,10 +62,10 @@ function returns the tangent value.
.Xr atan2 3 ,
.Xr cos 3 ,
.Xr cosh 3 ,
+.Xr math 3 ,
.Xr sin 3 ,
.Xr sinh 3 ,
-.Xr tanh 3 ,
-.Xr math 3 ,
+.Xr tanh 3
.Sh STANDARDS
The
.Fn tan
diff --git a/lib/libm/common_source/tanh.3 b/lib/libm/common_source/tanh.3
index 7531728..2dc6bfc 100644
--- a/lib/libm/common_source/tanh.3
+++ b/lib/libm/common_source/tanh.3
@@ -59,10 +59,10 @@ function returns the hyperbolic tangent value.
.Xr atan2 3 ,
.Xr cos 3 ,
.Xr cosh 3 ,
+.Xr math 3 ,
.Xr sin 3 ,
.Xr sinh 3 ,
-.Xr tan 3 ,
-.Xr math 3 ,
+.Xr tan 3
.Sh STANDARDS
The
.Fn tanh
diff --git a/lib/libpthread/man/pthread_create.3 b/lib/libpthread/man/pthread_create.3
index 5ac24e8..aa81588 100644
--- a/lib/libpthread/man/pthread_create.3
+++ b/lib/libpthread/man/pthread_create.3
@@ -99,9 +99,9 @@ is invalid.
.El
.Pp
.Sh SEE ALSO
+.Xr fork 2 ,
.Xr pthread_exit 3 ,
-.Xr pthread_join 3 ,
-.Xr fork 2
+.Xr pthread_join 3
.Sh STANDARDS
.Fn pthread_create
is expected to conform to IEEE
diff --git a/lib/libpthread/man/pthread_exit.3 b/lib/libpthread/man/pthread_exit.3
index 99b5b1f..aad365e 100644
--- a/lib/libpthread/man/pthread_exit.3
+++ b/lib/libpthread/man/pthread_exit.3
@@ -88,10 +88,10 @@ function cannot return to its caller.
None.
.Pp
.Sh SEE ALSO
-.Xr pthread_create 3 ,
-.Xr pthread_join 3 ,
+.Xr _exit 2 ,
.Xr exit 2 ,
-.Xr _exit 2
+.Xr pthread_create 3 ,
+.Xr pthread_join 3
.Sh STANDARDS
.Fn pthread_exit
is expected to conform to IEEE
diff --git a/lib/libpthread/man/pthread_join.3 b/lib/libpthread/man/pthread_join.3
index 374b832..cabf319 100644
--- a/lib/libpthread/man/pthread_join.3
+++ b/lib/libpthread/man/pthread_join.3
@@ -91,8 +91,8 @@ specifies the calling thread.
.El
.Pp
.Sh SEE ALSO
-.Xr pthread_create 3 ,
-.Xr wait 2
+.Xr wait 2 ,
+.Xr pthread_create 3
.Sh STANDARDS
.Fn pthread_join
is expected to conform to IEEE
diff --git a/lib/libpthread/man/pthread_key_create.3 b/lib/libpthread/man/pthread_key_create.3
index 1bcf9e0..25165ce 100644
--- a/lib/libpthread/man/pthread_key_create.3
+++ b/lib/libpthread/man/pthread_key_create.3
@@ -89,8 +89,8 @@ Insufficient memory exists to create the key.
.Pp
.Sh SEE ALSO
.Xr pthread_getspecific 3 ,
-.Xr pthread_setspecific 3 ,
-.Xr pthread_key_delete 3
+.Xr pthread_key_delete 3 ,
+.Xr pthread_setspecific 3
.Sh STANDARDS
.Fn pthread_key_create
is expected to conform to IEEE
diff --git a/lib/libpthread/man/pthread_key_delete.3 b/lib/libpthread/man/pthread_key_delete.3
index 732c562..badfa8c 100644
--- a/lib/libpthread/man/pthread_key_delete.3
+++ b/lib/libpthread/man/pthread_key_delete.3
@@ -82,8 +82,8 @@ value is invalid.
.El
.Pp
.Sh SEE ALSO
-.Xr pthread_key_create 3 ,
.Xr pthread_getspecific 3 ,
+.Xr pthread_key_create 3 ,
.Xr pthread_setspecific 3
.Sh STANDARDS
.Fn pthread_key_delete
diff --git a/lib/libpthread/man/pthread_setspecific.3 b/lib/libpthread/man/pthread_setspecific.3
index 05b947f..838b587 100644
--- a/lib/libpthread/man/pthread_setspecific.3
+++ b/lib/libpthread/man/pthread_setspecific.3
@@ -81,9 +81,9 @@ value is invalid.
.El
.Pp
.Sh SEE ALSO
+.Xr pthread_getspecific 3 ,
.Xr pthread_key_create 3 ,
-.Xr pthread_key_delete 3 ,
-.Xr pthread_getspecific 3
+.Xr pthread_key_delete 3
.Sh STANDARDS
.Fn pthread_setspecific
is expected to conform to IEEE
diff --git a/lib/libscsi/scsi.3 b/lib/libscsi/scsi.3
index 33e24e4..d57c28e 100644
--- a/lib/libscsi/scsi.3
+++ b/lib/libscsi/scsi.3
@@ -326,8 +326,8 @@ The function
.Fn scsireq_enter
returns the result of the ioctl call.
.Sh SEE ALSO
-.Xr scsi 8 ,
-.Xr scsi 4
+.Xr scsi 4 ,
+.Xr scsi 8
.Sh BUGS
This only works completely for the 1542C. The host adapter code
that sets up the residual amount of data transfer has to be added
diff --git a/lib/libskey/skey.3 b/lib/libskey/skey.3
index 6632101..af8dc6a 100644
--- a/lib/libskey/skey.3
+++ b/lib/libskey/skey.3
@@ -145,7 +145,7 @@ skey.access configuration file which this function uses.
See above.
.Sh SEE ALSO
.Xr skey 1 ,
-.Xr skey.access 5 ,
+.Xr skey.access 5
.Sh BUGS
No advisory locking is done on the s/key database to guard against
simultaneous access from multiple processes.
diff --git a/lib/libutil/login.conf.5 b/lib/libutil/login.conf.5
index 7f4ac54..3ffbe7d 100644
--- a/lib/libutil/login.conf.5
+++ b/lib/libutil/login.conf.5
@@ -356,7 +356,7 @@ and
.Em host.exempt
lists.
.Sh SEE ALSO
-.Xr login 1
+.Xr login 1 ,
.Xr getcap 3 ,
.Xr getttyent 3 ,
.Xr login_cap 3 ,
diff --git a/lib/libutil/login_auth.3 b/lib/libutil/login_auth.3
index 2b8b9ff..79ad941 100644
--- a/lib/libutil/login_auth.3
+++ b/lib/libutil/login_auth.3
@@ -64,8 +64,8 @@ by
.Sh RETURN VALUES
.Sh SEE ALSO
+.Xr getcap 3 ,
.Xr login_cap 3 ,
.Xr login_class 3 ,
.Xr login.conf 5 ,
-.Xr termcap 5 ,
-.Xr getcap 3
+.Xr termcap 5
diff --git a/lib/libutil/login_cap.3 b/lib/libutil/login_cap.3
index ea7b90f..b940189 100644
--- a/lib/libutil/login_cap.3
+++ b/lib/libutil/login_cap.3
@@ -372,7 +372,7 @@ logins, significantly reducing the risk of password discovery
by "snooping" network packets.
.El
.Sh SEE ALSO
+.Xr getcap 3 ,
.Xr login_class 3 ,
.Xr login.conf 5 ,
-.Xr termcap 5 ,
-.Xr getcap 3
+.Xr termcap 5
diff --git a/lib/libutil/login_class.3 b/lib/libutil/login_class.3
index 2ee50eb..bb8db65 100644
--- a/lib/libutil/login_class.3
+++ b/lib/libutil/login_class.3
@@ -177,11 +177,11 @@ or resources, a message is reported to
.Xr syslog 3 ,
with LOG_ERR priority and directed to the currently active facility.
.Sh SEE ALSO
+.Xr setgid 2 ,
.Xr setlogin 2 ,
.Xr setuid 2 ,
-.Xr setgid 2 ,
+.Xr getcap 3 ,
.Xr initgroups 3 ,
.Xr login_cap 3 ,
.Xr login.conf 5 ,
-.Xr termcap 5 ,
-.Xr getcap 3
+.Xr termcap 5
diff --git a/lib/libutil/login_times.3 b/lib/libutil/login_times.3
index e426142..e9839cd 100644
--- a/lib/libutil/login_times.3
+++ b/lib/libutil/login_times.3
@@ -148,8 +148,8 @@ by the login_time_t passed as the first parameter.
returns the index of the first time period found in which the given
time falls, or -1 if none of them apply.
.Sh SEE ALSO
-.Xr login.conf 5 ,
+.Xr getcap 3 ,
.Xr login_cap 3 ,
.Xr login_class 3 ,
-.Xr termcap 5 ,
-.Xr getcap 3
+.Xr login.conf 5 ,
+.Xr termcap 5
diff --git a/lib/msun/man/acos.3 b/lib/msun/man/acos.3
index b39f551..f5a8c32 100644
--- a/lib/msun/man/acos.3
+++ b/lib/msun/man/acos.3
@@ -79,16 +79,16 @@ to
.Dv EDOM
and a reserved operand fault is generated.
.Sh SEE ALSO
-.Xr sin 3 ,
-.Xr cos 3 ,
-.Xr tan 3 ,
.Xr asin 3 ,
.Xr atan 3 ,
.Xr atan2 3 ,
-.Xr sinh 3 ,
+.Xr cos 3 ,
.Xr cosh 3 ,
-.Xr tanh 3 ,
-.Xr math 3
+.Xr math 3 ,
+.Xr sin 3 ,
+.Xr sinh 3 ,
+.Xr tan 3 ,
+.Xr tanh 3
.Sh STANDARDS
The
.Fn acos
diff --git a/lib/msun/man/asin.3 b/lib/msun/man/asin.3
index 4acdd59..4e01a49 100644
--- a/lib/msun/man/asin.3
+++ b/lib/msun/man/asin.3
@@ -86,11 +86,11 @@ a reserved operand fault generated.
.Xr atan2 3 ,
.Xr cos 3 ,
.Xr cosh 3 ,
+.Xr math 3 ,
.Xr sin 3 ,
.Xr sinh 3 ,
.Xr tan 3 ,
-.Xr tanh 3 ,
-.Xr math 3
+.Xr tanh 3
.Sh STANDARDS
The
.Fn asin
diff --git a/lib/msun/man/atan.3 b/lib/msun/man/atan.3
index e719f48..c506f87 100644
--- a/lib/msun/man/atan.3
+++ b/lib/msun/man/atan.3
@@ -70,11 +70,11 @@ radians.
.Xr atan2 3 ,
.Xr cos 3 ,
.Xr cosh 3 ,
+.Xr math 3 ,
.Xr sin 3 ,
.Xr sinh 3 ,
.Xr tan 3 ,
-.Xr tanh 3 ,
-.Xr math 3
+.Xr tanh 3
.Sh STANDARDS
The
.Fn atan
diff --git a/lib/msun/man/ceil.3 b/lib/msun/man/ceil.3
index 418f409..940929a 100644
--- a/lib/msun/man/ceil.3
+++ b/lib/msun/man/ceil.3
@@ -59,8 +59,8 @@ greater than or equal to
.Xr fabs 3 ,
.Xr floor 3 ,
.Xr ieee 3 ,
-.Xr rint 3 ,
-.Xr math 3
+.Xr math 3 ,
+.Xr rint 3
.Sh STANDARDS
The
.Fn ceil
diff --git a/lib/msun/man/cos.3 b/lib/msun/man/cos.3
index 35439d2..b3877b5 100644
--- a/lib/msun/man/cos.3
+++ b/lib/msun/man/cos.3
@@ -64,16 +64,16 @@ and the
.Fn cosf
functions return the cosine value.
.Sh SEE ALSO
-.Xr sin 3 ,
-.Xr tan 3 ,
-.Xr asin 3 ,
.Xr acos 3 ,
+.Xr asin 3 ,
.Xr atan 3 ,
.Xr atan2 3 ,
-.Xr sinh 3 ,
.Xr cosh 3 ,
-.Xr tanh 3 ,
-.Xr math 3
+.Xr math 3 ,
+.Xr sin 3 ,
+.Xr sinh 3 ,
+.Xr tan 3 ,
+.Xr tanh 3
.Sh STANDARDS
The
.Fn cos
diff --git a/lib/msun/man/cosh.3 b/lib/msun/man/cosh.3
index 9b496e2..06c0453 100644
--- a/lib/msun/man/cosh.3
+++ b/lib/msun/man/cosh.3
@@ -70,11 +70,11 @@ is set to
.Xr atan 3 ,
.Xr atan2 3 ,
.Xr cos 3 ,
+.Xr math 3 ,
.Xr sin 3 ,
.Xr sinh 3 ,
.Xr tan 3 ,
-.Xr tanh 3 ,
-.Xr math 3
+.Xr tanh 3
.Sh STANDARDS
The
.Fn cosh
diff --git a/lib/msun/man/fabs.3 b/lib/msun/man/fabs.3
index 16dd822..513fef3 100644
--- a/lib/msun/man/fabs.3
+++ b/lib/msun/man/fabs.3
@@ -64,9 +64,9 @@ functions return the absolute value of
.Xr abs 3 ,
.Xr ceil 3 ,
.Xr floor 3 ,
-.Xr rint 3 ,
.Xr ieee 3 ,
-.Xr math 3
+.Xr math 3 ,
+.Xr rint 3
.Sh STANDARDS
The
.Fn fabs
diff --git a/lib/msun/man/floor.3 b/lib/msun/man/floor.3
index ed62792..60fbd58 100644
--- a/lib/msun/man/floor.3
+++ b/lib/msun/man/floor.3
@@ -59,8 +59,8 @@ less than or equal to
.Xr ceil 3 ,
.Xr fabs 3 ,
.Xr ieee 3 ,
-.Xr rint 3 ,
-.Xr math 3
+.Xr math 3 ,
+.Xr rint 3
.Sh STANDARDS
The
.Fn floor
diff --git a/lib/msun/man/rint.3 b/lib/msun/man/rint.3
index 46da18f..2d2c511 100644
--- a/lib/msun/man/rint.3
+++ b/lib/msun/man/rint.3
@@ -56,8 +56,8 @@ precision number) nearest to
according to the prevailing rounding mode.
.Sh SEE ALSO
.Xr abs 3 ,
-.Xr fabs 3 ,
.Xr ceil 3 ,
+.Xr fabs 3 ,
.Xr floor 3 ,
.Xr ieee 3 ,
.Xr math 3
diff --git a/lib/msun/man/sin.3 b/lib/msun/man/sin.3
index fbe8681..2f1fbb4 100644
--- a/lib/msun/man/sin.3
+++ b/lib/msun/man/sin.3
@@ -69,10 +69,10 @@ functions return the sine value.
.Xr atan2 3 ,
.Xr cos 3 ,
.Xr cosh 3 ,
+.Xr math 3 ,
.Xr sinh 3 ,
.Xr tan 3 ,
-.Xr tanh 3 ,
-.Xr math 3
+.Xr tanh 3
.Sh STANDARDS
The
.Fn sin
diff --git a/lib/msun/man/sinh.3 b/lib/msun/man/sinh.3
index 21261f5..a48dbae 100644
--- a/lib/msun/man/sinh.3
+++ b/lib/msun/man/sinh.3
@@ -71,10 +71,10 @@ is set to
.Xr atan2 3 ,
.Xr cos 3 ,
.Xr cosh 3 ,
+.Xr math 3 ,
.Xr sin 3 ,
.Xr tan 3 ,
-.Xr tanh 3 ,
-.Xr math 3
+.Xr tanh 3
.Sh STANDARDS
The
.Fn sinh
diff --git a/lib/msun/man/tan.3 b/lib/msun/man/tan.3
index d33b1c6..3942a38 100644
--- a/lib/msun/man/tan.3
+++ b/lib/msun/man/tan.3
@@ -68,10 +68,10 @@ function returns the tangent value.
.Xr atan2 3 ,
.Xr cos 3 ,
.Xr cosh 3 ,
+.Xr math 3 ,
.Xr sin 3 ,
.Xr sinh 3 ,
-.Xr tanh 3 ,
-.Xr math 3
+.Xr tanh 3
.Sh STANDARDS
The
.Fn tan
diff --git a/lib/msun/man/tanh.3 b/lib/msun/man/tanh.3
index cdd7df2..7ed21fc 100644
--- a/lib/msun/man/tanh.3
+++ b/lib/msun/man/tanh.3
@@ -67,10 +67,10 @@ functions return the hyperbolic tangent value.
.Xr atan2 3 ,
.Xr cos 3 ,
.Xr cosh 3 ,
+.Xr math 3 ,
.Xr sin 3 ,
.Xr sinh 3 ,
-.Xr tan 3 ,
-.Xr math 3
+.Xr tan 3
.Sh STANDARDS
The
.Fn tanh
diff --git a/share/man/man3/pthread_create.3 b/share/man/man3/pthread_create.3
index 5ac24e8..aa81588 100644
--- a/share/man/man3/pthread_create.3
+++ b/share/man/man3/pthread_create.3
@@ -99,9 +99,9 @@ is invalid.
.El
.Pp
.Sh SEE ALSO
+.Xr fork 2 ,
.Xr pthread_exit 3 ,
-.Xr pthread_join 3 ,
-.Xr fork 2
+.Xr pthread_join 3
.Sh STANDARDS
.Fn pthread_create
is expected to conform to IEEE
diff --git a/share/man/man3/pthread_exit.3 b/share/man/man3/pthread_exit.3
index 99b5b1f..aad365e 100644
--- a/share/man/man3/pthread_exit.3
+++ b/share/man/man3/pthread_exit.3
@@ -88,10 +88,10 @@ function cannot return to its caller.
None.
.Pp
.Sh SEE ALSO
-.Xr pthread_create 3 ,
-.Xr pthread_join 3 ,
+.Xr _exit 2 ,
.Xr exit 2 ,
-.Xr _exit 2
+.Xr pthread_create 3 ,
+.Xr pthread_join 3
.Sh STANDARDS
.Fn pthread_exit
is expected to conform to IEEE
diff --git a/share/man/man3/pthread_join.3 b/share/man/man3/pthread_join.3
index 374b832..cabf319 100644
--- a/share/man/man3/pthread_join.3
+++ b/share/man/man3/pthread_join.3
@@ -91,8 +91,8 @@ specifies the calling thread.
.El
.Pp
.Sh SEE ALSO
-.Xr pthread_create 3 ,
-.Xr wait 2
+.Xr wait 2 ,
+.Xr pthread_create 3
.Sh STANDARDS
.Fn pthread_join
is expected to conform to IEEE
diff --git a/share/man/man3/pthread_key_create.3 b/share/man/man3/pthread_key_create.3
index 1bcf9e0..25165ce 100644
--- a/share/man/man3/pthread_key_create.3
+++ b/share/man/man3/pthread_key_create.3
@@ -89,8 +89,8 @@ Insufficient memory exists to create the key.
.Pp
.Sh SEE ALSO
.Xr pthread_getspecific 3 ,
-.Xr pthread_setspecific 3 ,
-.Xr pthread_key_delete 3
+.Xr pthread_key_delete 3 ,
+.Xr pthread_setspecific 3
.Sh STANDARDS
.Fn pthread_key_create
is expected to conform to IEEE
diff --git a/share/man/man3/pthread_key_delete.3 b/share/man/man3/pthread_key_delete.3
index 732c562..badfa8c 100644
--- a/share/man/man3/pthread_key_delete.3
+++ b/share/man/man3/pthread_key_delete.3
@@ -82,8 +82,8 @@ value is invalid.
.El
.Pp
.Sh SEE ALSO
-.Xr pthread_key_create 3 ,
.Xr pthread_getspecific 3 ,
+.Xr pthread_key_create 3 ,
.Xr pthread_setspecific 3
.Sh STANDARDS
.Fn pthread_key_delete
diff --git a/share/man/man3/pthread_setspecific.3 b/share/man/man3/pthread_setspecific.3
index 05b947f..838b587 100644
--- a/share/man/man3/pthread_setspecific.3
+++ b/share/man/man3/pthread_setspecific.3
@@ -81,9 +81,9 @@ value is invalid.
.El
.Pp
.Sh SEE ALSO
+.Xr pthread_getspecific 3 ,
.Xr pthread_key_create 3 ,
-.Xr pthread_key_delete 3 ,
-.Xr pthread_getspecific 3
+.Xr pthread_key_delete 3
.Sh STANDARDS
.Fn pthread_setspecific
is expected to conform to IEEE
OpenPOWER on IntegriCloud