Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145588402
D55411.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
65 KB
Referenced Files
None
Subscribers
None
D55411.diff
View Options
diff --git a/lib/libsys/_exit.2 b/lib/libsys/_exit.2
--- a/lib/libsys/_exit.2
+++ b/lib/libsys/_exit.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm _exit
.Nd terminate the calling process
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft void
.Fn _exit "int status"
diff --git a/lib/libsys/_umtx_op.2 b/lib/libsys/_umtx_op.2
--- a/lib/libsys/_umtx_op.2
+++ b/lib/libsys/_umtx_op.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm _umtx_op
.Nd interface for implementation of userspace threading synchronization primitives
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/umtx.h
.Ft int
diff --git a/lib/libsys/abort2.2 b/lib/libsys/abort2.2
--- a/lib/libsys/abort2.2
+++ b/lib/libsys/abort2.2
@@ -28,9 +28,8 @@
.Sh NAME
.Nm abort2
.Nd "abort process with diagnostics"
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In stdlib.h
.Ft void
.Fn abort2 "const char *why" "int nargs" "void **args"
diff --git a/lib/libsys/accept.2 b/lib/libsys/accept.2
--- a/lib/libsys/accept.2
+++ b/lib/libsys/accept.2
@@ -32,9 +32,8 @@
.Nm accept ,
.Nm accept4
.Nd accept a connection on a socket
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/socket.h
.Ft int
diff --git a/lib/libsys/access.2 b/lib/libsys/access.2
--- a/lib/libsys/access.2
+++ b/lib/libsys/access.2
@@ -33,9 +33,8 @@
.Nm eaccess ,
.Nm faccessat
.Nd check accessibility of a file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn access "const char *path" "int mode"
diff --git a/lib/libsys/acct.2 b/lib/libsys/acct.2
--- a/lib/libsys/acct.2
+++ b/lib/libsys/acct.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm acct
.Nd enable or disable process accounting
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn acct "const char *file"
diff --git a/lib/libsys/adjtime.2 b/lib/libsys/adjtime.2
--- a/lib/libsys/adjtime.2
+++ b/lib/libsys/adjtime.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm adjtime
.Nd "correct the time to allow synchronization of the system clock"
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/time.h
.Ft int
.Fn adjtime "const struct timeval *delta" "struct timeval *olddelta"
diff --git a/lib/libsys/aio_cancel.2 b/lib/libsys/aio_cancel.2
--- a/lib/libsys/aio_cancel.2
+++ b/lib/libsys/aio_cancel.2
@@ -28,9 +28,8 @@
.Sh NAME
.Nm aio_cancel
.Nd cancel an outstanding asynchronous I/O operation (REALTIME)
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In aio.h
.Ft int
.Fn aio_cancel "int fildes" "struct aiocb *iocb"
diff --git a/lib/libsys/aio_error.2 b/lib/libsys/aio_error.2
--- a/lib/libsys/aio_error.2
+++ b/lib/libsys/aio_error.2
@@ -28,9 +28,8 @@
.Sh NAME
.Nm aio_error
.Nd retrieve error status of asynchronous I/O operation (REALTIME)
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In aio.h
.Ft int
.Fn aio_error "const struct aiocb *iocb"
diff --git a/lib/libsys/aio_fsync.2 b/lib/libsys/aio_fsync.2
--- a/lib/libsys/aio_fsync.2
+++ b/lib/libsys/aio_fsync.2
@@ -28,9 +28,8 @@
.Sh NAME
.Nm aio_fsync
.Nd asynchronous file synchronization (REALTIME)
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In aio.h
.Ft int
.Fn aio_fsync "int op" "struct aiocb *iocb"
diff --git a/lib/libsys/aio_mlock.2 b/lib/libsys/aio_mlock.2
--- a/lib/libsys/aio_mlock.2
+++ b/lib/libsys/aio_mlock.2
@@ -30,9 +30,8 @@
.Nd asynchronous
.Xr mlock 2
operation
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In aio.h
.Ft int
.Fn aio_mlock "struct aiocb *iocb"
diff --git a/lib/libsys/aio_read.2 b/lib/libsys/aio_read.2
--- a/lib/libsys/aio_read.2
+++ b/lib/libsys/aio_read.2
@@ -30,9 +30,8 @@
.Nm aio_read2 ,
.Nm aio_readv
.Nd asynchronous read from a file (REALTIME)
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In aio.h
.Ft int
.Fn aio_read "struct aiocb *iocb"
diff --git a/lib/libsys/aio_return.2 b/lib/libsys/aio_return.2
--- a/lib/libsys/aio_return.2
+++ b/lib/libsys/aio_return.2
@@ -28,9 +28,8 @@
.Sh NAME
.Nm aio_return
.Nd retrieve return status of asynchronous I/O operation (REALTIME)
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In aio.h
.Ft ssize_t
.Fn aio_return "struct aiocb *iocb"
diff --git a/lib/libsys/aio_suspend.2 b/lib/libsys/aio_suspend.2
--- a/lib/libsys/aio_suspend.2
+++ b/lib/libsys/aio_suspend.2
@@ -28,9 +28,8 @@
.Sh NAME
.Nm aio_suspend
.Nd suspend until asynchronous I/O operations or timeout complete (REALTIME)
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In aio.h
.Ft int
.Fn aio_suspend "const struct aiocb *const iocbs[]" "int niocb" "const struct timespec *timeout"
diff --git a/lib/libsys/aio_waitcomplete.2 b/lib/libsys/aio_waitcomplete.2
--- a/lib/libsys/aio_waitcomplete.2
+++ b/lib/libsys/aio_waitcomplete.2
@@ -28,9 +28,8 @@
.Sh NAME
.Nm aio_waitcomplete
.Nd wait for the next completion of an aio request
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In aio.h
.Ft ssize_t
.Fn aio_waitcomplete "struct aiocb **iocbp" "struct timespec *timeout"
diff --git a/lib/libsys/aio_write.2 b/lib/libsys/aio_write.2
--- a/lib/libsys/aio_write.2
+++ b/lib/libsys/aio_write.2
@@ -30,9 +30,8 @@
.Nm aio_write2 ,
.Nm aio_writev
.Nd asynchronous write to a file (REALTIME)
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In aio.h
.Ft int
.Fn aio_write "struct aiocb *iocb"
diff --git a/lib/libsys/bind.2 b/lib/libsys/bind.2
--- a/lib/libsys/bind.2
+++ b/lib/libsys/bind.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm bind
.Nd assign a local protocol address to a socket
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/socket.h
.Ft int
.Fn bind "int s" "const struct sockaddr *addr" "socklen_t addrlen"
diff --git a/lib/libsys/bindat.2 b/lib/libsys/bindat.2
--- a/lib/libsys/bindat.2
+++ b/lib/libsys/bindat.2
@@ -30,9 +30,8 @@
.Sh NAME
.Nm bindat
.Nd assign a local protocol address to a socket
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/socket.h
.Pp
diff --git a/lib/libsys/brk.2 b/lib/libsys/brk.2
--- a/lib/libsys/brk.2
+++ b/lib/libsys/brk.2
@@ -32,9 +32,8 @@
.Nm brk ,
.Nm sbrk
.Nd change data segment size
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn brk "const void *addr"
diff --git a/lib/libsys/cap_enter.2 b/lib/libsys/cap_enter.2
--- a/lib/libsys/cap_enter.2
+++ b/lib/libsys/cap_enter.2
@@ -33,9 +33,8 @@
.Nm cap_enter ,
.Nm cap_getmode
.Nd Capability mode system calls
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/capsicum.h
.Ft int
.Fn cap_enter "void"
diff --git a/lib/libsys/cap_fcntls_limit.2 b/lib/libsys/cap_fcntls_limit.2
--- a/lib/libsys/cap_fcntls_limit.2
+++ b/lib/libsys/cap_fcntls_limit.2
@@ -32,9 +32,8 @@
.Nm cap_fcntls_limit ,
.Nm cap_fcntls_get
.Nd manage allowed fcntl commands
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/capsicum.h
.Ft int
.Fn cap_fcntls_limit "int fd" "uint32_t fcntlrights"
diff --git a/lib/libsys/cap_ioctls_limit.2 b/lib/libsys/cap_ioctls_limit.2
--- a/lib/libsys/cap_ioctls_limit.2
+++ b/lib/libsys/cap_ioctls_limit.2
@@ -32,9 +32,8 @@
.Nm cap_ioctls_limit ,
.Nm cap_ioctls_get
.Nd manage allowed ioctl commands
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/capsicum.h
.Ft int
.Fn cap_ioctls_limit "int fd" "const unsigned long *cmds" "size_t ncmds"
diff --git a/lib/libsys/cap_rights_limit.2 b/lib/libsys/cap_rights_limit.2
--- a/lib/libsys/cap_rights_limit.2
+++ b/lib/libsys/cap_rights_limit.2
@@ -36,9 +36,8 @@
.Sh NAME
.Nm cap_rights_limit
.Nd limit capability rights
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/capsicum.h
.Ft int
.Fn cap_rights_limit "int fd" "const cap_rights_t *rights"
diff --git a/lib/libsys/chdir.2 b/lib/libsys/chdir.2
--- a/lib/libsys/chdir.2
+++ b/lib/libsys/chdir.2
@@ -32,9 +32,8 @@
.Nm chdir ,
.Nm fchdir
.Nd change current working directory
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn chdir "const char *path"
diff --git a/lib/libsys/chflags.2 b/lib/libsys/chflags.2
--- a/lib/libsys/chflags.2
+++ b/lib/libsys/chflags.2
@@ -34,9 +34,8 @@
.Nm fchflags ,
.Nm chflagsat
.Nd set file flags
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/stat.h
.In unistd.h
.Ft int
diff --git a/lib/libsys/chmod.2 b/lib/libsys/chmod.2
--- a/lib/libsys/chmod.2
+++ b/lib/libsys/chmod.2
@@ -34,9 +34,8 @@
.Nm lchmod ,
.Nm fchmodat
.Nd change mode of file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/stat.h
.Ft int
.Fn chmod "const char *path" "mode_t mode"
diff --git a/lib/libsys/chown.2 b/lib/libsys/chown.2
--- a/lib/libsys/chown.2
+++ b/lib/libsys/chown.2
@@ -34,9 +34,8 @@
.Nm lchown ,
.Nm fchownat
.Nd change owner and group of a file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn chown "const char *path" "uid_t owner" "gid_t group"
diff --git a/lib/libsys/chroot.2 b/lib/libsys/chroot.2
--- a/lib/libsys/chroot.2
+++ b/lib/libsys/chroot.2
@@ -32,9 +32,8 @@
.Nm chroot ,
.Nm fchroot
.Nd change root directory
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn chroot "const char *dirname"
diff --git a/lib/libsys/clock_gettime.2 b/lib/libsys/clock_gettime.2
--- a/lib/libsys/clock_gettime.2
+++ b/lib/libsys/clock_gettime.2
@@ -35,9 +35,8 @@
.Nm clock_settime ,
.Nm clock_getres
.Nd get/set/calibrate date and time
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In time.h
.Ft int
.Fn clock_gettime "clockid_t clock_id" "struct timespec *tp"
diff --git a/lib/libsys/close.2 b/lib/libsys/close.2
--- a/lib/libsys/close.2
+++ b/lib/libsys/close.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm close
.Nd delete a descriptor
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn close "int fd"
diff --git a/lib/libsys/closefrom.2 b/lib/libsys/closefrom.2
--- a/lib/libsys/closefrom.2
+++ b/lib/libsys/closefrom.2
@@ -30,9 +30,8 @@
.Nm closefrom ,
.Nm close_range
.Nd delete open file descriptors
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft void
.Fn closefrom "int lowfd"
diff --git a/lib/libsys/connect.2 b/lib/libsys/connect.2
--- a/lib/libsys/connect.2
+++ b/lib/libsys/connect.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm connect
.Nd initiate a connection on a socket
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/socket.h
.Ft int
.Fn connect "int s" "const struct sockaddr *name" "socklen_t namelen"
diff --git a/lib/libsys/connectat.2 b/lib/libsys/connectat.2
--- a/lib/libsys/connectat.2
+++ b/lib/libsys/connectat.2
@@ -30,9 +30,8 @@
.Sh NAME
.Nm connectat
.Nd initiate a connection on a socket
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/socket.h
.Pp
diff --git a/lib/libsys/copy_file_range.2 b/lib/libsys/copy_file_range.2
--- a/lib/libsys/copy_file_range.2
+++ b/lib/libsys/copy_file_range.2
@@ -30,9 +30,8 @@
.Nm copy_file_range
.Nd kernel copy of a byte range from one regular file to another
or within one regular file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In unistd.h
.Ft ssize_t
diff --git a/lib/libsys/cpuset.2 b/lib/libsys/cpuset.2
--- a/lib/libsys/cpuset.2
+++ b/lib/libsys/cpuset.2
@@ -32,9 +32,8 @@
.Nm cpuset_getid ,
.Nm cpuset_setid
.Nd manage CPU affinity sets
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/cpuset.h
.Ft int
diff --git a/lib/libsys/cpuset_getaffinity.2 b/lib/libsys/cpuset_getaffinity.2
--- a/lib/libsys/cpuset_getaffinity.2
+++ b/lib/libsys/cpuset_getaffinity.2
@@ -30,9 +30,8 @@
.Nm cpuset_getaffinity ,
.Nm cpuset_setaffinity
.Nd manage CPU affinity
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/cpuset.h
.Ft int
diff --git a/lib/libsys/cpuset_getdomain.2 b/lib/libsys/cpuset_getdomain.2
--- a/lib/libsys/cpuset_getdomain.2
+++ b/lib/libsys/cpuset_getdomain.2
@@ -29,9 +29,8 @@
.Nm cpuset_getdomain ,
.Nm cpuset_setdomain
.Nd manage memory domain policy
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/domainset.h
.Ft int
diff --git a/lib/libsys/creat.2 b/lib/libsys/creat.2
--- a/lib/libsys/creat.2
+++ b/lib/libsys/creat.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm creat
.Nd create a new file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In fcntl.h
.Ft int
.Fn creat "const char *path" "mode_t mode"
diff --git a/lib/libsys/dup.2 b/lib/libsys/dup.2
--- a/lib/libsys/dup.2
+++ b/lib/libsys/dup.2
@@ -32,9 +32,8 @@
.Nm dup ,
.Nm dup2
.Nd duplicate an existing file descriptor
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn dup "int oldd"
diff --git a/lib/libsys/eventfd.2 b/lib/libsys/eventfd.2
--- a/lib/libsys/eventfd.2
+++ b/lib/libsys/eventfd.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm eventfd
.Nd create a file descriptor for event notification
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/eventfd.h
.Ft int
.Fn eventfd "unsigned int initval" "int flags"
diff --git a/lib/libsys/execve.2 b/lib/libsys/execve.2
--- a/lib/libsys/execve.2
+++ b/lib/libsys/execve.2
@@ -32,9 +32,8 @@
.Nm execve ,
.Nm fexecve
.Nd execute a file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn execve "const char *path" "char *const argv[]" "char *const envp[]"
diff --git a/lib/libsys/extattr_get_file.2 b/lib/libsys/extattr_get_file.2
--- a/lib/libsys/extattr_get_file.2
+++ b/lib/libsys/extattr_get_file.2
@@ -41,9 +41,8 @@
.Nm extattr_set_file ,
.Nm extattr_set_link
.Nd system calls to manipulate VFS extended attributes
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/extattr.h
.Ft int
diff --git a/lib/libsys/fcntl.2 b/lib/libsys/fcntl.2
--- a/lib/libsys/fcntl.2
+++ b/lib/libsys/fcntl.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm fcntl
.Nd file control
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In fcntl.h
.Ft int
.Fn fcntl "int fd" "int cmd" "..."
diff --git a/lib/libsys/ffclock.2 b/lib/libsys/ffclock.2
--- a/lib/libsys/ffclock.2
+++ b/lib/libsys/ffclock.2
@@ -33,9 +33,8 @@
.Nm ffclock_getestimate ,
.Nm ffclock_setestimate
.Nd Retrieve feed-forward counter, get and set feed-forward clock estimates
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/timeffc.h
.Ft int
.Fn ffclock_getcounter "ffcounter *ffcount"
diff --git a/lib/libsys/fhlink.2 b/lib/libsys/fhlink.2
--- a/lib/libsys/fhlink.2
+++ b/lib/libsys/fhlink.2
@@ -30,9 +30,8 @@
.Nm fhlink ,
.Nm fhlinkat
.Nd make a hard file link
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn fhlink "fhandle_t *fhp" "const char *to"
diff --git a/lib/libsys/fhopen.2 b/lib/libsys/fhopen.2
--- a/lib/libsys/fhopen.2
+++ b/lib/libsys/fhopen.2
@@ -39,9 +39,8 @@
.Nm fhstat ,
.Nm fhstatfs
.Nd access file via file handle
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/mount.h
.In sys/stat.h
diff --git a/lib/libsys/fhreadlink.2 b/lib/libsys/fhreadlink.2
--- a/lib/libsys/fhreadlink.2
+++ b/lib/libsys/fhreadlink.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm fhreadlink
.Nd read value of a symbolic link
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/mount.h
.Ft int
diff --git a/lib/libsys/flock.2 b/lib/libsys/flock.2
--- a/lib/libsys/flock.2
+++ b/lib/libsys/flock.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm flock
.Nd "apply or remove an advisory lock on an open file"
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/file.h
.Fd "#define LOCK_SH 0x01 /* shared file lock */"
.Fd "#define LOCK_EX 0x02 /* exclusive file lock */"
diff --git a/lib/libsys/fork.2 b/lib/libsys/fork.2
--- a/lib/libsys/fork.2
+++ b/lib/libsys/fork.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm fork
.Nd create a new process
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft pid_t
.Fn fork void
diff --git a/lib/libsys/fspacectl.2 b/lib/libsys/fspacectl.2
--- a/lib/libsys/fspacectl.2
+++ b/lib/libsys/fspacectl.2
@@ -33,9 +33,8 @@
.Sh NAME
.Nm fspacectl
.Nd space management in a file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In fcntl.h
.Ft int
.Fo fspacectl
diff --git a/lib/libsys/fsync.2 b/lib/libsys/fsync.2
--- a/lib/libsys/fsync.2
+++ b/lib/libsys/fsync.2
@@ -37,9 +37,8 @@
.Nm fdatasync ,
.Nm fsync
.Nd "synchronise changes to a file"
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn fdatasync "int fd"
diff --git a/lib/libsys/getdirentries.2 b/lib/libsys/getdirentries.2
--- a/lib/libsys/getdirentries.2
+++ b/lib/libsys/getdirentries.2
@@ -32,9 +32,8 @@
.Nm getdirentries ,
.Nm getdents
.Nd "get directory entries in a file system independent format"
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In dirent.h
.Ft ssize_t
diff --git a/lib/libsys/getdtablesize.2 b/lib/libsys/getdtablesize.2
--- a/lib/libsys/getdtablesize.2
+++ b/lib/libsys/getdtablesize.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm getdtablesize
.Nd get file descriptor limit
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn getdtablesize void
diff --git a/lib/libsys/getfh.2 b/lib/libsys/getfh.2
--- a/lib/libsys/getfh.2
+++ b/lib/libsys/getfh.2
@@ -34,9 +34,8 @@
.Nm lgetfh ,
.Nm getfhat
.Nd get file handle
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/mount.h
.Ft int
diff --git a/lib/libsys/getfsstat.2 b/lib/libsys/getfsstat.2
--- a/lib/libsys/getfsstat.2
+++ b/lib/libsys/getfsstat.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm getfsstat
.Nd get list of all mounted file systems
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/ucred.h
.In sys/mount.h
diff --git a/lib/libsys/getgid.2 b/lib/libsys/getgid.2
--- a/lib/libsys/getgid.2
+++ b/lib/libsys/getgid.2
@@ -32,9 +32,8 @@
.Nm getgid ,
.Nm getegid
.Nd get group process identification
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft gid_t
.Fn getgid void
diff --git a/lib/libsys/getgroups.2 b/lib/libsys/getgroups.2
--- a/lib/libsys/getgroups.2
+++ b/lib/libsys/getgroups.2
@@ -39,9 +39,8 @@
.Sh NAME
.Nm getgroups
.Nd get the calling process' supplementary groups
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn getgroups "int gidsetlen" "gid_t *gidset"
diff --git a/lib/libsys/getitimer.2 b/lib/libsys/getitimer.2
--- a/lib/libsys/getitimer.2
+++ b/lib/libsys/getitimer.2
@@ -32,9 +32,8 @@
.Nm getitimer ,
.Nm setitimer
.Nd get/set value of interval timer
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/time.h
.Fd "#define ITIMER_REAL 0"
.Fd "#define ITIMER_VIRTUAL 1"
diff --git a/lib/libsys/getlogin.2 b/lib/libsys/getlogin.2
--- a/lib/libsys/getlogin.2
+++ b/lib/libsys/getlogin.2
@@ -33,9 +33,8 @@
.Nm getlogin_r ,
.Nm setlogin
.Nd get/set login name
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft char *
.Fn getlogin void
diff --git a/lib/libsys/getloginclass.2 b/lib/libsys/getloginclass.2
--- a/lib/libsys/getloginclass.2
+++ b/lib/libsys/getloginclass.2
@@ -29,9 +29,8 @@
.Nm getloginclass ,
.Nm setloginclass
.Nd get/set login class
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn getloginclass "char *name" "size_t len"
diff --git a/lib/libsys/getpeername.2 b/lib/libsys/getpeername.2
--- a/lib/libsys/getpeername.2
+++ b/lib/libsys/getpeername.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm getpeername
.Nd get name of connected peer
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/socket.h
.Ft int
diff --git a/lib/libsys/getpgrp.2 b/lib/libsys/getpgrp.2
--- a/lib/libsys/getpgrp.2
+++ b/lib/libsys/getpgrp.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm getpgrp
.Nd get process group
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft pid_t
.Fn getpgrp void
diff --git a/lib/libsys/getpid.2 b/lib/libsys/getpid.2
--- a/lib/libsys/getpid.2
+++ b/lib/libsys/getpid.2
@@ -32,9 +32,8 @@
.Nm getpid ,
.Nm getppid
.Nd get parent or calling process identification
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft pid_t
.Fn getpid void
diff --git a/lib/libsys/getpriority.2 b/lib/libsys/getpriority.2
--- a/lib/libsys/getpriority.2
+++ b/lib/libsys/getpriority.2
@@ -32,9 +32,8 @@
.Nm getpriority ,
.Nm setpriority
.Nd get/set program scheduling priority
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/time.h
.In sys/resource.h
.Ft int
diff --git a/lib/libsys/getrandom.2 b/lib/libsys/getrandom.2
--- a/lib/libsys/getrandom.2
+++ b/lib/libsys/getrandom.2
@@ -27,9 +27,8 @@
.Sh NAME
.Nm getrandom
.Nd get random data
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/random.h
.Ft ssize_t
.Fn getrandom "void *buf" "size_t buflen" "unsigned int flags"
diff --git a/lib/libsys/getrlimit.2 b/lib/libsys/getrlimit.2
--- a/lib/libsys/getrlimit.2
+++ b/lib/libsys/getrlimit.2
@@ -32,9 +32,8 @@
.Nm getrlimit ,
.Nm setrlimit
.Nd control maximum system resource consumption
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/time.h
.In sys/resource.h
diff --git a/lib/libsys/getrlimitusage.2 b/lib/libsys/getrlimitusage.2
--- a/lib/libsys/getrlimitusage.2
+++ b/lib/libsys/getrlimitusage.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm getrlimitusage
.Nd Query usage of the current process' limited resources
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/resource.h
.Ft int
.Fn getrlimitusage "unsigned which" "int flags" "rlim_t *res"
diff --git a/lib/libsys/getrusage.2 b/lib/libsys/getrusage.2
--- a/lib/libsys/getrusage.2
+++ b/lib/libsys/getrusage.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm getrusage
.Nd get information about resource utilization
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/time.h
.In sys/resource.h
diff --git a/lib/libsys/getsid.2 b/lib/libsys/getsid.2
--- a/lib/libsys/getsid.2
+++ b/lib/libsys/getsid.2
@@ -27,9 +27,8 @@
.Sh NAME
.Nm getsid
.Nd get process session
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft pid_t
.Fn getsid "pid_t pid"
diff --git a/lib/libsys/getsockname.2 b/lib/libsys/getsockname.2
--- a/lib/libsys/getsockname.2
+++ b/lib/libsys/getsockname.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm getsockname
.Nd get socket name
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/socket.h
.Ft int
diff --git a/lib/libsys/getsockopt.2 b/lib/libsys/getsockopt.2
--- a/lib/libsys/getsockopt.2
+++ b/lib/libsys/getsockopt.2
@@ -32,9 +32,8 @@
.Nm getsockopt ,
.Nm setsockopt
.Nd get and set options on sockets
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/socket.h
.Ft int
diff --git a/lib/libsys/gettimeofday.2 b/lib/libsys/gettimeofday.2
--- a/lib/libsys/gettimeofday.2
+++ b/lib/libsys/gettimeofday.2
@@ -32,9 +32,8 @@
.Nm gettimeofday ,
.Nm settimeofday
.Nd get/set date and time
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/time.h
.Ft int
.Fn gettimeofday "struct timeval *tp" "struct timezone *tzp"
diff --git a/lib/libsys/getuid.2 b/lib/libsys/getuid.2
--- a/lib/libsys/getuid.2
+++ b/lib/libsys/getuid.2
@@ -32,9 +32,8 @@
.Nm getuid ,
.Nm geteuid
.Nd get user identification
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft uid_t
.Fn getuid void
diff --git a/lib/libsys/inotify.2 b/lib/libsys/inotify.2
--- a/lib/libsys/inotify.2
+++ b/lib/libsys/inotify.2
@@ -13,9 +13,8 @@
.Nm inotify_add_watch_at ,
.Nm inotify_rm_watch
.Nd monitor file system events
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/inotify.h
.Ft int
.Fo inotify_init
diff --git a/lib/libsys/intro.2 b/lib/libsys/intro.2
--- a/lib/libsys/intro.2
+++ b/lib/libsys/intro.2
@@ -35,9 +35,8 @@
.Nm intro ,
.Nm errno
.Nd introduction to system calls and their error numbers
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/syscall.h
.In errno.h
.Sh DESCRIPTION
diff --git a/lib/libsys/ioctl.2 b/lib/libsys/ioctl.2
--- a/lib/libsys/ioctl.2
+++ b/lib/libsys/ioctl.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm ioctl
.Nd control device
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/ioctl.h
.Ft int
.Fn ioctl "int fd" "unsigned long request" ...
diff --git a/lib/libsys/issetugid.2 b/lib/libsys/issetugid.2
--- a/lib/libsys/issetugid.2
+++ b/lib/libsys/issetugid.2
@@ -33,9 +33,8 @@
.Sh NAME
.Nm issetugid
.Nd is current process tainted by uid or gid changes
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn issetugid void
diff --git a/lib/libsys/jail.2 b/lib/libsys/jail.2
--- a/lib/libsys/jail.2
+++ b/lib/libsys/jail.2
@@ -35,9 +35,8 @@
.Nm jail_remove_jd ,
.Nm jail_attach_jd
.Nd create and manage system jails
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/jail.h
.Ft int
diff --git a/lib/libsys/kcmp.2 b/lib/libsys/kcmp.2
--- a/lib/libsys/kcmp.2
+++ b/lib/libsys/kcmp.2
@@ -33,9 +33,8 @@
.Sh NAME
.Nm kcmp
.Nd compare two kernel objects
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn kcmp "pid_t pid1" "pid_t pid2" "int type" "uintptr_t idx1" "uintptr_t idx2"
diff --git a/lib/libsys/kenv.2 b/lib/libsys/kenv.2
--- a/lib/libsys/kenv.2
+++ b/lib/libsys/kenv.2
@@ -30,9 +30,8 @@
.Sh NAME
.Nm kenv
.Nd kernel environment
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In kenv.h
.Ft int
.Fn kenv "int action" "const char *name" "char *value" "int len"
diff --git a/lib/libsys/kill.2 b/lib/libsys/kill.2
--- a/lib/libsys/kill.2
+++ b/lib/libsys/kill.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm kill
.Nd send signal to a process
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In signal.h
.Ft int
diff --git a/lib/libsys/kldfind.2 b/lib/libsys/kldfind.2
--- a/lib/libsys/kldfind.2
+++ b/lib/libsys/kldfind.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm kldfind
.Nd returns the fileid of a kld file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/linker.h
.Ft int
.Fn kldfind "const char *file"
diff --git a/lib/libsys/kldfirstmod.2 b/lib/libsys/kldfirstmod.2
--- a/lib/libsys/kldfirstmod.2
+++ b/lib/libsys/kldfirstmod.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm kldfirstmod
.Nd "return first module id from the kld file specified"
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/linker.h
.Ft int
.Fn kldfirstmod "int fileid"
diff --git a/lib/libsys/kldload.2 b/lib/libsys/kldload.2
--- a/lib/libsys/kldload.2
+++ b/lib/libsys/kldload.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm kldload
.Nd load KLD files into the kernel
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/linker.h
.Ft int
.Fn kldload "const char *file"
diff --git a/lib/libsys/kldnext.2 b/lib/libsys/kldnext.2
--- a/lib/libsys/kldnext.2
+++ b/lib/libsys/kldnext.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm kldnext
.Nd return the fileid of the next kld file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/linker.h
.Ft int
.Fn kldnext "int fileid"
diff --git a/lib/libsys/kldstat.2 b/lib/libsys/kldstat.2
--- a/lib/libsys/kldstat.2
+++ b/lib/libsys/kldstat.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm kldstat
.Nd get status of kld file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/linker.h
.Ft int
.Fn kldstat "int fileid" "struct kld_file_stat *stat"
diff --git a/lib/libsys/kldsym.2 b/lib/libsys/kldsym.2
--- a/lib/libsys/kldsym.2
+++ b/lib/libsys/kldsym.2
@@ -28,9 +28,8 @@
.Sh NAME
.Nm kldsym
.Nd look up address by symbol name in a KLD
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/linker.h
.Ft int
.Fn kldsym "int fileid" "int cmd" "void *data"
diff --git a/lib/libsys/kldunload.2 b/lib/libsys/kldunload.2
--- a/lib/libsys/kldunload.2
+++ b/lib/libsys/kldunload.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm kldunload , kldunloadf
.Nd unload kld files
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/linker.h
.Ft int
.Fn kldunload "int fileid"
diff --git a/lib/libsys/kqueue.2 b/lib/libsys/kqueue.2
--- a/lib/libsys/kqueue.2
+++ b/lib/libsys/kqueue.2
@@ -29,9 +29,8 @@
.Nm kqueue ,
.Nm kevent
.Nd kernel event notification mechanism
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/event.h
.Ft int
.Fn kqueue "void"
diff --git a/lib/libsys/ktrace.2 b/lib/libsys/ktrace.2
--- a/lib/libsys/ktrace.2
+++ b/lib/libsys/ktrace.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm ktrace
.Nd process tracing
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/time.h
.In sys/uio.h
diff --git a/lib/libsys/link.2 b/lib/libsys/link.2
--- a/lib/libsys/link.2
+++ b/lib/libsys/link.2
@@ -32,9 +32,8 @@
.Nm link ,
.Nm linkat
.Nd make a hard file link
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn link "const char *name1" "const char *name2"
diff --git a/lib/libsys/lio_listio.2 b/lib/libsys/lio_listio.2
--- a/lib/libsys/lio_listio.2
+++ b/lib/libsys/lio_listio.2
@@ -28,9 +28,8 @@
.Sh NAME
.Nm lio_listio
.Nd "list directed I/O (REALTIME)"
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In aio.h
.Ft int
.Fo lio_listio
diff --git a/lib/libsys/listen.2 b/lib/libsys/listen.2
--- a/lib/libsys/listen.2
+++ b/lib/libsys/listen.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm listen
.Nd listen for connections on a socket
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/socket.h
.Ft int
.Fn listen "int s" "int backlog"
diff --git a/lib/libsys/lseek.2 b/lib/libsys/lseek.2
--- a/lib/libsys/lseek.2
+++ b/lib/libsys/lseek.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm lseek
.Nd reposition read/write file offset
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft off_t
.Fn lseek "int fildes" "off_t offset" "int whence"
diff --git a/lib/libsys/madvise.2 b/lib/libsys/madvise.2
--- a/lib/libsys/madvise.2
+++ b/lib/libsys/madvise.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm madvise , posix_madvise
.Nd give advice about use of memory
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/mman.h
.Ft int
.Fn madvise "void *addr" "size_t len" "int behav"
diff --git a/lib/libsys/membarrier.2 b/lib/libsys/membarrier.2
--- a/lib/libsys/membarrier.2
+++ b/lib/libsys/membarrier.2
@@ -32,9 +32,8 @@
.Sh NAME
.Nm membarrier
.Nd memory barrier
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/membarrier.h
.Ft int
.Fn membarrier "int cmd" "unsigned flags" "int cpu_id"
diff --git a/lib/libsys/mincore.2 b/lib/libsys/mincore.2
--- a/lib/libsys/mincore.2
+++ b/lib/libsys/mincore.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm mincore
.Nd determine residency of memory pages
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/mman.h
.Ft int
.Fn mincore "const void *addr" "size_t len" "char *vec"
diff --git a/lib/libsys/minherit.2 b/lib/libsys/minherit.2
--- a/lib/libsys/minherit.2
+++ b/lib/libsys/minherit.2
@@ -32,9 +32,8 @@
.Sh NAME
.Nm minherit
.Nd control the inheritance of pages
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/mman.h
.Ft int
.Fn minherit "void *addr" "size_t len" "int inherit"
diff --git a/lib/libsys/mkdir.2 b/lib/libsys/mkdir.2
--- a/lib/libsys/mkdir.2
+++ b/lib/libsys/mkdir.2
@@ -32,9 +32,8 @@
.Nm mkdir ,
.Nm mkdirat
.Nd make a directory file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/stat.h
.Ft int
.Fn mkdir "const char *path" "mode_t mode"
diff --git a/lib/libsys/mkfifo.2 b/lib/libsys/mkfifo.2
--- a/lib/libsys/mkfifo.2
+++ b/lib/libsys/mkfifo.2
@@ -32,9 +32,8 @@
.Nm mkfifo ,
.Nm mkfifoat
.Nd make a fifo file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/stat.h
.Ft int
diff --git a/lib/libsys/mknod.2 b/lib/libsys/mknod.2
--- a/lib/libsys/mknod.2
+++ b/lib/libsys/mknod.2
@@ -32,9 +32,8 @@
.Nm mknod ,
.Nm mknodat
.Nd make a special file node
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/stat.h
.Ft int
.Fn mknod "const char *path" "mode_t mode" "dev_t dev"
diff --git a/lib/libsys/mlock.2 b/lib/libsys/mlock.2
--- a/lib/libsys/mlock.2
+++ b/lib/libsys/mlock.2
@@ -32,9 +32,8 @@
.Nm mlock ,
.Nm munlock
.Nd lock (unlock) physical pages in memory
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/mman.h
.Ft int
.Fn mlock "const void *addr" "size_t len"
diff --git a/lib/libsys/mlockall.2 b/lib/libsys/mlockall.2
--- a/lib/libsys/mlockall.2
+++ b/lib/libsys/mlockall.2
@@ -35,9 +35,8 @@
.Nm mlockall ,
.Nm munlockall
.Nd lock (unlock) the address space of a process
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/mman.h
.Ft int
.Fn mlockall "int flags"
diff --git a/lib/libsys/mmap.2 b/lib/libsys/mmap.2
--- a/lib/libsys/mmap.2
+++ b/lib/libsys/mmap.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm mmap
.Nd allocate memory, or map files or devices into memory
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/mman.h
.Ft void *
.Fn mmap "void *addr" "size_t len" "int prot" "int flags" "int fd" "off_t offset"
diff --git a/lib/libsys/modfind.2 b/lib/libsys/modfind.2
--- a/lib/libsys/modfind.2
+++ b/lib/libsys/modfind.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm modfind
.Nd returns the modid of a kernel module
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/module.h
.Ft int
diff --git a/lib/libsys/modnext.2 b/lib/libsys/modnext.2
--- a/lib/libsys/modnext.2
+++ b/lib/libsys/modnext.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm modnext
.Nd return the modid of the next kernel module
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/module.h
.Ft int
diff --git a/lib/libsys/modstat.2 b/lib/libsys/modstat.2
--- a/lib/libsys/modstat.2
+++ b/lib/libsys/modstat.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm modstat
.Nd get status of kernel module
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/module.h
.Ft int
diff --git a/lib/libsys/mount.2 b/lib/libsys/mount.2
--- a/lib/libsys/mount.2
+++ b/lib/libsys/mount.2
@@ -33,9 +33,8 @@
.Nm nmount ,
.Nm unmount
.Nd mount or dismount a file system
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/mount.h
.Ft int
diff --git a/lib/libsys/mprotect.2 b/lib/libsys/mprotect.2
--- a/lib/libsys/mprotect.2
+++ b/lib/libsys/mprotect.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm mprotect
.Nd control the protection of pages
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/mman.h
.Ft int
.Fn mprotect "void *addr" "size_t len" "int prot"
diff --git a/lib/libsys/mq_close.2 b/lib/libsys/mq_close.2
--- a/lib/libsys/mq_close.2
+++ b/lib/libsys/mq_close.2
@@ -41,9 +41,8 @@
.Sh NAME
.Nm mq_close
.Nd "close a message queue (REALTIME)"
-.Sh LIBRARY
-.Lb librt
.Sh SYNOPSIS
+.Lb librt
.In mqueue.h
.Ft int
.Fn mq_close "mqd_t mqdes"
diff --git a/lib/libsys/mq_getattr.2 b/lib/libsys/mq_getattr.2
--- a/lib/libsys/mq_getattr.2
+++ b/lib/libsys/mq_getattr.2
@@ -41,9 +41,8 @@
.Sh NAME
.Nm mq_getattr
.Nd "get message queue attributes (REALTIME)"
-.Sh LIBRARY
-.Lb librt
.Sh SYNOPSIS
+.Lb librt
.In mqueue.h
.Ft int
.Fn mq_getattr "mqd_t mqdes" "struct mq_attr *mqstat"
diff --git a/lib/libsys/mq_notify.2 b/lib/libsys/mq_notify.2
--- a/lib/libsys/mq_notify.2
+++ b/lib/libsys/mq_notify.2
@@ -41,9 +41,8 @@
.Sh NAME
.Nm mq_notify
.Nd "notify process that a message is available (REALTIME)"
-.Sh LIBRARY
-.Lb librt
.Sh SYNOPSIS
+.Lb librt
.In mqueue.h
.Ft int
.Fn mq_notify "mqd_t mqdes" "const struct sigevent *notification"
diff --git a/lib/libsys/mq_open.2 b/lib/libsys/mq_open.2
--- a/lib/libsys/mq_open.2
+++ b/lib/libsys/mq_open.2
@@ -41,9 +41,8 @@
.Sh NAME
.Nm mq_open
.Nd "open a message queue (REALTIME)"
-.Sh LIBRARY
-.Lb librt
.Sh SYNOPSIS
+.Lb librt
.In mqueue.h
.Ft mqd_t
.Fn mq_open "const char *name" "int oflag" "..."
diff --git a/lib/libsys/mq_receive.2 b/lib/libsys/mq_receive.2
--- a/lib/libsys/mq_receive.2
+++ b/lib/libsys/mq_receive.2
@@ -41,9 +41,8 @@
.Sh NAME
.Nm mq_receive , mq_timedreceive
.Nd "receive a message from message queue (REALTIME)"
-.Sh LIBRARY
-.Lb librt
.Sh SYNOPSIS
+.Lb librt
.In mqueue.h
.Ft ssize_t
.Fo mq_receive
diff --git a/lib/libsys/mq_send.2 b/lib/libsys/mq_send.2
--- a/lib/libsys/mq_send.2
+++ b/lib/libsys/mq_send.2
@@ -41,9 +41,8 @@
.Sh NAME
.Nm mq_send , mq_timedsend
.Nd "send a message to message queue (REALTIME)"
-.Sh LIBRARY
-.Lb librt
.Sh SYNOPSIS
+.Lb librt
.In mqueue.h
.Ft int
.Fo mq_send
diff --git a/lib/libsys/mq_setattr.2 b/lib/libsys/mq_setattr.2
--- a/lib/libsys/mq_setattr.2
+++ b/lib/libsys/mq_setattr.2
@@ -41,9 +41,8 @@
.Sh NAME
.Nm mq_setattr
.Nd "set message queue attributes (REALTIME)"
-.Sh LIBRARY
-.Lb librt
.Sh SYNOPSIS
+.Lb librt
.In mqueue.h
.Ft int
.Fo mq_setattr
diff --git a/lib/libsys/mq_unlink.2 b/lib/libsys/mq_unlink.2
--- a/lib/libsys/mq_unlink.2
+++ b/lib/libsys/mq_unlink.2
@@ -40,9 +40,8 @@
.Sh NAME
.Nm mq_unlink
.Nd "mq_unlink - remove a message queue (REALTIME)"
-.Sh LIBRARY
-.Lb librt
.Sh SYNOPSIS
+.Lb librt
.In mqueue.h
.Ft int
.Fn mq_unlink "const char *name"
diff --git a/lib/libsys/msgctl.2 b/lib/libsys/msgctl.2
--- a/lib/libsys/msgctl.2
+++ b/lib/libsys/msgctl.2
@@ -35,9 +35,8 @@
.Sh NAME
.Nm msgctl
.Nd message control operations
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/ipc.h
.In sys/msg.h
diff --git a/lib/libsys/msgget.2 b/lib/libsys/msgget.2
--- a/lib/libsys/msgget.2
+++ b/lib/libsys/msgget.2
@@ -36,9 +36,8 @@
.Sh NAME
.Nm msgget
.Nd get message queue
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/msg.h
.Ft int
.Fn msgget "key_t key" "int msgflg"
diff --git a/lib/libsys/msgrcv.2 b/lib/libsys/msgrcv.2
--- a/lib/libsys/msgrcv.2
+++ b/lib/libsys/msgrcv.2
@@ -36,9 +36,8 @@
.Sh NAME
.Nm msgrcv
.Nd receive a message from a message queue
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/ipc.h
.In sys/msg.h
diff --git a/lib/libsys/msgsnd.2 b/lib/libsys/msgsnd.2
--- a/lib/libsys/msgsnd.2
+++ b/lib/libsys/msgsnd.2
@@ -35,9 +35,8 @@
.Sh NAME
.Nm msgsnd
.Nd send a message to a message queue
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/ipc.h
.In sys/msg.h
diff --git a/lib/libsys/msync.2 b/lib/libsys/msync.2
--- a/lib/libsys/msync.2
+++ b/lib/libsys/msync.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm msync
.Nd synchronize a mapped region
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/mman.h
.Ft int
.Fn msync "void *addr" "size_t len" "int flags"
diff --git a/lib/libsys/munmap.2 b/lib/libsys/munmap.2
--- a/lib/libsys/munmap.2
+++ b/lib/libsys/munmap.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm munmap
.Nd remove a mapping
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/mman.h
.Ft int
.Fn munmap "void *addr" "size_t len"
diff --git a/lib/libsys/nanosleep.2 b/lib/libsys/nanosleep.2
--- a/lib/libsys/nanosleep.2
+++ b/lib/libsys/nanosleep.2
@@ -33,9 +33,8 @@
.Sh NAME
.Nm nanosleep
.Nd high resolution sleep
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In time.h
.Ft int
.Fo clock_nanosleep
diff --git a/lib/libsys/nfssvc.2 b/lib/libsys/nfssvc.2
--- a/lib/libsys/nfssvc.2
+++ b/lib/libsys/nfssvc.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm nfssvc
.Nd NFS services
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/mount.h
.In sys/time.h
diff --git a/lib/libsys/ntp_adjtime.2 b/lib/libsys/ntp_adjtime.2
--- a/lib/libsys/ntp_adjtime.2
+++ b/lib/libsys/ntp_adjtime.2
@@ -34,9 +34,8 @@
.Nm ntp_adjtime ,
.Nm ntp_gettime
.Nd Network Time Protocol (NTP) daemon interface system calls
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/timex.h
.Ft int
.Fn ntp_adjtime "struct timex *"
diff --git a/lib/libsys/open.2 b/lib/libsys/open.2
--- a/lib/libsys/open.2
+++ b/lib/libsys/open.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm open , openat
.Nd open or create a file for reading, writing or executing
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In fcntl.h
.Ft int
.Fn open "const char *path" "int flags" "..."
diff --git a/lib/libsys/pathconf.2 b/lib/libsys/pathconf.2
--- a/lib/libsys/pathconf.2
+++ b/lib/libsys/pathconf.2
@@ -33,9 +33,8 @@
.Nm lpathconf ,
.Nm fpathconf
.Nd get configurable pathname variables
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft long
.Fn pathconf "const char *path" "int name"
diff --git a/lib/libsys/pdfork.2 b/lib/libsys/pdfork.2
--- a/lib/libsys/pdfork.2
+++ b/lib/libsys/pdfork.2
@@ -40,9 +40,8 @@
.Nm pdkill ,
.Nm pdwait
.Nd System calls to manage process descriptors
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/procdesc.h
.Ft pid_t
.Fn pdfork "int *fdp" "int pdflags"
diff --git a/lib/libsys/pipe.2 b/lib/libsys/pipe.2
--- a/lib/libsys/pipe.2
+++ b/lib/libsys/pipe.2
@@ -32,9 +32,8 @@
.Nm pipe ,
.Nm pipe2
.Nd create descriptor pair for interprocess communication
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn pipe "int fildes[2]"
diff --git a/lib/libsys/poll.2 b/lib/libsys/poll.2
--- a/lib/libsys/poll.2
+++ b/lib/libsys/poll.2
@@ -33,9 +33,8 @@
.Sh NAME
.Nm poll
.Nd synchronous I/O multiplexing
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In poll.h
.Ft int
.Fn poll "struct pollfd fds[]" "nfds_t nfds" "int timeout"
diff --git a/lib/libsys/posix_fadvise.2 b/lib/libsys/posix_fadvise.2
--- a/lib/libsys/posix_fadvise.2
+++ b/lib/libsys/posix_fadvise.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm posix_fadvise
.Nd give advice about use of file data
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In fcntl.h
.Ft int
.Fn posix_fadvise "int fd" "off_t offset" "off_t len" "int advice"
diff --git a/lib/libsys/posix_fallocate.2 b/lib/libsys/posix_fallocate.2
--- a/lib/libsys/posix_fallocate.2
+++ b/lib/libsys/posix_fallocate.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm posix_fallocate
.Nd pre-allocate storage for a range in a file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In fcntl.h
.Ft int
.Fn posix_fallocate "int fd" "off_t offset" "off_t len"
diff --git a/lib/libsys/posix_openpt.2 b/lib/libsys/posix_openpt.2
--- a/lib/libsys/posix_openpt.2
+++ b/lib/libsys/posix_openpt.2
@@ -41,9 +41,8 @@
.Sh NAME
.Nm posix_openpt
.Nd "open a pseudo-terminal device"
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In fcntl.h
.In stdlib.h
.Ft int
diff --git a/lib/libsys/procctl.2 b/lib/libsys/procctl.2
--- a/lib/libsys/procctl.2
+++ b/lib/libsys/procctl.2
@@ -33,9 +33,8 @@
.Sh NAME
.Nm procctl
.Nd control processes
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/procctl.h
.Ft int
.Fn procctl "idtype_t idtype" "id_t id" "int cmd" "void *data"
diff --git a/lib/libsys/profil.2 b/lib/libsys/profil.2
--- a/lib/libsys/profil.2
+++ b/lib/libsys/profil.2
@@ -34,9 +34,8 @@
.Sh NAME
.Nm profil
.Nd control process profiling
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn profil "char *samples" "size_t size" "vm_offset_t offset" "int scale"
diff --git a/lib/libsys/pselect.2 b/lib/libsys/pselect.2
--- a/lib/libsys/pselect.2
+++ b/lib/libsys/pselect.2
@@ -32,9 +32,8 @@
.Sh NAME
.Nm pselect
.Nd synchronous I/O multiplexing a la POSIX.1g
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/select.h
.Ft int
.Fo pselect
diff --git a/lib/libsys/ptrace.2 b/lib/libsys/ptrace.2
--- a/lib/libsys/ptrace.2
+++ b/lib/libsys/ptrace.2
@@ -7,9 +7,8 @@
.Sh NAME
.Nm ptrace
.Nd process tracing and debugging
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/ptrace.h
.Ft int
diff --git a/lib/libsys/quotactl.2 b/lib/libsys/quotactl.2
--- a/lib/libsys/quotactl.2
+++ b/lib/libsys/quotactl.2
@@ -34,9 +34,8 @@
.Sh NAME
.Nm quotactl
.Nd manipulate file system quotas
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In ufs/ufs/quota.h
.Ft int
diff --git a/lib/libsys/rctl_add_rule.2 b/lib/libsys/rctl_add_rule.2
--- a/lib/libsys/rctl_add_rule.2
+++ b/lib/libsys/rctl_add_rule.2
@@ -32,9 +32,8 @@
.Nm rctl_get_rules ,
.Nm rctl_remove_rule
.Nd manipulate and query the resource limits database
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/rctl.h
.Ft int
.Fo rctl_add_rule
diff --git a/lib/libsys/read.2 b/lib/libsys/read.2
--- a/lib/libsys/read.2
+++ b/lib/libsys/read.2
@@ -34,9 +34,8 @@
.Nm pread ,
.Nm preadv
.Nd read input
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft ssize_t
.Fn read "int fd" "void *buf" "size_t nbytes"
diff --git a/lib/libsys/readlink.2 b/lib/libsys/readlink.2
--- a/lib/libsys/readlink.2
+++ b/lib/libsys/readlink.2
@@ -32,9 +32,8 @@
.Nm readlink ,
.Nm readlinkat
.Nd read value of a symbolic link
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft ssize_t
.Fn readlink "const char *restrict path" "char *restrict buf" "size_t bufsiz"
diff --git a/lib/libsys/reboot.2 b/lib/libsys/reboot.2
--- a/lib/libsys/reboot.2
+++ b/lib/libsys/reboot.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm reboot
.Nd reboot system or halt processor
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.In sys/reboot.h
.Ft int
diff --git a/lib/libsys/recv.2 b/lib/libsys/recv.2
--- a/lib/libsys/recv.2
+++ b/lib/libsys/recv.2
@@ -34,9 +34,8 @@
.Nm recvmsg ,
.Nm recvmmsg
.Nd receive message(s) from a socket
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/socket.h
.Ft ssize_t
.Fn recv "int s" "void *buf" "size_t len" "int flags"
diff --git a/lib/libsys/rename.2 b/lib/libsys/rename.2
--- a/lib/libsys/rename.2
+++ b/lib/libsys/rename.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm rename
.Nd change the name of a file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In stdio.h
.Ft int
.Fn rename "const char *from" "const char *to"
diff --git a/lib/libsys/revoke.2 b/lib/libsys/revoke.2
--- a/lib/libsys/revoke.2
+++ b/lib/libsys/revoke.2
@@ -34,9 +34,8 @@
.Sh NAME
.Nm revoke
.Nd revoke file access
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn revoke "const char *path"
diff --git a/lib/libsys/rfork.2 b/lib/libsys/rfork.2
--- a/lib/libsys/rfork.2
+++ b/lib/libsys/rfork.2
@@ -9,9 +9,8 @@
.Sh NAME
.Nm rfork
.Nd manipulate process resources
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft pid_t
.Fn rfork "int flags"
diff --git a/lib/libsys/rmdir.2 b/lib/libsys/rmdir.2
--- a/lib/libsys/rmdir.2
+++ b/lib/libsys/rmdir.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm rmdir
.Nd remove a directory file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn rmdir "const char *path"
diff --git a/lib/libsys/rtprio.2 b/lib/libsys/rtprio.2
--- a/lib/libsys/rtprio.2
+++ b/lib/libsys/rtprio.2
@@ -58,9 +58,8 @@
.Nm rtprio ,
.Nm rtprio_thread
.Nd examine or modify realtime or idle priority
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/rtprio.h
.Ft int
diff --git a/lib/libsys/sched_get_priority_max.2 b/lib/libsys/sched_get_priority_max.2
--- a/lib/libsys/sched_get_priority_max.2
+++ b/lib/libsys/sched_get_priority_max.2
@@ -30,9 +30,8 @@
.Nm sched_get_priority_min ,
.Nm sched_rr_get_interval
.Nd get scheduling parameter limits
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sched.h
.Ft int
.Fn sched_get_priority_max "int policy"
diff --git a/lib/libsys/sched_setparam.2 b/lib/libsys/sched_setparam.2
--- a/lib/libsys/sched_setparam.2
+++ b/lib/libsys/sched_setparam.2
@@ -29,9 +29,8 @@
.Nm sched_setparam ,
.Nm sched_getparam
.Nd set/get scheduling parameters
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sched.h
.Ft int
.Fn sched_setparam "pid_t pid" "const struct sched_param *param"
diff --git a/lib/libsys/sched_setscheduler.2 b/lib/libsys/sched_setscheduler.2
--- a/lib/libsys/sched_setscheduler.2
+++ b/lib/libsys/sched_setscheduler.2
@@ -29,9 +29,8 @@
.Nm sched_setscheduler ,
.Nm sched_getscheduler
.Nd set/get scheduling policy and scheduler parameters
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sched.h
.Ft int
.Fn sched_setscheduler "pid_t pid" "int policy" "const struct sched_param *param"
diff --git a/lib/libsys/sched_yield.2 b/lib/libsys/sched_yield.2
--- a/lib/libsys/sched_yield.2
+++ b/lib/libsys/sched_yield.2
@@ -28,9 +28,8 @@
.Sh NAME
.Nm sched_yield
.Nd yield processor
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sched.h
.Ft int
.Fn sched_yield void
diff --git a/lib/libsys/sctp_generic_recvmsg.2 b/lib/libsys/sctp_generic_recvmsg.2
--- a/lib/libsys/sctp_generic_recvmsg.2
+++ b/lib/libsys/sctp_generic_recvmsg.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm sctp_generic_recvmsg
.Nd receive data from a peer
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/socket.h
.In netinet/sctp.h
diff --git a/lib/libsys/sctp_generic_sendmsg.2 b/lib/libsys/sctp_generic_sendmsg.2
--- a/lib/libsys/sctp_generic_sendmsg.2
+++ b/lib/libsys/sctp_generic_sendmsg.2
@@ -32,9 +32,8 @@
.Nm sctp_generic_sendmsg ,
.Nm sctp_generic_sendmsg_iov
.Nd send data to a peer
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/socket.h
.In netinet/sctp.h
diff --git a/lib/libsys/sctp_peeloff.2 b/lib/libsys/sctp_peeloff.2
--- a/lib/libsys/sctp_peeloff.2
+++ b/lib/libsys/sctp_peeloff.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm sctp_peeloff
.Nd detach an association from a one-to-many socket to its own fd
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/socket.h
.In netinet/sctp.h
diff --git a/lib/libsys/select.2 b/lib/libsys/select.2
--- a/lib/libsys/select.2
+++ b/lib/libsys/select.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm select
.Nd synchronous I/O multiplexing
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/select.h
.Ft int
.Fn select "int nfds" "fd_set *readfds" "fd_set *writefds" "fd_set *exceptfds" "struct timeval *timeout"
diff --git a/lib/libsys/semctl.2 b/lib/libsys/semctl.2
--- a/lib/libsys/semctl.2
+++ b/lib/libsys/semctl.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm semctl
.Nd control operations on a semaphore set
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/ipc.h
.In sys/sem.h
diff --git a/lib/libsys/semget.2 b/lib/libsys/semget.2
--- a/lib/libsys/semget.2
+++ b/lib/libsys/semget.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm semget
.Nd obtain a semaphore id
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/sem.h
.Ft int
.Fn semget "key_t key" "int nsems" "int flag"
diff --git a/lib/libsys/semop.2 b/lib/libsys/semop.2
--- a/lib/libsys/semop.2
+++ b/lib/libsys/semop.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm semop
.Nd atomic array of operations on a semaphore set
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/ipc.h
.In sys/sem.h
diff --git a/lib/libsys/send.2 b/lib/libsys/send.2
--- a/lib/libsys/send.2
+++ b/lib/libsys/send.2
@@ -34,9 +34,8 @@
.Nm sendmsg ,
.Nm sendmmsg
.Nd send message(s) from a socket
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/socket.h
.Ft ssize_t
.Fn send "int s" "const void *msg" "size_t len" "int flags"
diff --git a/lib/libsys/sendfile.2 b/lib/libsys/sendfile.2
--- a/lib/libsys/sendfile.2
+++ b/lib/libsys/sendfile.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm sendfile
.Nd send a file to a socket
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/socket.h
.In sys/uio.h
diff --git a/lib/libsys/setcred.2 b/lib/libsys/setcred.2
--- a/lib/libsys/setcred.2
+++ b/lib/libsys/setcred.2
@@ -12,9 +12,8 @@
.Sh NAME
.Nm setcred
.Nd set current process credentials atomically
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/ucred.h
.Ft int
.Fn setcred "u_int flags" "const struct setcred *wcred" "size_t size"
diff --git a/lib/libsys/setfib.2 b/lib/libsys/setfib.2
--- a/lib/libsys/setfib.2
+++ b/lib/libsys/setfib.2
@@ -28,9 +28,8 @@
.Sh NAME
.Nm setfib
.Nd set the default FIB (routing table) for the calling process
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/socket.h
.Ft int
.Fn setfib "int fib"
diff --git a/lib/libsys/setgroups.2 b/lib/libsys/setgroups.2
--- a/lib/libsys/setgroups.2
+++ b/lib/libsys/setgroups.2
@@ -39,9 +39,8 @@
.Sh NAME
.Nm setgroups
.Nd set the calling process' supplementary groups
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In unistd.h
.Ft int
diff --git a/lib/libsys/setpgid.2 b/lib/libsys/setpgid.2
--- a/lib/libsys/setpgid.2
+++ b/lib/libsys/setpgid.2
@@ -32,9 +32,8 @@
.Nm setpgid ,
.Nm setpgrp
.Nd set process group
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn setpgid "pid_t pid" "pid_t pgrp"
diff --git a/lib/libsys/setregid.2 b/lib/libsys/setregid.2
--- a/lib/libsys/setregid.2
+++ b/lib/libsys/setregid.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm setregid
.Nd set real and effective group ID
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn setregid "gid_t rgid" "gid_t egid"
diff --git a/lib/libsys/setresuid.2 b/lib/libsys/setresuid.2
--- a/lib/libsys/setresuid.2
+++ b/lib/libsys/setresuid.2
@@ -26,9 +26,8 @@
.Nm setresgid ,
.Nm setresuid
.Nd "get or set real, effective and saved user or group ID"
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In unistd.h
.Ft int
diff --git a/lib/libsys/setreuid.2 b/lib/libsys/setreuid.2
--- a/lib/libsys/setreuid.2
+++ b/lib/libsys/setreuid.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm setreuid
.Nd set real and effective user ID's
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn setreuid "uid_t ruid" "uid_t euid"
diff --git a/lib/libsys/setsid.2 b/lib/libsys/setsid.2
--- a/lib/libsys/setsid.2
+++ b/lib/libsys/setsid.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm setsid
.Nd create session and set process group ID
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft pid_t
.Fn setsid void
diff --git a/lib/libsys/setuid.2 b/lib/libsys/setuid.2
--- a/lib/libsys/setuid.2
+++ b/lib/libsys/setuid.2
@@ -34,9 +34,8 @@
.Nm setgid ,
.Nm setegid
.Nd set user and group ID
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn setuid "uid_t uid"
diff --git a/lib/libsys/shm_open.2 b/lib/libsys/shm_open.2
--- a/lib/libsys/shm_open.2
+++ b/lib/libsys/shm_open.2
@@ -32,9 +32,8 @@
.Sh NAME
.Nm memfd_create , shm_create_largepage , shm_open , shm_rename, shm_unlink
.Nd "shared memory object operations"
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/mman.h
.In fcntl.h
diff --git a/lib/libsys/shmat.2 b/lib/libsys/shmat.2
--- a/lib/libsys/shmat.2
+++ b/lib/libsys/shmat.2
@@ -30,9 +30,8 @@
.Nm shmat ,
.Nm shmdt
.Nd attach or detach shared memory
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/ipc.h
.In sys/shm.h
diff --git a/lib/libsys/shmctl.2 b/lib/libsys/shmctl.2
--- a/lib/libsys/shmctl.2
+++ b/lib/libsys/shmctl.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm shmctl
.Nd shared memory control
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/ipc.h
.In sys/shm.h
diff --git a/lib/libsys/shmget.2 b/lib/libsys/shmget.2
--- a/lib/libsys/shmget.2
+++ b/lib/libsys/shmget.2
@@ -29,9 +29,8 @@
.Sh NAME
.Nm shmget
.Nd obtain a shared memory identifier
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/shm.h
.Ft int
.Fn shmget "key_t key" "size_t size" "int flag"
diff --git a/lib/libsys/shutdown.2 b/lib/libsys/shutdown.2
--- a/lib/libsys/shutdown.2
+++ b/lib/libsys/shutdown.2
@@ -32,9 +32,8 @@
.Sh NAME
.Nm shutdown
.Nd disable sends and/or receives on a socket
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/socket.h
.Ft int
diff --git a/lib/libsys/sigaction.2 b/lib/libsys/sigaction.2
--- a/lib/libsys/sigaction.2
+++ b/lib/libsys/sigaction.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm sigaction
.Nd software signal facilities
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In signal.h
.Bd -literal
struct sigaction {
diff --git a/lib/libsys/sigaltstack.2 b/lib/libsys/sigaltstack.2
--- a/lib/libsys/sigaltstack.2
+++ b/lib/libsys/sigaltstack.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm sigaltstack
.Nd set and/or get signal stack context
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In signal.h
.Bd -literal
typedef struct {
diff --git a/lib/libsys/sigfastblock.2 b/lib/libsys/sigfastblock.2
--- a/lib/libsys/sigfastblock.2
+++ b/lib/libsys/sigfastblock.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm sigfastblock
.Nd controls signals blocking with a simple memory write
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/signalvar.h
.Ft int
.Fn sigfastblock "int cmd" "void *ptr"
diff --git a/lib/libsys/sigpending.2 b/lib/libsys/sigpending.2
--- a/lib/libsys/sigpending.2
+++ b/lib/libsys/sigpending.2
@@ -34,9 +34,8 @@
.Sh NAME
.Nm sigpending
.Nd get pending signals
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In signal.h
.Ft int
.Fn sigpending "sigset_t *set"
diff --git a/lib/libsys/sigprocmask.2 b/lib/libsys/sigprocmask.2
--- a/lib/libsys/sigprocmask.2
+++ b/lib/libsys/sigprocmask.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm sigprocmask
.Nd manipulate current signal mask
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In signal.h
.Ft int
.Fo sigprocmask
diff --git a/lib/libsys/sigqueue.2 b/lib/libsys/sigqueue.2
--- a/lib/libsys/sigqueue.2
+++ b/lib/libsys/sigqueue.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm sigqueue
.Nd "queue a signal to a process (REALTIME)"
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In signal.h
.Ft int
.Fn sigqueue "pid_t pid" "int signo" "const union sigval value"
diff --git a/lib/libsys/sigreturn.2 b/lib/libsys/sigreturn.2
--- a/lib/libsys/sigreturn.2
+++ b/lib/libsys/sigreturn.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm sigreturn
.Nd return from signal
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In signal.h
.Ft int
.Fn sigreturn "const ucontext_t *scp"
diff --git a/lib/libsys/sigstack.2 b/lib/libsys/sigstack.2
--- a/lib/libsys/sigstack.2
+++ b/lib/libsys/sigstack.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm sigstack
.Nd set and/or get signal stack context
-.Sh LIBRARY
-.Lb libc
.Sh DESCRIPTION
+.Lb libc
The
.Fn sigstack
function has been deprecated in favor of the interface described in
diff --git a/lib/libsys/sigsuspend.2 b/lib/libsys/sigsuspend.2
--- a/lib/libsys/sigsuspend.2
+++ b/lib/libsys/sigsuspend.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm sigsuspend
.Nd atomically release blocked signals and wait for interrupt
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In signal.h
.Ft int
.Fn sigsuspend "const sigset_t *sigmask"
diff --git a/lib/libsys/sigwait.2 b/lib/libsys/sigwait.2
--- a/lib/libsys/sigwait.2
+++ b/lib/libsys/sigwait.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm sigwait
.Nd select a set of signals
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In signal.h
.Ft int
.Fn sigwait "const sigset_t * restrict set" "int * restrict sig"
diff --git a/lib/libsys/sigwaitinfo.2 b/lib/libsys/sigwaitinfo.2
--- a/lib/libsys/sigwaitinfo.2
+++ b/lib/libsys/sigwaitinfo.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm sigtimedwait , sigwaitinfo
.Nd "wait for queued signals (REALTIME)"
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In signal.h
.Ft int
.Fo sigtimedwait
diff --git a/lib/libsys/socket.2 b/lib/libsys/socket.2
--- a/lib/libsys/socket.2
+++ b/lib/libsys/socket.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm socket
.Nd create an endpoint for communication
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/socket.h
.Ft int
.Fn socket "int domain" "int type" "int protocol"
diff --git a/lib/libsys/socketpair.2 b/lib/libsys/socketpair.2
--- a/lib/libsys/socketpair.2
+++ b/lib/libsys/socketpair.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm socketpair
.Nd create a pair of connected sockets
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/types.h
.In sys/socket.h
.Ft int
diff --git a/lib/libsys/stat.2 b/lib/libsys/stat.2
--- a/lib/libsys/stat.2
+++ b/lib/libsys/stat.2
@@ -34,9 +34,8 @@
.Nm fstat ,
.Nm fstatat
.Nd get file status
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/stat.h
.Ft int
.Fn stat "const char * restrict path" "struct stat * restrict sb"
diff --git a/lib/libsys/statfs.2 b/lib/libsys/statfs.2
--- a/lib/libsys/statfs.2
+++ b/lib/libsys/statfs.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm statfs
.Nd get file system statistics
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/mount.h
.Ft int
diff --git a/lib/libsys/swapon.2 b/lib/libsys/swapon.2
--- a/lib/libsys/swapon.2
+++ b/lib/libsys/swapon.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm swapon , swapoff
.Nd control devices for interleaved paging/swapping
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In vm/vm_param.h
.In vm/swap_pager.h
.Pp
diff --git a/lib/libsys/symlink.2 b/lib/libsys/symlink.2
--- a/lib/libsys/symlink.2
+++ b/lib/libsys/symlink.2
@@ -32,9 +32,8 @@
.Nm symlink ,
.Nm symlinkat
.Nd make symbolic link to a file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn symlink "const char *name1" "const char *name2"
diff --git a/lib/libsys/sync.2 b/lib/libsys/sync.2
--- a/lib/libsys/sync.2
+++ b/lib/libsys/sync.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm sync
.Nd "schedule file system updates"
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft void
.Fn sync void
diff --git a/lib/libsys/sysarch.2 b/lib/libsys/sysarch.2
--- a/lib/libsys/sysarch.2
+++ b/lib/libsys/sysarch.2
@@ -33,9 +33,8 @@
.Sh NAME
.Nm sysarch
.Nd architecture-dependent system call
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In machine/sysarch.h
.Ft int
.Fn sysarch "int number" "void *args"
diff --git a/lib/libsys/syscall.2 b/lib/libsys/syscall.2
--- a/lib/libsys/syscall.2
+++ b/lib/libsys/syscall.2
@@ -32,9 +32,8 @@
.Nm syscall ,
.Nm __syscall
.Nd indirect system call
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/syscall.h
.In unistd.h
.Ft int
diff --git a/lib/libsys/thr_exit.2 b/lib/libsys/thr_exit.2
--- a/lib/libsys/thr_exit.2
+++ b/lib/libsys/thr_exit.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm thr_exit
.Nd terminate current thread
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/thr.h
.Ft void
.Fn thr_exit "long *state"
diff --git a/lib/libsys/thr_kill.2 b/lib/libsys/thr_kill.2
--- a/lib/libsys/thr_kill.2
+++ b/lib/libsys/thr_kill.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm thr_kill
.Nd send signal to thread
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/thr.h
.Ft int
.Fn thr_kill "long id" "int sig"
diff --git a/lib/libsys/thr_new.2 b/lib/libsys/thr_new.2
--- a/lib/libsys/thr_new.2
+++ b/lib/libsys/thr_new.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm thr_new
.Nd create new thread of execution
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/thr.h
.Ft int
.Fn thr_new "struct thr_param *param" "int param_size"
diff --git a/lib/libsys/thr_self.2 b/lib/libsys/thr_self.2
--- a/lib/libsys/thr_self.2
+++ b/lib/libsys/thr_self.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm thr_self
.Nd return thread identifier for the calling thread
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/thr.h
.Ft int
.Fn thr_self "long *id"
diff --git a/lib/libsys/thr_set_name.2 b/lib/libsys/thr_set_name.2
--- a/lib/libsys/thr_set_name.2
+++ b/lib/libsys/thr_set_name.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm thr_set_name
.Nd set user-visible thread name
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/thr.h
.Ft int
.Fn thr_set_name "long id" "const char *name"
diff --git a/lib/libsys/thr_suspend.2 b/lib/libsys/thr_suspend.2
--- a/lib/libsys/thr_suspend.2
+++ b/lib/libsys/thr_suspend.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm thr_suspend
.Nd suspend the calling thread
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/thr.h
.Ft int
.Fn thr_suspend "struct timespec *timeout"
diff --git a/lib/libsys/thr_wake.2 b/lib/libsys/thr_wake.2
--- a/lib/libsys/thr_wake.2
+++ b/lib/libsys/thr_wake.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm thr_wake
.Nd wake up the suspended thread
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/thr.h
.Ft int
.Fn thr_wake "long id"
diff --git a/lib/libsys/timer_create.2 b/lib/libsys/timer_create.2
--- a/lib/libsys/timer_create.2
+++ b/lib/libsys/timer_create.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm timer_create
.Nd "create a per-process timer (REALTIME)"
-.Sh LIBRARY
-.Lb librt
.Sh SYNOPSIS
+.Lb librt
.In time.h
.In signal.h
.Ft int
diff --git a/lib/libsys/timer_delete.2 b/lib/libsys/timer_delete.2
--- a/lib/libsys/timer_delete.2
+++ b/lib/libsys/timer_delete.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm timer_delete
.Nd "delete a per-process timer (REALTIME)"
-.Sh LIBRARY
-.Lb librt
.Sh SYNOPSIS
+.Lb librt
.In time.h
.Ft int
.Fn timer_delete "timer_t timerid"
diff --git a/lib/libsys/timer_settime.2 b/lib/libsys/timer_settime.2
--- a/lib/libsys/timer_settime.2
+++ b/lib/libsys/timer_settime.2
@@ -33,9 +33,8 @@
.Nm timer_gettime ,
.Nm timer_settime
.Nd "per-process timers (REALTIME)"
-.Sh LIBRARY
-.Lb librt
.Sh SYNOPSIS
+.Lb librt
.In time.h
.Ft int
.Fn timer_getoverrun "timer_t timerid"
diff --git a/lib/libsys/timerfd.2 b/lib/libsys/timerfd.2
--- a/lib/libsys/timerfd.2
+++ b/lib/libsys/timerfd.2
@@ -32,9 +32,8 @@
.Nm timerfd_gettime ,
.Nm timerfd_settime
.Nd timers with file descriptor semantics
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/timerfd.h
.Ft int
.Fo timerfd_create
diff --git a/lib/libsys/truncate.2 b/lib/libsys/truncate.2
--- a/lib/libsys/truncate.2
+++ b/lib/libsys/truncate.2
@@ -32,9 +32,8 @@
.Nm truncate ,
.Nm ftruncate
.Nd truncate or extend a file to a specified length
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn truncate "const char *path" "off_t length"
diff --git a/lib/libsys/umask.2 b/lib/libsys/umask.2
--- a/lib/libsys/umask.2
+++ b/lib/libsys/umask.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm umask
.Nd set file creation mode mask
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/stat.h
.Ft mode_t
.Fn umask "mode_t numask"
diff --git a/lib/libsys/undelete.2 b/lib/libsys/undelete.2
--- a/lib/libsys/undelete.2
+++ b/lib/libsys/undelete.2
@@ -32,9 +32,8 @@
.Sh NAME
.Nm undelete
.Nd attempt to recover a deleted file
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn undelete "const char *path"
diff --git a/lib/libsys/unlink.2 b/lib/libsys/unlink.2
--- a/lib/libsys/unlink.2
+++ b/lib/libsys/unlink.2
@@ -33,9 +33,8 @@
.Nm unlinkat ,
.Nm funlinkat
.Nd remove directory entry
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft int
.Fn unlink "const char *path"
diff --git a/lib/libsys/utimensat.2 b/lib/libsys/utimensat.2
--- a/lib/libsys/utimensat.2
+++ b/lib/libsys/utimensat.2
@@ -35,9 +35,8 @@
.Nm futimens ,
.Nm utimensat
.Nd set file access and modification times
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/stat.h
.Ft int
.Fn futimens "int fd" "const struct timespec times[2]"
diff --git a/lib/libsys/utimes.2 b/lib/libsys/utimes.2
--- a/lib/libsys/utimes.2
+++ b/lib/libsys/utimes.2
@@ -36,9 +36,8 @@
.Nm futimes ,
.Nm futimesat
.Nd set file access and modification times
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/time.h
.Ft int
.Fn utimes "const char *path" "const struct timeval *times"
diff --git a/lib/libsys/utrace.2 b/lib/libsys/utrace.2
--- a/lib/libsys/utrace.2
+++ b/lib/libsys/utrace.2
@@ -32,9 +32,8 @@
.Sh NAME
.Nm utrace
.Nd insert user record in ktrace log
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/param.h
.In sys/time.h
.In sys/uio.h
diff --git a/lib/libsys/uuidgen.2 b/lib/libsys/uuidgen.2
--- a/lib/libsys/uuidgen.2
+++ b/lib/libsys/uuidgen.2
@@ -28,9 +28,8 @@
.Sh NAME
.Nm uuidgen
.Nd generate universally unique identifiers
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/uuid.h
.Ft int
.Fn uuidgen "struct uuid *store" "int count"
diff --git a/lib/libsys/vfork.2 b/lib/libsys/vfork.2
--- a/lib/libsys/vfork.2
+++ b/lib/libsys/vfork.2
@@ -31,9 +31,8 @@
.Sh NAME
.Nm vfork
.Nd create a new process without copying the address space
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft pid_t
.Fn vfork void
diff --git a/lib/libsys/wait.2 b/lib/libsys/wait.2
--- a/lib/libsys/wait.2
+++ b/lib/libsys/wait.2
@@ -36,9 +36,8 @@
.Nm wait4 ,
.Nm wait6
.Nd wait for processes to change status
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In sys/wait.h
.Ft pid_t
.Fn wait "int *status"
diff --git a/lib/libsys/write.2 b/lib/libsys/write.2
--- a/lib/libsys/write.2
+++ b/lib/libsys/write.2
@@ -34,9 +34,8 @@
.Nm pwrite ,
.Nm pwritev
.Nd write output
-.Sh LIBRARY
-.Lb libc
.Sh SYNOPSIS
+.Lb libc
.In unistd.h
.Ft ssize_t
.Fn write "int fd" "const void *buf" "size_t nbytes"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 22, 9:16 PM (14 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28941860
Default Alt Text
D55411.diff (65 KB)
Attached To
Mode
D55411: libsys manuals: Move library to SYNOPSIS
Attached
Detach File
Event Timeline
Log In to Comment