aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/_exit.22
-rw-r--r--lib/libc/sys/accept.24
-rw-r--r--lib/libc/sys/access.22
-rw-r--r--lib/libc/sys/acct.22
-rw-r--r--lib/libc/sys/adjtime.22
-rw-r--r--lib/libc/sys/aio_cancel.22
-rw-r--r--lib/libc/sys/aio_error.22
-rw-r--r--lib/libc/sys/aio_read.24
-rw-r--r--lib/libc/sys/aio_return.22
-rw-r--r--lib/libc/sys/aio_suspend.22
-rw-r--r--lib/libc/sys/aio_waitcomplete.22
-rw-r--r--lib/libc/sys/aio_write.22
-rw-r--r--lib/libc/sys/bind.24
-rw-r--r--lib/libc/sys/brk.22
-rw-r--r--lib/libc/sys/chdir.22
-rw-r--r--lib/libc/sys/chflags.24
-rw-r--r--lib/libc/sys/chmod.22
-rw-r--r--lib/libc/sys/chown.22
-rw-r--r--lib/libc/sys/chroot.22
-rw-r--r--lib/libc/sys/clock_gettime.22
-rw-r--r--lib/libc/sys/close.22
-rw-r--r--lib/libc/sys/connect.24
-rw-r--r--lib/libc/sys/dup.22
-rw-r--r--lib/libc/sys/execve.22
-rw-r--r--lib/libc/sys/extattr_get_file.24
-rw-r--r--lib/libc/sys/fcntl.22
-rw-r--r--lib/libc/sys/fhopen.26
-rw-r--r--lib/libc/sys/flock.22
-rw-r--r--lib/libc/sys/fork.24
-rw-r--r--lib/libc/sys/fsync.22
-rw-r--r--lib/libc/sys/getdirentries.24
-rw-r--r--lib/libc/sys/getdtablesize.22
-rw-r--r--lib/libc/sys/getfh.24
-rw-r--r--lib/libc/sys/getfsstat.26
-rw-r--r--lib/libc/sys/getgid.24
-rw-r--r--lib/libc/sys/getgroups.24
-rw-r--r--lib/libc/sys/getitimer.22
-rw-r--r--lib/libc/sys/getlogin.24
-rw-r--r--lib/libc/sys/getpeername.24
-rw-r--r--lib/libc/sys/getpgrp.22
-rw-r--r--lib/libc/sys/getpid.24
-rw-r--r--lib/libc/sys/getpriority.24
-rw-r--r--lib/libc/sys/getrlimit.26
-rw-r--r--lib/libc/sys/getrusage.26
-rw-r--r--lib/libc/sys/getsid.22
-rw-r--r--lib/libc/sys/getsockname.24
-rw-r--r--lib/libc/sys/getsockopt.24
-rw-r--r--lib/libc/sys/gettimeofday.22
-rw-r--r--lib/libc/sys/getuid.24
-rw-r--r--lib/libc/sys/intro.22
-rw-r--r--lib/libc/sys/ioctl.22
-rw-r--r--lib/libc/sys/issetugid.22
-rw-r--r--lib/libc/sys/jail.24
-rw-r--r--lib/libc/sys/kill.24
-rw-r--r--lib/libc/sys/kldfind.24
-rw-r--r--lib/libc/sys/kldfirstmod.24
-rw-r--r--lib/libc/sys/kldload.24
-rw-r--r--lib/libc/sys/kldnext.24
-rw-r--r--lib/libc/sys/kldstat.24
-rw-r--r--lib/libc/sys/kldunload.24
-rw-r--r--lib/libc/sys/kqueue.26
-rw-r--r--lib/libc/sys/ktrace.28
-rw-r--r--lib/libc/sys/link.22
-rw-r--r--lib/libc/sys/listen.24
-rw-r--r--lib/libc/sys/lseek.22
-rw-r--r--lib/libc/sys/madvise.24
-rw-r--r--lib/libc/sys/mincore.24
-rw-r--r--lib/libc/sys/minherit.24
-rw-r--r--lib/libc/sys/mkdir.24
-rw-r--r--lib/libc/sys/mkfifo.24
-rw-r--r--lib/libc/sys/mknod.22
-rw-r--r--lib/libc/sys/mlock.24
-rw-r--r--lib/libc/sys/mmap.24
-rw-r--r--lib/libc/sys/modfind.24
-rw-r--r--lib/libc/sys/modnext.24
-rw-r--r--lib/libc/sys/modstat.24
-rw-r--r--lib/libc/sys/mount.24
-rw-r--r--lib/libc/sys/mprotect.24
-rw-r--r--lib/libc/sys/msync.24
-rw-r--r--lib/libc/sys/munmap.24
-rw-r--r--lib/libc/sys/nanosleep.22
-rw-r--r--lib/libc/sys/nfssvc.212
-rw-r--r--lib/libc/sys/open.22
-rw-r--r--lib/libc/sys/pathconf.22
-rw-r--r--lib/libc/sys/pipe.22
-rw-r--r--lib/libc/sys/poll.24
-rw-r--r--lib/libc/sys/profil.22
-rw-r--r--lib/libc/sys/ptrace.24
-rw-r--r--lib/libc/sys/quotactl.24
-rw-r--r--lib/libc/sys/read.26
-rw-r--r--lib/libc/sys/readlink.22
-rw-r--r--lib/libc/sys/reboot.24
-rw-r--r--lib/libc/sys/recv.24
-rw-r--r--lib/libc/sys/rename.22
-rw-r--r--lib/libc/sys/revoke.22
-rw-r--r--lib/libc/sys/rfork.22
-rw-r--r--lib/libc/sys/rmdir.22
-rw-r--r--lib/libc/sys/rtprio.24
-rw-r--r--lib/libc/sys/sched_get_priority_max.22
-rw-r--r--lib/libc/sys/sched_setparam.22
-rw-r--r--lib/libc/sys/sched_setscheduler.22
-rw-r--r--lib/libc/sys/sched_yield.22
-rw-r--r--lib/libc/sys/select.26
-rw-r--r--lib/libc/sys/semctl.26
-rw-r--r--lib/libc/sys/semget.26
-rw-r--r--lib/libc/sys/semop.26
-rw-r--r--lib/libc/sys/send.24
-rw-r--r--lib/libc/sys/sendfile.26
-rw-r--r--lib/libc/sys/setgroups.24
-rw-r--r--lib/libc/sys/setpgid.22
-rw-r--r--lib/libc/sys/setregid.22
-rw-r--r--lib/libc/sys/setresuid.24
-rw-r--r--lib/libc/sys/setreuid.22
-rw-r--r--lib/libc/sys/setsid.22
-rw-r--r--lib/libc/sys/setuid.24
-rw-r--r--lib/libc/sys/shm_open.24
-rw-r--r--lib/libc/sys/shmat.28
-rw-r--r--lib/libc/sys/shmctl.28
-rw-r--r--lib/libc/sys/shmget.28
-rw-r--r--lib/libc/sys/shutdown.24
-rw-r--r--lib/libc/sys/sigaction.22
-rw-r--r--lib/libc/sys/sigaltstack.22
-rw-r--r--lib/libc/sys/sigpending.22
-rw-r--r--lib/libc/sys/sigprocmask.22
-rw-r--r--lib/libc/sys/sigreturn.22
-rw-r--r--lib/libc/sys/sigsuspend.22
-rw-r--r--lib/libc/sys/sigwait.22
-rw-r--r--lib/libc/sys/socket.24
-rw-r--r--lib/libc/sys/socketpair.24
-rw-r--r--lib/libc/sys/stat.24
-rw-r--r--lib/libc/sys/statfs.24
-rw-r--r--lib/libc/sys/swapon.22
-rw-r--r--lib/libc/sys/symlink.22
-rw-r--r--lib/libc/sys/sync.22
-rw-r--r--lib/libc/sys/sysarch.22
-rw-r--r--lib/libc/sys/syscall.24
-rw-r--r--lib/libc/sys/truncate.22
-rw-r--r--lib/libc/sys/umask.22
-rw-r--r--lib/libc/sys/undelete.22
-rw-r--r--lib/libc/sys/unlink.22
-rw-r--r--lib/libc/sys/utimes.22
-rw-r--r--lib/libc/sys/vfork.22
-rw-r--r--lib/libc/sys/wait.28
-rw-r--r--lib/libc/sys/write.26
144 files changed, 246 insertions, 246 deletions
diff --git a/lib/libc/sys/_exit.2 b/lib/libc/sys/_exit.2
index efeb4e86a7ad..0793374a8f55 100644
--- a/lib/libc/sys/_exit.2
+++ b/lib/libc/sys/_exit.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft void
.Fn _exit "int status"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/accept.2 b/lib/libc/sys/accept.2
index 968f4cecbd7d..736d0681dfb2 100644
--- a/lib/libc/sys/accept.2
+++ b/lib/libc/sys/accept.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
+.In sys/types.h
+.In sys/socket.h
.Ft int
.Fn accept "int s" "struct sockaddr *addr" "socklen_t *addrlen"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/access.2 b/lib/libc/sys/access.2
index 23cc3c08a877..2460aec49b5a 100644
--- a/lib/libc/sys/access.2
+++ b/lib/libc/sys/access.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn access "const char *path" "int mode"
.Ft int
diff --git a/lib/libc/sys/acct.2 b/lib/libc/sys/acct.2
index ed41171cf729..ab219bd883b2 100644
--- a/lib/libc/sys/acct.2
+++ b/lib/libc/sys/acct.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn acct "const char *file"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/adjtime.2 b/lib/libc/sys/adjtime.2
index f6a005171d50..2301aafd7168 100644
--- a/lib/libc/sys/adjtime.2
+++ b/lib/libc/sys/adjtime.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/time.h>
+.In sys/time.h
.Ft int
.Fn adjtime "const struct timeval *delta" "struct timeval *olddelta"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/aio_cancel.2 b/lib/libc/sys/aio_cancel.2
index 320e36f4c87c..832356b545a1 100644
--- a/lib/libc/sys/aio_cancel.2
+++ b/lib/libc/sys/aio_cancel.2
@@ -33,7 +33,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <aio.h>
+.In aio.h
.Ft int
.Fn aio_cancel "int fildes" "struct aiocb * iocb"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/aio_error.2 b/lib/libc/sys/aio_error.2
index af5cade2c85b..434775811ee2 100644
--- a/lib/libc/sys/aio_error.2
+++ b/lib/libc/sys/aio_error.2
@@ -33,7 +33,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <aio.h>
+.In aio.h
.Ft int
.Fn aio_error "const struct aiocb *iocb"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/aio_read.2 b/lib/libc/sys/aio_read.2
index 839805e6116e..b57de3eaef25 100644
--- a/lib/libc/sys/aio_read.2
+++ b/lib/libc/sys/aio_read.2
@@ -33,8 +33,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <time.h>
-.Fd #include <aio.h>
+.In time.h
+.In aio.h
.Ft int
.Fn aio_read "struct aiocb *iocb"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/aio_return.2 b/lib/libc/sys/aio_return.2
index 64bc8c9d6dc5..2d50143b9e2a 100644
--- a/lib/libc/sys/aio_return.2
+++ b/lib/libc/sys/aio_return.2
@@ -33,7 +33,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <aio.h>
+.In aio.h
.Ft int
.Fn aio_return "struct aiocb *iocb"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/aio_suspend.2 b/lib/libc/sys/aio_suspend.2
index d59cb8d65e63..d208d9151cf1 100644
--- a/lib/libc/sys/aio_suspend.2
+++ b/lib/libc/sys/aio_suspend.2
@@ -33,7 +33,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <aio.h>
+.In aio.h
.Ft int
.Fn aio_suspend "const struct aiocb * const iocbs[]" "int niocb" "const struct timespec * timeout"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/aio_waitcomplete.2 b/lib/libc/sys/aio_waitcomplete.2
index c554673a3e2c..de01283451a8 100644
--- a/lib/libc/sys/aio_waitcomplete.2
+++ b/lib/libc/sys/aio_waitcomplete.2
@@ -33,7 +33,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <aio.h>
+.In aio.h
.Ft int
.Fn aio_waitcomplete "struct aiocb **iocbp" "struct timespec *timeout"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/aio_write.2 b/lib/libc/sys/aio_write.2
index 821572061524..d7b57c6a6343 100644
--- a/lib/libc/sys/aio_write.2
+++ b/lib/libc/sys/aio_write.2
@@ -33,7 +33,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <aio.h>
+.In aio.h
.Ft int
.Fn aio_write "struct aiocb *iocb"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/bind.2 b/lib/libc/sys/bind.2
index 7024168d74f1..3f9d70776a01 100644
--- a/lib/libc/sys/bind.2
+++ b/lib/libc/sys/bind.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
+.In sys/types.h
+.In sys/socket.h
.Ft int
.Fn bind "int s" "const struct sockaddr *addr" "socklen_t addrlen"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/brk.2 b/lib/libc/sys/brk.2
index c215be962bf3..ac3a8d80bd57 100644
--- a/lib/libc/sys/brk.2
+++ b/lib/libc/sys/brk.2
@@ -42,7 +42,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft char *
.Fn brk "const char *addr"
.Ft char *
diff --git a/lib/libc/sys/chdir.2 b/lib/libc/sys/chdir.2
index 864878985a4b..13da8b3a60f4 100644
--- a/lib/libc/sys/chdir.2
+++ b/lib/libc/sys/chdir.2
@@ -42,7 +42,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn chdir "const char *path"
.Ft int
diff --git a/lib/libc/sys/chflags.2 b/lib/libc/sys/chflags.2
index 05205c625b46..dae7efd45a8d 100644
--- a/lib/libc/sys/chflags.2
+++ b/lib/libc/sys/chflags.2
@@ -42,8 +42,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/stat.h>
-.Fd #include <unistd.h>
+.In sys/stat.h
+.In unistd.h
.Ft int
.Fn chflags "const char *path" "u_long flags"
.Ft int
diff --git a/lib/libc/sys/chmod.2 b/lib/libc/sys/chmod.2
index 5a165ca709af..91219541dca6 100644
--- a/lib/libc/sys/chmod.2
+++ b/lib/libc/sys/chmod.2
@@ -43,7 +43,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/stat.h>
+.In sys/stat.h
.Ft int
.Fn chmod "const char *path" "mode_t mode"
.Ft int
diff --git a/lib/libc/sys/chown.2 b/lib/libc/sys/chown.2
index 65fd888f9228..dc1d067ffe9f 100644
--- a/lib/libc/sys/chown.2
+++ b/lib/libc/sys/chown.2
@@ -43,7 +43,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn chown "const char *path" "uid_t owner" "gid_t group"
.Ft int
diff --git a/lib/libc/sys/chroot.2 b/lib/libc/sys/chroot.2
index eeb9def46521..c46f16e15a67 100644
--- a/lib/libc/sys/chroot.2
+++ b/lib/libc/sys/chroot.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn chroot "const char *dirname"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/clock_gettime.2 b/lib/libc/sys/clock_gettime.2
index 633f3f9a64bc..31f6a4eda490 100644
--- a/lib/libc/sys/clock_gettime.2
+++ b/lib/libc/sys/clock_gettime.2
@@ -43,7 +43,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/time.h>
+.In sys/time.h
.Ft int
.Fn clock_gettime "clockid_t clock_id" "struct timespec *tp"
.Ft int
diff --git a/lib/libc/sys/close.2 b/lib/libc/sys/close.2
index 6a6fb0f53f63..9192ae15be12 100644
--- a/lib/libc/sys/close.2
+++ b/lib/libc/sys/close.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn close "int d"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/connect.2 b/lib/libc/sys/connect.2
index eb1c6182cfb8..975b6c67b667 100644
--- a/lib/libc/sys/connect.2
+++ b/lib/libc/sys/connect.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
+.In sys/types.h
+.In sys/socket.h
.Ft int
.Fn connect "int s" "const struct sockaddr *name" "socklen_t namelen"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/dup.2 b/lib/libc/sys/dup.2
index 9c2a7b1b462b..d9a7a3f53413 100644
--- a/lib/libc/sys/dup.2
+++ b/lib/libc/sys/dup.2
@@ -42,7 +42,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn dup "int oldd"
.Ft int
diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2
index 9086232b44e0..89c0ecb3085f 100644
--- a/lib/libc/sys/execve.2
+++ b/lib/libc/sys/execve.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn execve "const char *path" "char *const argv[]" "char *const envp[]"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/extattr_get_file.2 b/lib/libc/sys/extattr_get_file.2
index bb4400459f82..45b767d2c093 100644
--- a/lib/libc/sys/extattr_get_file.2
+++ b/lib/libc/sys/extattr_get_file.2
@@ -39,8 +39,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/extattr.h>
-.Fd #include <sys/uio.h>
+.In sys/extattr.h
+.In sys/uio.h
.Ft int
.Fn extattr_get_fd "int fd" "int attrnamespace" "const char *attrname" "struct iovec *iovp" "unsigned iovcnt"
.Ft int
diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2
index 5e65f2c7a464..f416903ed05a 100644
--- a/lib/libc/sys/fcntl.2
+++ b/lib/libc/sys/fcntl.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <fcntl.h>
+.In fcntl.h
.Ft int
.Fn fcntl "int fd" "int cmd" "..."
.Sh DESCRIPTION
diff --git a/lib/libc/sys/fhopen.2 b/lib/libc/sys/fhopen.2
index 270be1cd3ea1..bf66a08c5311 100644
--- a/lib/libc/sys/fhopen.2
+++ b/lib/libc/sys/fhopen.2
@@ -43,9 +43,9 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/mount.h>
-.Fd #include <sys/stat.h>
+.In sys/param.h
+.In sys/mount.h
+.In sys/stat.h
.Ft int
.Fn fhopen "const fhandle_t *fhp" "int flags"
.Ft int
diff --git a/lib/libc/sys/flock.2 b/lib/libc/sys/flock.2
index d890bedadcc9..33dcec5fff1e 100644
--- a/lib/libc/sys/flock.2
+++ b/lib/libc/sys/flock.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/file.h>
+.In sys/file.h
.Fd "#define LOCK_SH 0x01 /* shared file lock */"
.Fd "#define LOCK_EX 0x02 /* exclusive file lock */"
.Fd "#define LOCK_NB 0x04 /* don't block when locking */"
diff --git a/lib/libc/sys/fork.2 b/lib/libc/sys/fork.2
index 047e5a98ff15..83f14716d1a1 100644
--- a/lib/libc/sys/fork.2
+++ b/lib/libc/sys/fork.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <unistd.h>
+.In sys/types.h
+.In unistd.h
.Ft pid_t
.Fn fork void
.Sh DESCRIPTION
diff --git a/lib/libc/sys/fsync.2 b/lib/libc/sys/fsync.2
index 33a0167c06b4..ac28aef172bc 100644
--- a/lib/libc/sys/fsync.2
+++ b/lib/libc/sys/fsync.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn fsync "int fd"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/getdirentries.2 b/lib/libc/sys/getdirentries.2
index 48d2e0e180c4..769ce32528d3 100644
--- a/lib/libc/sys/getdirentries.2
+++ b/lib/libc/sys/getdirentries.2
@@ -42,8 +42,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <dirent.h>
+.In sys/types.h
+.In dirent.h
.Ft int
.Fn getdirentries "int fd" "char *buf" "int nbytes" "long *basep"
.Ft int
diff --git a/lib/libc/sys/getdtablesize.2 b/lib/libc/sys/getdtablesize.2
index 28344ac430fd..a5ed3dc2031a 100644
--- a/lib/libc/sys/getdtablesize.2
+++ b/lib/libc/sys/getdtablesize.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn getdtablesize void
.Sh DESCRIPTION
diff --git a/lib/libc/sys/getfh.2 b/lib/libc/sys/getfh.2
index 422c1f6fb814..fcaff6cf857b 100644
--- a/lib/libc/sys/getfh.2
+++ b/lib/libc/sys/getfh.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/mount.h>
+.In sys/param.h
+.In sys/mount.h
.Ft int
.Fn getfh "const char *path" "fhandle_t *fhp"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/getfsstat.2 b/lib/libc/sys/getfsstat.2
index bec4f1479645..8d4d545e7525 100644
--- a/lib/libc/sys/getfsstat.2
+++ b/lib/libc/sys/getfsstat.2
@@ -41,9 +41,9 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/ucred.h>
-.Fd #include <sys/mount.h>
+.In sys/param.h
+.In sys/ucred.h
+.In sys/mount.h
.Ft int
.Fn getfsstat "struct statfs *buf" "long bufsize" "int flags"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/getgid.2 b/lib/libc/sys/getgid.2
index 39215e19a225..3bc8658472c2 100644
--- a/lib/libc/sys/getgid.2
+++ b/lib/libc/sys/getgid.2
@@ -42,8 +42,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <unistd.h>
+.In sys/types.h
+.In unistd.h
.Ft gid_t
.Fn getgid void
.Ft gid_t
diff --git a/lib/libc/sys/getgroups.2 b/lib/libc/sys/getgroups.2
index 7b0789d90fcf..3538b38350c9 100644
--- a/lib/libc/sys/getgroups.2
+++ b/lib/libc/sys/getgroups.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <unistd.h>
+.In sys/types.h
+.In unistd.h
.Ft int
.Fn getgroups "int gidsetlen" "gid_t *gidset"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/getitimer.2 b/lib/libc/sys/getitimer.2
index e99e9a863b83..5e3eda7e7c81 100644
--- a/lib/libc/sys/getitimer.2
+++ b/lib/libc/sys/getitimer.2
@@ -42,7 +42,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/time.h>
+.In sys/time.h
.Fd "#define ITIMER_REAL 0"
.Fd "#define ITIMER_VIRTUAL 1"
.Fd "#define ITIMER_PROF 2"
diff --git a/lib/libc/sys/getlogin.2 b/lib/libc/sys/getlogin.2
index 07e54f65a413..04a32a673ccb 100644
--- a/lib/libc/sys/getlogin.2
+++ b/lib/libc/sys/getlogin.2
@@ -43,10 +43,10 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft char *
.Fn getlogin void
-.Fd #include <sys/param.h>
+.In sys/param.h
.Ft int
.Fn getlogin_r "char *name" "int len"
.Ft int
diff --git a/lib/libc/sys/getpeername.2 b/lib/libc/sys/getpeername.2
index 28d7a92e18cd..8aa56254f881 100644
--- a/lib/libc/sys/getpeername.2
+++ b/lib/libc/sys/getpeername.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
+.In sys/types.h
+.In sys/socket.h
.Ft int
.Fn getpeername "int s" "struct sockaddr *name" "socklen_t *namelen"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/getpgrp.2 b/lib/libc/sys/getpgrp.2
index 30209ac663c7..a35f1ed16c2c 100644
--- a/lib/libc/sys/getpgrp.2
+++ b/lib/libc/sys/getpgrp.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft pid_t
.Fn getpgrp void
.Ft pid_t
diff --git a/lib/libc/sys/getpid.2 b/lib/libc/sys/getpid.2
index 656d7e71b606..4c9889c1930d 100644
--- a/lib/libc/sys/getpid.2
+++ b/lib/libc/sys/getpid.2
@@ -42,8 +42,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <unistd.h>
+.In sys/types.h
+.In unistd.h
.Ft pid_t
.Fn getpid void
.Ft pid_t
diff --git a/lib/libc/sys/getpriority.2 b/lib/libc/sys/getpriority.2
index d156702110fb..ef45d13bbc4e 100644
--- a/lib/libc/sys/getpriority.2
+++ b/lib/libc/sys/getpriority.2
@@ -42,8 +42,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/time.h>
-.Fd #include <sys/resource.h>
+.In sys/time.h
+.In sys/resource.h
.Ft int
.Fn getpriority "int which" "int who"
.Ft int
diff --git a/lib/libc/sys/getrlimit.2 b/lib/libc/sys/getrlimit.2
index d573fbc25b6e..5b5c1490347b 100644
--- a/lib/libc/sys/getrlimit.2
+++ b/lib/libc/sys/getrlimit.2
@@ -42,9 +42,9 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/time.h>
-.Fd #include <sys/resource.h>
+.In sys/types.h
+.In sys/time.h
+.In sys/resource.h
.Ft int
.Fn getrlimit "int resource" "struct rlimit *rlp"
.Ft int
diff --git a/lib/libc/sys/getrusage.2 b/lib/libc/sys/getrusage.2
index 80e119791297..599bebc97993 100644
--- a/lib/libc/sys/getrusage.2
+++ b/lib/libc/sys/getrusage.2
@@ -41,9 +41,9 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/time.h>
-.Fd #include <sys/resource.h>
+.In sys/types.h
+.In sys/time.h
+.In sys/resource.h
.Fd "#define RUSAGE_SELF 0"
.Fd "#define RUSAGE_CHILDREN -1"
.Ft int
diff --git a/lib/libc/sys/getsid.2 b/lib/libc/sys/getsid.2
index ea91e62c2249..28002485bc44 100644
--- a/lib/libc/sys/getsid.2
+++ b/lib/libc/sys/getsid.2
@@ -32,7 +32,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft pid_t
.Fn getsid "pid_t pid"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/getsockname.2 b/lib/libc/sys/getsockname.2
index e5b2c3c5048c..5d0890d7989f 100644
--- a/lib/libc/sys/getsockname.2
+++ b/lib/libc/sys/getsockname.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
+.In sys/types.h
+.In sys/socket.h
.Ft int
.Fn getsockname "int s" "struct sockaddr *name" "socklen_t *namelen"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2
index c61691e2038b..f570085f5f19 100644
--- a/lib/libc/sys/getsockopt.2
+++ b/lib/libc/sys/getsockopt.2
@@ -42,8 +42,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
+.In sys/types.h
+.In sys/socket.h
.Ft int
.Fn getsockopt "int s" "int level" "int optname" "void *optval" "socklen_t *optlen"
.Ft int
diff --git a/lib/libc/sys/gettimeofday.2 b/lib/libc/sys/gettimeofday.2
index a0cb09687b71..2a486d162e4a 100644
--- a/lib/libc/sys/gettimeofday.2
+++ b/lib/libc/sys/gettimeofday.2
@@ -42,7 +42,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/time.h>
+.In sys/time.h
.Ft int
.Fn gettimeofday "struct timeval *tp" "struct timezone *tzp"
.Ft int
diff --git a/lib/libc/sys/getuid.2 b/lib/libc/sys/getuid.2
index 95873bf23b33..e352adf48adf 100644
--- a/lib/libc/sys/getuid.2
+++ b/lib/libc/sys/getuid.2
@@ -42,8 +42,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
-.Fd #include <sys/types.h>
+.In unistd.h
+.In sys/types.h
.Ft uid_t
.Fn getuid void
.Ft uid_t
diff --git a/lib/libc/sys/intro.2 b/lib/libc/sys/intro.2
index c4f3c4bc4416..978033944267 100644
--- a/lib/libc/sys/intro.2
+++ b/lib/libc/sys/intro.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <errno.h>
+.In errno.h
.Sh DESCRIPTION
This section provides an overview of the system calls,
their error returns, and other common definitions and concepts.
diff --git a/lib/libc/sys/ioctl.2 b/lib/libc/sys/ioctl.2
index 15c12e09f0d3..c16e12ef7368 100644
--- a/lib/libc/sys/ioctl.2
+++ b/lib/libc/sys/ioctl.2
@@ -42,7 +42,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/ioctl.h>
+.In sys/ioctl.h
.Ft int
.Fn ioctl "int d" "unsigned long request" ...
.Sh DESCRIPTION
diff --git a/lib/libc/sys/issetugid.2 b/lib/libc/sys/issetugid.2
index 2e1ff585e06d..10aa6dfd3a89 100644
--- a/lib/libc/sys/issetugid.2
+++ b/lib/libc/sys/issetugid.2
@@ -42,7 +42,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn issetugid void
.Sh DESCRIPTION
diff --git a/lib/libc/sys/jail.2 b/lib/libc/sys/jail.2
index 15ff2875587a..eae2f87b4506 100644
--- a/lib/libc/sys/jail.2
+++ b/lib/libc/sys/jail.2
@@ -17,8 +17,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/jail.h>
+.In sys/types.h
+.In sys/jail.h
.Ft int
.Fn jail "struct jail *jail"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/kill.2 b/lib/libc/sys/kill.2
index 8180762a6fac..a04f46f8d903 100644
--- a/lib/libc/sys/kill.2
+++ b/lib/libc/sys/kill.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <signal.h>
+.In sys/types.h
+.In signal.h
.Ft int
.Fn kill "pid_t pid" "int sig"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/kldfind.2 b/lib/libc/sys/kldfind.2
index 4cfc6a80c60c..b7be17a7e45f 100644
--- a/lib/libc/sys/kldfind.2
+++ b/lib/libc/sys/kldfind.2
@@ -34,8 +34,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/linker.h>
+.In sys/param.h
+.In sys/linker.h
.Ft int
.Fn kldfind "const char *file"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/kldfirstmod.2 b/lib/libc/sys/kldfirstmod.2
index adaa6e5ed342..8b51be01efe8 100644
--- a/lib/libc/sys/kldfirstmod.2
+++ b/lib/libc/sys/kldfirstmod.2
@@ -34,8 +34,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/linker.h>
+.In sys/param.h
+.In sys/linker.h
.Ft int
.Fn kldfirstmod "int fileid"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/kldload.2 b/lib/libc/sys/kldload.2
index f5c5ef8092bf..e289a5ed4cd9 100644
--- a/lib/libc/sys/kldload.2
+++ b/lib/libc/sys/kldload.2
@@ -34,8 +34,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/linker.h>
+.In sys/param.h
+.In sys/linker.h
.Ft int
.Fn kldload "const char *file"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/kldnext.2 b/lib/libc/sys/kldnext.2
index 3382c6800f99..bf56ad000918 100644
--- a/lib/libc/sys/kldnext.2
+++ b/lib/libc/sys/kldnext.2
@@ -34,8 +34,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/linker.h>
+.In sys/param.h
+.In sys/linker.h
.Ft int
.Fn kldnext "int fileid"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/kldstat.2 b/lib/libc/sys/kldstat.2
index 5b3fe699a8fc..99b06f7a6eb9 100644
--- a/lib/libc/sys/kldstat.2
+++ b/lib/libc/sys/kldstat.2
@@ -34,8 +34,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/linker.h>
+.In sys/param.h
+.In sys/linker.h
.Ft int
.Fn kldstat "int fileid" "struct kld_file_stat *stat"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/kldunload.2 b/lib/libc/sys/kldunload.2
index c2fbf4b7c6e7..f14d5e8a27f0 100644
--- a/lib/libc/sys/kldunload.2
+++ b/lib/libc/sys/kldunload.2
@@ -34,8 +34,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/linker.h>
+.In sys/param.h
+.In sys/linker.h
.Ft int
.Fn kldunload "int fileid"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2
index 72985119b6bc..1227215b8205 100644
--- a/lib/libc/sys/kqueue.2
+++ b/lib/libc/sys/kqueue.2
@@ -34,9 +34,9 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/event.h>
-.Fd #include <sys/time.h>
+.In sys/types.h
+.In sys/event.h
+.In sys/time.h
.Ft int
.Fn kqueue "void"
.Ft int
diff --git a/lib/libc/sys/ktrace.2 b/lib/libc/sys/ktrace.2
index e903ff273b19..6060e3f6bfd4 100644
--- a/lib/libc/sys/ktrace.2
+++ b/lib/libc/sys/ktrace.2
@@ -41,10 +41,10 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/time.h>
-.Fd #include <sys/uio.h>
-.Fd #include <sys/ktrace.h>
+.In sys/param.h
+.In sys/time.h
+.In sys/uio.h
+.In sys/ktrace.h
.Ft int
.Fn ktrace "const char *tracefile" "int ops" "int trpoints" "int pid"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/link.2 b/lib/libc/sys/link.2
index 9c126c94bb06..d9d9fa9ee05e 100644
--- a/lib/libc/sys/link.2
+++ b/lib/libc/sys/link.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn link "const char *name1" "const char *name2"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/listen.2 b/lib/libc/sys/listen.2
index a9ab96bc6976..1a976587a7a0 100644
--- a/lib/libc/sys/listen.2
+++ b/lib/libc/sys/listen.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
+.In sys/types.h
+.In sys/socket.h
.Ft int
.Fn listen "int s" "int backlog"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/lseek.2 b/lib/libc/sys/lseek.2
index 4f3f4302f9f8..988b52bef3b6 100644
--- a/lib/libc/sys/lseek.2
+++ b/lib/libc/sys/lseek.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft off_t
.Fn lseek "int fildes" "off_t offset" "int whence"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/madvise.2 b/lib/libc/sys/madvise.2
index 5ddfa96fad78..71b464c292ab 100644
--- a/lib/libc/sys/madvise.2
+++ b/lib/libc/sys/madvise.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/mman.h>
+.In sys/types.h
+.In sys/mman.h
.Ft int
.Fn madvise "void *addr" "size_t len" "int behav"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/mincore.2 b/lib/libc/sys/mincore.2
index 1bc309f1af9b..d39e75284f35 100644
--- a/lib/libc/sys/mincore.2
+++ b/lib/libc/sys/mincore.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/mman.h>
+.In sys/types.h
+.In sys/mman.h
.Ft int
.Fn mincore "const void *addr" "size_t len" "char *vec"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/minherit.2 b/lib/libc/sys/minherit.2
index aadb50c55d2e..fd9bbeef30d0 100644
--- a/lib/libc/sys/minherit.2
+++ b/lib/libc/sys/minherit.2
@@ -42,8 +42,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/mman.h>
+.In sys/types.h
+.In sys/mman.h
.Ft int
.Fn minherit "void *addr" "size_t len" "int inherit"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/mkdir.2 b/lib/libc/sys/mkdir.2
index 25fad1ebef34..cc5cd8ce818a 100644
--- a/lib/libc/sys/mkdir.2
+++ b/lib/libc/sys/mkdir.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/stat.h>
+.In sys/types.h
+.In sys/stat.h
.Ft int
.Fn mkdir "const char *path" "mode_t mode"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/mkfifo.2 b/lib/libc/sys/mkfifo.2
index c711690083a6..b85c021afb3b 100644
--- a/lib/libc/sys/mkfifo.2
+++ b/lib/libc/sys/mkfifo.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/stat.h>
+.In sys/types.h
+.In sys/stat.h
.Ft int
.Fn mkfifo "const char *path" "mode_t mode"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/mknod.2 b/lib/libc/sys/mknod.2
index a81c1aaad9e5..36f1f5b8b8fe 100644
--- a/lib/libc/sys/mknod.2
+++ b/lib/libc/sys/mknod.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn mknod "const char *path" "mode_t mode" "dev_t dev"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/mlock.2 b/lib/libc/sys/mlock.2
index fd92aa2830c6..8379d8106ee8 100644
--- a/lib/libc/sys/mlock.2
+++ b/lib/libc/sys/mlock.2
@@ -42,8 +42,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/mman.h>
+.In sys/types.h
+.In sys/mman.h
.Ft int
.Fn mlock "const void *addr" "size_t len"
.Ft int
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2
index 7e0affc029a6..29a097546580 100644
--- a/lib/libc/sys/mmap.2
+++ b/lib/libc/sys/mmap.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/mman.h>
+.In sys/types.h
+.In sys/mman.h
.Ft void *
.Fn mmap "void *addr" "size_t len" "int prot" "int flags" "int fd" "off_t offset"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/modfind.2 b/lib/libc/sys/modfind.2
index 401eb601f81e..35fa7c902320 100644
--- a/lib/libc/sys/modfind.2
+++ b/lib/libc/sys/modfind.2
@@ -34,8 +34,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/module.h>
+.In sys/param.h
+.In sys/module.h
.Ft int
.Fn modfind "const char *modname"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/modnext.2 b/lib/libc/sys/modnext.2
index ed6398e27fcc..dc578adbb146 100644
--- a/lib/libc/sys/modnext.2
+++ b/lib/libc/sys/modnext.2
@@ -34,8 +34,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/module.h>
+.In sys/param.h
+.In sys/module.h
.Ft int
.Fn modnext "int modid"
.Ft int
diff --git a/lib/libc/sys/modstat.2 b/lib/libc/sys/modstat.2
index 9cadabd676f3..d19f46978205 100644
--- a/lib/libc/sys/modstat.2
+++ b/lib/libc/sys/modstat.2
@@ -34,8 +34,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/module.h>
+.In sys/param.h
+.In sys/module.h
.Ft int
.Fn modstat "int modid" "struct module_stat *stat"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/mount.2 b/lib/libc/sys/mount.2
index d8f8decc295c..dc1b45b366bd 100644
--- a/lib/libc/sys/mount.2
+++ b/lib/libc/sys/mount.2
@@ -42,8 +42,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/mount.h>
+.In sys/param.h
+.In sys/mount.h
.Ft int
.Fn mount "const char *type" "const char *dir" "int flags" "void *data"
.Ft int
diff --git a/lib/libc/sys/mprotect.2 b/lib/libc/sys/mprotect.2
index fe8df3039d49..369dd595ceff 100644
--- a/lib/libc/sys/mprotect.2
+++ b/lib/libc/sys/mprotect.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/mman.h>
+.In sys/types.h
+.In sys/mman.h
.Ft int
.Fn mprotect "const void *addr" "size_t len" "int prot"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/msync.2 b/lib/libc/sys/msync.2
index 9adc3acd919a..29c4613bbcfb 100644
--- a/lib/libc/sys/msync.2
+++ b/lib/libc/sys/msync.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/mman.h>
+.In sys/types.h
+.In sys/mman.h
.Ft int
.Fn msync "void *addr" "size_t len" "int flags"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/munmap.2 b/lib/libc/sys/munmap.2
index 164473002934..33f3724a5c4d 100644
--- a/lib/libc/sys/munmap.2
+++ b/lib/libc/sys/munmap.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/mman.h>
+.In sys/types.h
+.In sys/mman.h
.Ft int
.Fn munmap "void *addr" "size_t len"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/nanosleep.2 b/lib/libc/sys/nanosleep.2
index b69ef331503c..5a39a4458646 100644
--- a/lib/libc/sys/nanosleep.2
+++ b/lib/libc/sys/nanosleep.2
@@ -44,7 +44,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <time.h>
+.In time.h
.Ft int
.Fn nanosleep "const struct timespec *rqtp" "struct timespec *rmtp"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/nfssvc.2 b/lib/libc/sys/nfssvc.2
index d28edc13d3e5..1c240406e474 100644
--- a/lib/libc/sys/nfssvc.2
+++ b/lib/libc/sys/nfssvc.2
@@ -41,12 +41,12 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/mount.h>
-.Fd #include <sys/time.h>
-.Fd #include <nfs/rpcv2.h>
-.Fd #include <nfs/nfs.h>
-.Fd #include <unistd.h>
+.In sys/param.h
+.In sys/mount.h
+.In sys/time.h
+.In nfs/rpcv2.h
+.In nfs/nfs.h
+.In unistd.h
.Ft int
.Fn nfssvc "int flags" "void *argstructp"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2
index 5e4aeeba4ccb..874ce7456dc3 100644
--- a/lib/libc/sys/open.2
+++ b/lib/libc/sys/open.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <fcntl.h>
+.In fcntl.h
.Ft int
.Fn open "const char *path" "int flags" "..."
.Sh DESCRIPTION
diff --git a/lib/libc/sys/pathconf.2 b/lib/libc/sys/pathconf.2
index 90318c02b595..f560af93c98f 100644
--- a/lib/libc/sys/pathconf.2
+++ b/lib/libc/sys/pathconf.2
@@ -42,7 +42,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft long
.Fn pathconf "const char *path" "int name"
.Ft long
diff --git a/lib/libc/sys/pipe.2 b/lib/libc/sys/pipe.2
index 52f0f98bece8..8372978580c8 100644
--- a/lib/libc/sys/pipe.2
+++ b/lib/libc/sys/pipe.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn pipe "int *fildes"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/poll.2 b/lib/libc/sys/poll.2
index d594bbce6a72..04a91df4fe3a 100644
--- a/lib/libc/sys/poll.2
+++ b/lib/libc/sys/poll.2
@@ -37,8 +37,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <poll.h>
+.In sys/types.h
+.In poll.h
.Ft int
.Fn poll "struct pollfd *fds" "unsigned int nfds" "int timeout"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/profil.2 b/lib/libc/sys/profil.2
index 14b2bd52edd7..7437ef77c1b3 100644
--- a/lib/libc/sys/profil.2
+++ b/lib/libc/sys/profil.2
@@ -44,7 +44,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn profil "char *samples" "size_t size" "vm_offset_t offset" "int scale"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2
index a31d14612764..90ce6baaec64 100644
--- a/lib/libc/sys/ptrace.2
+++ b/lib/libc/sys/ptrace.2
@@ -11,8 +11,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/ptrace.h>
+.In sys/types.h
+.In sys/ptrace.h
.Ft int
.Fn ptrace "int request" "pid_t pid" "caddr_t addr" "int data"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/quotactl.2 b/lib/libc/sys/quotactl.2
index 9aa5a481efe6..5730dd1de835 100644
--- a/lib/libc/sys/quotactl.2
+++ b/lib/libc/sys/quotactl.2
@@ -44,8 +44,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <ufs/ufs/quota.h>
+.In sys/types.h
+.In ufs/ufs/quota.h
.Ft int
.Fn quotactl "const char *path" "int cmd" "int id" "void *addr"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2
index 9c38809d21a9..e4f330aaeccb 100644
--- a/lib/libc/sys/read.2
+++ b/lib/libc/sys/read.2
@@ -43,9 +43,9 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/uio.h>
-.Fd #include <unistd.h>
+.In sys/types.h
+.In sys/uio.h
+.In unistd.h
.Ft ssize_t
.Fn read "int d" "void *buf" "size_t nbytes"
.Ft ssize_t
diff --git a/lib/libc/sys/readlink.2 b/lib/libc/sys/readlink.2
index 4708594b4289..fd97e1d9ae50 100644
--- a/lib/libc/sys/readlink.2
+++ b/lib/libc/sys/readlink.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn readlink "const char *path" "char *buf" "int bufsiz"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/reboot.2 b/lib/libc/sys/reboot.2
index 8f247b2c30e3..8e3a19ad71c5 100644
--- a/lib/libc/sys/reboot.2
+++ b/lib/libc/sys/reboot.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
-.Fd #include <sys/reboot.h>
+.In unistd.h
+.In sys/reboot.h
.Ft int
.Fn reboot "int howto"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/recv.2 b/lib/libc/sys/recv.2
index 7a49e41d438d..3acd69461767 100644
--- a/lib/libc/sys/recv.2
+++ b/lib/libc/sys/recv.2
@@ -43,8 +43,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
+.In sys/types.h
+.In sys/socket.h
.Ft ssize_t
.Fn recv "int s" "void *buf" "size_t len" "int flags"
.Ft ssize_t
diff --git a/lib/libc/sys/rename.2 b/lib/libc/sys/rename.2
index 8d5523a1c00a..2ef23f7bf9b3 100644
--- a/lib/libc/sys/rename.2
+++ b/lib/libc/sys/rename.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <stdio.h>
+.In stdio.h
.Ft int
.Fn rename "const char *from" "const char *to"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/revoke.2 b/lib/libc/sys/revoke.2
index 8b6b01d58489..687a3171adac 100644
--- a/lib/libc/sys/revoke.2
+++ b/lib/libc/sys/revoke.2
@@ -44,7 +44,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn revoke "const char *path"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/rfork.2 b/lib/libc/sys/rfork.2
index 80d7f76d3da7..a037a6e9feba 100644
--- a/lib/libc/sys/rfork.2
+++ b/lib/libc/sys/rfork.2
@@ -14,7 +14,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn rfork "int flags"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/rmdir.2 b/lib/libc/sys/rmdir.2
index 373b185800c9..d6e052fd77fb 100644
--- a/lib/libc/sys/rmdir.2
+++ b/lib/libc/sys/rmdir.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn rmdir "const char *path"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/rtprio.2 b/lib/libc/sys/rtprio.2
index f5175adb16b8..47e0af8b0f25 100644
--- a/lib/libc/sys/rtprio.2
+++ b/lib/libc/sys/rtprio.2
@@ -38,8 +38,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/rtprio.h>
+.In sys/types.h
+.In sys/rtprio.h
.Ft int
.Fn rtprio "int function" "pid_t pid" "struct rtprio *rtp"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/sched_get_priority_max.2 b/lib/libc/sys/sched_get_priority_max.2
index 0f1c8d83573c..eba278de490e 100644
--- a/lib/libc/sys/sched_get_priority_max.2
+++ b/lib/libc/sys/sched_get_priority_max.2
@@ -34,7 +34,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sched.h>
+.In sched.h
.Ft int
.Fn sched_get_priority_max "int policy"
.Ft int
diff --git a/lib/libc/sys/sched_setparam.2 b/lib/libc/sys/sched_setparam.2
index ac9be7661548..136e70d03d29 100644
--- a/lib/libc/sys/sched_setparam.2
+++ b/lib/libc/sys/sched_setparam.2
@@ -33,7 +33,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sched.h>
+.In sched.h
.Ft int
.Fn sched_setparam "pid_t pid" "const struct sched_param *param"
.Ft int
diff --git a/lib/libc/sys/sched_setscheduler.2 b/lib/libc/sys/sched_setscheduler.2
index 556b9863c345..35c8627ac4ab 100644
--- a/lib/libc/sys/sched_setscheduler.2
+++ b/lib/libc/sys/sched_setscheduler.2
@@ -33,7 +33,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sched.h>
+.In sched.h
.Ft int
.Fn sched_setscheduler "pid_t pid" "int policy" "const struct sched_param *param"
.Ft int
diff --git a/lib/libc/sys/sched_yield.2 b/lib/libc/sys/sched_yield.2
index 2d8240cd8f53..3457a35af461 100644
--- a/lib/libc/sys/sched_yield.2
+++ b/lib/libc/sys/sched_yield.2
@@ -32,7 +32,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sched.h>
+.In sched.h
.Ft int
.Fn sched_yield void
.Sh DESCRIPTION
diff --git a/lib/libc/sys/select.2 b/lib/libc/sys/select.2
index d888bfb91bf3..b0affba71ada 100644
--- a/lib/libc/sys/select.2
+++ b/lib/libc/sys/select.2
@@ -41,9 +41,9 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/time.h>
-.Fd #include <unistd.h>
+.In sys/types.h
+.In sys/time.h
+.In unistd.h
.Ft int
.Fn select "int nfds" "fd_set *readfds" "fd_set *writefds" "fd_set *exceptfds" "struct timeval *timeout"
.Fn FD_SET fd &fdset
diff --git a/lib/libc/sys/semctl.2 b/lib/libc/sys/semctl.2
index 2b3df6888dc4..4e3765c6349b 100644
--- a/lib/libc/sys/semctl.2
+++ b/lib/libc/sys/semctl.2
@@ -34,9 +34,9 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/ipc.h>
-.Fd #include <sys/sem.h>
+.In sys/types.h
+.In sys/ipc.h
+.In sys/sem.h
.Ft int
.Fn semctl "int semid" "int semnum" "int cmd" ...
.Sh DESCRIPTION
diff --git a/lib/libc/sys/semget.2 b/lib/libc/sys/semget.2
index b35db9f2b158..b9fad0dc104a 100644
--- a/lib/libc/sys/semget.2
+++ b/lib/libc/sys/semget.2
@@ -34,9 +34,9 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/ipc.h>
-.Fd #include <sys/sem.h>
+.In sys/types.h
+.In sys/ipc.h
+.In sys/sem.h
.Ft int
.Fn semget "key_t key" "int nsems" "int flag"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/semop.2 b/lib/libc/sys/semop.2
index 7f18510d89c6..ac4e79c67b72 100644
--- a/lib/libc/sys/semop.2
+++ b/lib/libc/sys/semop.2
@@ -34,9 +34,9 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/ipc.h>
-.Fd #include <sys/sem.h>
+.In sys/types.h
+.In sys/ipc.h
+.In sys/sem.h
.Ft int
.Fn semop "int semid" "struct sembuf array[]" "unsigned nops"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/send.2 b/lib/libc/sys/send.2
index 8ec9476ee32d..3ef0694ad707 100644
--- a/lib/libc/sys/send.2
+++ b/lib/libc/sys/send.2
@@ -43,8 +43,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
+.In sys/types.h
+.In sys/socket.h
.Ft ssize_t
.Fn send "int s" "const void *msg" "size_t len" "int flags"
.Ft ssize_t
diff --git a/lib/libc/sys/sendfile.2 b/lib/libc/sys/sendfile.2
index 24296c2d041d..f073b067fccf 100644
--- a/lib/libc/sys/sendfile.2
+++ b/lib/libc/sys/sendfile.2
@@ -34,9 +34,9 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
-.Fd #include <sys/uio.h>
+.In sys/types.h
+.In sys/socket.h
+.In sys/uio.h
.Ft int
.Fn sendfile "int fd" "int s" "off_t offset" "size_t nbytes" "struct sf_hdtr *hdtr" "off_t *sbytes" "int flags"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/setgroups.2 b/lib/libc/sys/setgroups.2
index 3ba324dd3cf0..355298eb8ca8 100644
--- a/lib/libc/sys/setgroups.2
+++ b/lib/libc/sys/setgroups.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <unistd.h>
+.In sys/param.h
+.In unistd.h
.Ft int
.Fn setgroups "int ngroups" "const gid_t *gidset"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/setpgid.2 b/lib/libc/sys/setpgid.2
index 30667d67ee71..14186ead6f4e 100644
--- a/lib/libc/sys/setpgid.2
+++ b/lib/libc/sys/setpgid.2
@@ -42,7 +42,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn setpgid "pid_t pid" "pid_t pgrp"
.Ft int
diff --git a/lib/libc/sys/setregid.2 b/lib/libc/sys/setregid.2
index 196534933a0d..d23e48a0c667 100644
--- a/lib/libc/sys/setregid.2
+++ b/lib/libc/sys/setregid.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn setregid "gid_t rgid" "gid_t egid"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/setresuid.2 b/lib/libc/sys/setresuid.2
index d1a3b28613bb..ad948f0bcdc9 100644
--- a/lib/libc/sys/setresuid.2
+++ b/lib/libc/sys/setresuid.2
@@ -31,8 +31,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <unistd.h>
+.In sys/types.h
+.In unistd.h
.Ft int
.Fn getresgid "gid_t *rgid" "gid_t *egid" "gid_t *sgid"
.Ft int
diff --git a/lib/libc/sys/setreuid.2 b/lib/libc/sys/setreuid.2
index aa8765774c4e..fd5d636c6eed 100644
--- a/lib/libc/sys/setreuid.2
+++ b/lib/libc/sys/setreuid.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn setreuid "uid_t ruid" "uid_t euid"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/setsid.2 b/lib/libc/sys/setsid.2
index 0fffc8b361e7..0dc1cef04dce 100644
--- a/lib/libc/sys/setsid.2
+++ b/lib/libc/sys/setsid.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft pid_t
.Fn setsid void
.Sh DESCRIPTION
diff --git a/lib/libc/sys/setuid.2 b/lib/libc/sys/setuid.2
index 3403b108556d..5e959f920b41 100644
--- a/lib/libc/sys/setuid.2
+++ b/lib/libc/sys/setuid.2
@@ -44,8 +44,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <unistd.h>
+.In sys/types.h
+.In unistd.h
.Ft int
.Fn setuid "uid_t uid"
.Ft int
diff --git a/lib/libc/sys/shm_open.2 b/lib/libc/sys/shm_open.2
index 35ac103f609c..061913311a3f 100644
--- a/lib/libc/sys/shm_open.2
+++ b/lib/libc/sys/shm_open.2
@@ -39,8 +39,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/mman.h>
+.In sys/types.h
+.In sys/mman.h
.Ft int
.Fn shm_open "const char *path" "int flags" "mode_t mode"
.Ft int
diff --git a/lib/libc/sys/shmat.2 b/lib/libc/sys/shmat.2
index 63a08bcd9c67..429d0c8087ac 100644
--- a/lib/libc/sys/shmat.2
+++ b/lib/libc/sys/shmat.2
@@ -35,10 +35,10 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <machine/param.h>
-.Fd #include <sys/types.h>
-.Fd #include <sys/ipc.h>
-.Fd #include <sys/shm.h>
+.In machine/param.h
+.In sys/types.h
+.In sys/ipc.h
+.In sys/shm.h
.Ft void *
.Fn shmat "int shmid" "void *addr" "int flag"
.Ft int
diff --git a/lib/libc/sys/shmctl.2 b/lib/libc/sys/shmctl.2
index e3ab92cf296d..c321e5b911c1 100644
--- a/lib/libc/sys/shmctl.2
+++ b/lib/libc/sys/shmctl.2
@@ -34,10 +34,10 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <machine/param.h>
-.Fd #include <sys/types.h>
-.Fd #include <sys/ipc.h>
-.Fd #include <sys/shm.h>
+.In machine/param.h
+.In sys/types.h
+.In sys/ipc.h
+.In sys/shm.h
.Ft int
.Fn shmctl "int shmid" "int cmd" "struct shmid_ds *buf"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/shmget.2 b/lib/libc/sys/shmget.2
index b176c536b132..281cc66f6092 100644
--- a/lib/libc/sys/shmget.2
+++ b/lib/libc/sys/shmget.2
@@ -34,10 +34,10 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <machine/param.h>
-.Fd #include <sys/types.h>
-.Fd #include <sys/ipc.h>
-.Fd #include <sys/shm.h>
+.In machine/param.h
+.In sys/types.h
+.In sys/ipc.h
+.In sys/shm.h
.Ft int
.Fn shmget "key_t key" "int size" "int flag"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/shutdown.2 b/lib/libc/sys/shutdown.2
index 5cef2e53042d..ed61ecc3ea1b 100644
--- a/lib/libc/sys/shutdown.2
+++ b/lib/libc/sys/shutdown.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
+.In sys/types.h
+.In sys/socket.h
.Ft int
.Fn shutdown "int s" "int how"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2
index 1f9f9505a2b0..187dd01e3f2a 100644
--- a/lib/libc/sys/sigaction.2
+++ b/lib/libc/sys/sigaction.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <signal.h>
+.In signal.h
.Bd -literal
struct sigaction {
union {
diff --git a/lib/libc/sys/sigaltstack.2 b/lib/libc/sys/sigaltstack.2
index e39b8930636b..600e16d01d2a 100644
--- a/lib/libc/sys/sigaltstack.2
+++ b/lib/libc/sys/sigaltstack.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <signal.h>
+.In signal.h
.Bd -literal
struct sigaltstack {
char *ss_sp;
diff --git a/lib/libc/sys/sigpending.2 b/lib/libc/sys/sigpending.2
index 8ab927bb2dc1..e6635d39debb 100644
--- a/lib/libc/sys/sigpending.2
+++ b/lib/libc/sys/sigpending.2
@@ -44,7 +44,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <signal.h>
+.In signal.h
.Ft int
.Fn sigpending "sigset_t *set"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/sigprocmask.2 b/lib/libc/sys/sigprocmask.2
index a7bf788883a0..62b3e453251b 100644
--- a/lib/libc/sys/sigprocmask.2
+++ b/lib/libc/sys/sigprocmask.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <signal.h>
+.In signal.h
.Ft int
.Fn sigprocmask "int how" "const sigset_t *set" "sigset_t *oset"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/sigreturn.2 b/lib/libc/sys/sigreturn.2
index cc7ca47fc62f..97173455975f 100644
--- a/lib/libc/sys/sigreturn.2
+++ b/lib/libc/sys/sigreturn.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <signal.h>
+.In signal.h
.Pp
.Bd -literal
struct sigcontext {
diff --git a/lib/libc/sys/sigsuspend.2 b/lib/libc/sys/sigsuspend.2
index 280d6d960861..1dbfe0bc6c5a 100644
--- a/lib/libc/sys/sigsuspend.2
+++ b/lib/libc/sys/sigsuspend.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <signal.h>
+.In signal.h
.Ft int
.Fn sigsuspend "const sigset_t *sigmask"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/sigwait.2 b/lib/libc/sys/sigwait.2
index fba1f67d3fdf..76376a6d3131 100644
--- a/lib/libc/sys/sigwait.2
+++ b/lib/libc/sys/sigwait.2
@@ -35,7 +35,7 @@
.Sh LIBRARY
.Lb libc_r
.Sh SYNOPSIS
-.Fd #include <signal.h>
+.In signal.h
.Ft int
.Fn sigwait "const sigset_t *set" "int *sig"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/socket.2 b/lib/libc/sys/socket.2
index ef2669feec25..990658f94831 100644
--- a/lib/libc/sys/socket.2
+++ b/lib/libc/sys/socket.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
+.In sys/types.h
+.In sys/socket.h
.Ft int
.Fn socket "int domain" "int type" "int protocol"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/socketpair.2 b/lib/libc/sys/socketpair.2
index 875aea04b37a..a1e6fb897ac5 100644
--- a/lib/libc/sys/socketpair.2
+++ b/lib/libc/sys/socketpair.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
+.In sys/types.h
+.In sys/socket.h
.Ft int
.Fn socketpair "int d" "int type" "int protocol" "int *sv"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/stat.2 b/lib/libc/sys/stat.2
index e6936d3e3831..28d77a7be9b3 100644
--- a/lib/libc/sys/stat.2
+++ b/lib/libc/sys/stat.2
@@ -43,8 +43,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/stat.h>
+.In sys/types.h
+.In sys/stat.h
.Ft int
.Fn stat "const char *path" "struct stat *sb"
.Ft int
diff --git a/lib/libc/sys/statfs.2 b/lib/libc/sys/statfs.2
index 17e8ebe6d08e..a4b7e8a57970 100644
--- a/lib/libc/sys/statfs.2
+++ b/lib/libc/sys/statfs.2
@@ -41,8 +41,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/param.h>
-.Fd #include <sys/mount.h>
+.In sys/param.h
+.In sys/mount.h
.Ft int
.Fn statfs "const char *path" "struct statfs *buf"
.Ft int
diff --git a/lib/libc/sys/swapon.2 b/lib/libc/sys/swapon.2
index 16e7e163f900..a852ba012c4b 100644
--- a/lib/libc/sys/swapon.2
+++ b/lib/libc/sys/swapon.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn swapon "const char *special"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/symlink.2 b/lib/libc/sys/symlink.2
index 175ce9fecd89..1fa06667757f 100644
--- a/lib/libc/sys/symlink.2
+++ b/lib/libc/sys/symlink.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn symlink "const char *name1" "const char *name2"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/sync.2 b/lib/libc/sys/sync.2
index d60c0e42c2b2..f304ccec08b7 100644
--- a/lib/libc/sys/sync.2
+++ b/lib/libc/sys/sync.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft void
.Fn sync void
.Sh DESCRIPTION
diff --git a/lib/libc/sys/sysarch.2 b/lib/libc/sys/sysarch.2
index b18dc0a1fa1c..5439747f48ac 100644
--- a/lib/libc/sys/sysarch.2
+++ b/lib/libc/sys/sysarch.2
@@ -43,7 +43,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <machine/sysarch.h>
+.In machine/sysarch.h
.Ft int
.Fn sysarch "int number" "void *args"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/syscall.2 b/lib/libc/sys/syscall.2
index ea8d639cd3cb..5ecbf8b2e310 100644
--- a/lib/libc/sys/syscall.2
+++ b/lib/libc/sys/syscall.2
@@ -42,8 +42,8 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/syscall.h>
-.Fd #include <unistd.h>
+.In sys/syscall.h
+.In unistd.h
.Ft int
.Fn syscall "int number" ...
.Ft off_t
diff --git a/lib/libc/sys/truncate.2 b/lib/libc/sys/truncate.2
index aa6a4b60d071..6e3a07e9615c 100644
--- a/lib/libc/sys/truncate.2
+++ b/lib/libc/sys/truncate.2
@@ -42,7 +42,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn truncate "const char *path" "off_t length"
.Ft int
diff --git a/lib/libc/sys/umask.2 b/lib/libc/sys/umask.2
index 026a983e2ce9..c747a632fc39 100644
--- a/lib/libc/sys/umask.2
+++ b/lib/libc/sys/umask.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/stat.h>
+.In sys/stat.h
.Ft mode_t
.Fn umask "mode_t numask"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/undelete.2 b/lib/libc/sys/undelete.2
index d1fe935bff55..82633147c803 100644
--- a/lib/libc/sys/undelete.2
+++ b/lib/libc/sys/undelete.2
@@ -42,7 +42,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn undelete "const char *path"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/unlink.2 b/lib/libc/sys/unlink.2
index 2b5e3cb725f2..5a10123d562f 100644
--- a/lib/libc/sys/unlink.2
+++ b/lib/libc/sys/unlink.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn unlink "const char *path"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/utimes.2 b/lib/libc/sys/utimes.2
index 1b2ef22aff43..5d9691f99c5f 100644
--- a/lib/libc/sys/utimes.2
+++ b/lib/libc/sys/utimes.2
@@ -45,7 +45,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/time.h>
+.In sys/time.h
.Ft int
.Fn utimes "const char *path" "const struct timeval *times"
.Ft int
diff --git a/lib/libc/sys/vfork.2 b/lib/libc/sys/vfork.2
index 49e36b67fdbb..680b67d8c01a 100644
--- a/lib/libc/sys/vfork.2
+++ b/lib/libc/sys/vfork.2
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn vfork void
.Sh DESCRIPTION
diff --git a/lib/libc/sys/wait.2 b/lib/libc/sys/wait.2
index bbb2c57c6500..74309ab4df72 100644
--- a/lib/libc/sys/wait.2
+++ b/lib/libc/sys/wait.2
@@ -44,12 +44,12 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/wait.h>
+.In sys/types.h
+.In sys/wait.h
.Ft pid_t
.Fn wait "int *status"
-.Fd #include <sys/time.h>
-.Fd #include <sys/resource.h>
+.In sys/time.h
+.In sys/resource.h
.Ft pid_t
.Fn waitpid "pid_t wpid" "int *status" "int options"
.Ft pid_t
diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2
index 5d4fdc265b8d..77fba35cd25a 100644
--- a/lib/libc/sys/write.2
+++ b/lib/libc/sys/write.2
@@ -43,9 +43,9 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/uio.h>
-.Fd #include <unistd.h>
+.In sys/types.h
+.In sys/uio.h
+.In unistd.h
.Ft ssize_t
.Fn write "int d" "const void *buf" "size_t nbytes"
.Ft ssize_t