summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/_exit.28
-rw-r--r--lib/libc/sys/acct.26
-rw-r--r--lib/libc/sys/adjfreq.28
-rw-r--r--lib/libc/sys/adjtime.26
-rw-r--r--lib/libc/sys/brk.26
-rw-r--r--lib/libc/sys/chdir.26
-rw-r--r--lib/libc/sys/chmod.210
-rw-r--r--lib/libc/sys/chown.210
-rw-r--r--lib/libc/sys/clock_gettime.26
-rw-r--r--lib/libc/sys/closefrom.26
-rw-r--r--lib/libc/sys/connect.26
-rw-r--r--lib/libc/sys/execve.26
-rw-r--r--lib/libc/sys/fhopen.28
-rw-r--r--lib/libc/sys/fork.26
-rw-r--r--lib/libc/sys/fsync.26
-rw-r--r--lib/libc/sys/getgid.26
-rw-r--r--lib/libc/sys/getgroups.26
-rw-r--r--lib/libc/sys/getitimer.26
-rw-r--r--lib/libc/sys/getlogin.26
-rw-r--r--lib/libc/sys/getpeername.26
-rw-r--r--lib/libc/sys/getpgrp.26
-rw-r--r--lib/libc/sys/getpid.26
-rw-r--r--lib/libc/sys/getpriority.26
-rw-r--r--lib/libc/sys/getrlimit.26
-rw-r--r--lib/libc/sys/getrtable.28
-rw-r--r--lib/libc/sys/getsid.26
-rw-r--r--lib/libc/sys/getsockname.26
-rw-r--r--lib/libc/sys/gettimeofday.26
-rw-r--r--lib/libc/sys/getuid.26
-rw-r--r--lib/libc/sys/issetugid.26
-rw-r--r--lib/libc/sys/kqueue.210
-rw-r--r--lib/libc/sys/link.210
-rw-r--r--lib/libc/sys/listen.26
-rw-r--r--lib/libc/sys/lseek.26
-rw-r--r--lib/libc/sys/mkdir.210
-rw-r--r--lib/libc/sys/mknod.210
-rw-r--r--lib/libc/sys/mount.28
-rw-r--r--lib/libc/sys/profil.26
-rw-r--r--lib/libc/sys/ptrace.28
-rw-r--r--lib/libc/sys/reboot.28
-rw-r--r--lib/libc/sys/rename.210
-rw-r--r--lib/libc/sys/sendsyslog.26
-rw-r--r--lib/libc/sys/setgroups.28
-rw-r--r--lib/libc/sys/setresuid.28
-rw-r--r--lib/libc/sys/stat.210
-rw-r--r--lib/libc/sys/symlink.210
-rw-r--r--lib/libc/sys/sync.26
-rw-r--r--lib/libc/sys/sysarch.26
-rw-r--r--lib/libc/sys/syscall.28
-rw-r--r--lib/libc/sys/truncate.26
-rw-r--r--lib/libc/sys/umask.28
-rw-r--r--lib/libc/sys/utimes.210
-rw-r--r--lib/libc/sys/vfork.26
53 files changed, 190 insertions, 190 deletions
diff --git a/lib/libc/sys/_exit.2 b/lib/libc/sys/_exit.2
index ed8e9b804ef..4b4b3dcd3dd 100644
--- a/lib/libc/sys/_exit.2
+++ b/lib/libc/sys/_exit.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: _exit.2,v 1.21 2014/11/30 21:21:59 schwarze Exp $
+.\" $OpenBSD: _exit.2,v 1.22 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: _exit.2,v 1.6 1995/02/27 12:31:34 cgd Exp $
.\"
.\" Copyright (c) 1980, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)_exit.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: November 30 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt _EXIT 2
.Os
.Sh NAME
@@ -38,10 +38,10 @@
.Nm _Exit
.Nd terminate the calling process
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft void
.Fn _exit "int status"
-.Fd #include <stdlib.h>
+.In stdlib.h
.Ft void
.Fn _Exit "int status"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/acct.2 b/lib/libc/sys/acct.2
index 3b98446b48e..f8b184ce0b6 100644
--- a/lib/libc/sys/acct.2
+++ b/lib/libc/sys/acct.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: acct.2,v 1.17 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: acct.2,v 1.18 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: acct.2,v 1.6 1995/02/27 12:31:47 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,14 +30,14 @@
.\"
.\" @(#)acct.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt ACCT 2
.Os
.Sh NAME
.Nm acct
.Nd enable or disable process accounting
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn acct "const char *file"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/adjfreq.2 b/lib/libc/sys/adjfreq.2
index 4a786f4be6e..8bc38a8e5c5 100644
--- a/lib/libc/sys/adjfreq.2
+++ b/lib/libc/sys/adjfreq.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: adjfreq.2,v 1.6 2014/12/10 19:19:00 schwarze Exp $
+.\" $OpenBSD: adjfreq.2,v 1.7 2015/09/10 17:55:21 schwarze Exp $
.\"
.\" Copyright (c) 2006 Otto Moerbeek
.\"
@@ -23,15 +23,15 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: December 10 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt ADJFREQ 2
.Os
.Sh NAME
.Nm adjfreq
.Nd correct the rate of the system clock
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/time.h>
+.In sys/types.h
+.In sys/time.h
.Ft int
.Fn adjfreq "const int64_t *freq" "int64_t *oldfreq"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/adjtime.2 b/lib/libc/sys/adjtime.2
index 6d05ce6d650..ce638760c5b 100644
--- a/lib/libc/sys/adjtime.2
+++ b/lib/libc/sys/adjtime.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: adjtime.2,v 1.21 2014/12/10 19:19:00 schwarze Exp $
+.\" $OpenBSD: adjtime.2,v 1.22 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: adjtime.2,v 1.5 1995/10/12 15:40:44 jtc Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,14 +30,14 @@
.\"
.\" @(#)adjtime.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: December 10 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt ADJTIME 2
.Os
.Sh NAME
.Nm adjtime
.Nd correct the time to allow synchronization of the system clock
.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/brk.2 b/lib/libc/sys/brk.2
index b99724a5355..08ee9e76166 100644
--- a/lib/libc/sys/brk.2
+++ b/lib/libc/sys/brk.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: brk.2,v 1.20 2015/03/26 00:48:51 bentley Exp $
+.\" $OpenBSD: brk.2,v 1.21 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: brk.2,v 1.7 1995/02/27 12:31:57 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)brk.2 8.2 (Berkeley) 12/11/93
.\"
-.Dd $Mdocdate: March 26 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt BRK 2
.Os
.Sh NAME
@@ -38,7 +38,7 @@
.Nm sbrk
.Nd change data segment size
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn brk "void *addr"
.Ft void *
diff --git a/lib/libc/sys/chdir.2 b/lib/libc/sys/chdir.2
index 0afd904c0ca..5250bc64414 100644
--- a/lib/libc/sys/chdir.2
+++ b/lib/libc/sys/chdir.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chdir.2,v 1.13 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: chdir.2,v 1.14 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: chdir.2,v 1.7 1995/02/27 12:32:00 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)chdir.2 8.2 (Berkeley) 12/11/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt CHDIR 2
.Os
.Sh NAME
@@ -38,7 +38,7 @@
.Nm fchdir
.Nd change current working directory
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn chdir "const char *path"
.Ft int
diff --git a/lib/libc/sys/chmod.2 b/lib/libc/sys/chmod.2
index 44eced06f4e..e67e8c41dcd 100644
--- a/lib/libc/sys/chmod.2
+++ b/lib/libc/sys/chmod.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chmod.2,v 1.27 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: chmod.2,v 1.28 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: chmod.2,v 1.7 1995/02/27 12:32:06 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)chmod.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt CHMOD 2
.Os
.Sh NAME
@@ -39,13 +39,13 @@
.Nm fchmod
.Nd change mode of file
.Sh SYNOPSIS
-.Fd #include <sys/stat.h>
+.In sys/stat.h
.Ft int
.Fn chmod "const char *path" "mode_t mode"
.Ft int
.Fn fchmod "int fd" "mode_t mode"
-.Fd #include <sys/stat.h>
-.Fd #include <fcntl.h>
+.In sys/stat.h
+.In fcntl.h
.Ft int
.Fn fchmodat "int fd" "const char *path" "mode_t mode" "int flag"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/chown.2 b/lib/libc/sys/chown.2
index e683cbcf0bb..06d5e4763e8 100644
--- a/lib/libc/sys/chown.2
+++ b/lib/libc/sys/chown.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chown.2,v 1.25 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: chown.2,v 1.26 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: chown.2,v 1.10 1995/10/12 15:40:47 jtc Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993, 1994
@@ -30,7 +30,7 @@
.\"
.\" @(#)chown.2 8.4 (Berkeley) 4/19/94
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt CHOWN 2
.Os
.Sh NAME
@@ -40,15 +40,15 @@
.Nm fchown
.Nd change owner and group of a file or link
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn chown "const char *path" "uid_t owner" "gid_t group"
.Ft int
.Fn lchown "const char *path" "uid_t owner" "gid_t group"
.Ft int
.Fn fchown "int fd" "uid_t owner" "gid_t group"
-.Fd #include <fcntl.h>
-.Fd #include <unistd.h>
+.In fcntl.h
+.In unistd.h
.Ft int
.Fn fchownat "int fd" "const char *path" "uid_t owner" "gid_t group" "int flag"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/clock_gettime.2 b/lib/libc/sys/clock_gettime.2
index abd0fffb563..1e4c93ed7ae 100644
--- a/lib/libc/sys/clock_gettime.2
+++ b/lib/libc/sys/clock_gettime.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: clock_gettime.2,v 1.26 2014/12/10 19:19:00 schwarze Exp $
+.\" $OpenBSD: clock_gettime.2,v 1.27 2015/09/10 17:55:21 schwarze Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: December 10 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt CLOCK_GETTIME 2
.Os
.Sh NAME
@@ -36,7 +36,7 @@
.Nm clock_getres
.Nd get/set/calibrate date and time
.Sh SYNOPSIS
-.Fd #include <time.h>
+.In time.h
.Ft int
.Fn clock_gettime "clockid_t clock_id" "struct timespec *tp"
.Ft int
diff --git a/lib/libc/sys/closefrom.2 b/lib/libc/sys/closefrom.2
index 80961dabc14..3f95eeb928a 100644
--- a/lib/libc/sys/closefrom.2
+++ b/lib/libc/sys/closefrom.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: closefrom.2,v 1.8 2015/03/03 14:50:02 jmc Exp $
+.\" $OpenBSD: closefrom.2,v 1.9 2015/09/10 17:55:21 schwarze Exp $
.\"
.\" Copyright (c) 2004 Ted Unangst. All rights reserved.
.\"
@@ -22,14 +22,14 @@
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
-.Dd $Mdocdate: March 3 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt CLOSEFROM 2
.Os
.Sh NAME
.Nm closefrom
.Nd delete many descriptors
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn closefrom "int fd"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/connect.2 b/lib/libc/sys/connect.2
index b3d9970960d..ba31df444a5 100644
--- a/lib/libc/sys/connect.2
+++ b/lib/libc/sys/connect.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: connect.2,v 1.25 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: connect.2,v 1.26 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: connect.2,v 1.8 1995/10/12 15:40:48 jtc Exp $
.\"
.\" Copyright (c) 1983, 1993
@@ -30,14 +30,14 @@
.\"
.\" @(#)connect.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt CONNECT 2
.Os
.Sh NAME
.Nm connect
.Nd initiate a connection on a socket
.Sh SYNOPSIS
-.Fd #include <sys/socket.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/execve.2 b/lib/libc/sys/execve.2
index 4eb41a96668..0a9693728a2 100644
--- a/lib/libc/sys/execve.2
+++ b/lib/libc/sys/execve.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: execve.2,v 1.45 2015/08/26 01:54:09 guenther Exp $
+.\" $OpenBSD: execve.2,v 1.46 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: execve.2,v 1.9 1995/02/27 12:32:25 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,14 +30,14 @@
.\"
.\" @(#)execve.2 8.3 (Berkeley) 1/24/94
.\"
-.Dd $Mdocdate: August 26 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt EXECVE 2
.Os
.Sh NAME
.Nm execve
.Nd execute a file
.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/fhopen.2 b/lib/libc/sys/fhopen.2
index 9dd05fb360d..98cf710da8d 100644
--- a/lib/libc/sys/fhopen.2
+++ b/lib/libc/sys/fhopen.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fhopen.2,v 1.8 2007/05/31 19:19:32 jmc Exp $
+.\" $OpenBSD: fhopen.2,v 1.9 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: fhopen.2,v 1.2 1999/12/02 21:42:36 kleink Exp $
.\"
.\" Copyright (c) 1999 National Aeronautics & Space Administration
@@ -32,7 +32,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"/
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: September 10 2015 $
.Dt FHOPEN 2
.Os
.Sh NAME
@@ -41,8 +41,8 @@
.Nm fhstatfs
.Nd access file via file handle
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/stat.h>
+.In sys/types.h
+.In sys/stat.h
.Ft int
.Fn fhopen "const fhandle_t *fhp" "int flags"
.Ft int
diff --git a/lib/libc/sys/fork.2 b/lib/libc/sys/fork.2
index b9d934b8325..cd1cedd2d38 100644
--- a/lib/libc/sys/fork.2
+++ b/lib/libc/sys/fork.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fork.2,v 1.17 2013/03/31 22:11:26 guenther Exp $
+.\" $OpenBSD: fork.2,v 1.18 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: fork.2,v 1.6 1995/02/27 12:32:36 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,14 +30,14 @@
.\"
.\" @(#)fork.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: March 31 2013 $
+.Dd $Mdocdate: September 10 2015 $
.Dt FORK 2
.Os
.Sh NAME
.Nm fork
.Nd create a new process
.Sh SYNOPSIS
-.Fd #include <unistd.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 8b646b217e4..c9831ca095d 100644
--- a/lib/libc/sys/fsync.2
+++ b/lib/libc/sys/fsync.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fsync.2,v 1.13 2013/08/14 06:32:28 jmc Exp $
+.\" $OpenBSD: fsync.2,v 1.14 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: fsync.2,v 1.4 1995/02/27 12:32:38 cgd Exp $
.\"
.\" Copyright (c) 1983, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)fsync.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: August 14 2013 $
+.Dd $Mdocdate: September 10 2015 $
.Dt FSYNC 2
.Os
.Sh NAME
@@ -38,7 +38,7 @@
.Nm fdatasync
.Nd synchronize a file's in-core state with that on disk
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn fsync "int fd"
.Ft int
diff --git a/lib/libc/sys/getgid.2 b/lib/libc/sys/getgid.2
index 8dd243e74c1..9a67120a421 100644
--- a/lib/libc/sys/getgid.2
+++ b/lib/libc/sys/getgid.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getgid.2,v 1.18 2013/07/17 05:42:11 schwarze Exp $
+.\" $OpenBSD: getgid.2,v 1.19 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: getgid.2,v 1.5 1995/02/27 12:32:53 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)getgid.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: July 17 2013 $
+.Dd $Mdocdate: September 10 2015 $
.Dt GETGID 2
.Os
.Sh NAME
@@ -38,7 +38,7 @@
.Nm getegid
.Nd get group process identification
.Sh SYNOPSIS
-.Fd #include <unistd.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 a6c1d44280e..b70d8f73f94 100644
--- a/lib/libc/sys/getgroups.2
+++ b/lib/libc/sys/getgroups.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getgroups.2,v 1.13 2013/07/17 05:42:11 schwarze Exp $
+.\" $OpenBSD: getgroups.2,v 1.14 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: getgroups.2,v 1.8 1995/02/27 12:32:57 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,14 +30,14 @@
.\"
.\" @(#)getgroups.2 8.2 (Berkeley) 4/16/94
.\"
-.Dd $Mdocdate: July 17 2013 $
+.Dd $Mdocdate: September 10 2015 $
.Dt GETGROUPS 2
.Os
.Sh NAME
.Nm getgroups
.Nd get group access list
.Sh SYNOPSIS
-.Fd #include <unistd.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 eb36f904359..f8d5e359256 100644
--- a/lib/libc/sys/getitimer.2
+++ b/lib/libc/sys/getitimer.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getitimer.2,v 1.27 2014/12/10 19:19:00 schwarze Exp $
+.\" $OpenBSD: getitimer.2,v 1.28 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: getitimer.2,v 1.6 1995/10/12 15:40:54 jtc Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)getitimer.2 8.2 (Berkeley) 12/11/93
.\"
-.Dd $Mdocdate: December 10 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt GETITIMER 2
.Os
.Sh NAME
@@ -38,7 +38,7 @@
.Nm setitimer
.Nd get/set value of interval timer
.Sh SYNOPSIS
-.Fd #include <sys/time.h>
+.In sys/time.h
.Pp
.Fd #define ITIMER_REAL 0
.Fd #define ITIMER_VIRTUAL 1
diff --git a/lib/libc/sys/getlogin.2 b/lib/libc/sys/getlogin.2
index 4c63081148f..28fd919cbc7 100644
--- a/lib/libc/sys/getlogin.2
+++ b/lib/libc/sys/getlogin.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getlogin.2,v 1.20 2013/03/30 06:44:44 guenther Exp $
+.\" $OpenBSD: getlogin.2,v 1.21 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: getlogin.2,v 1.4 1995/02/27 12:33:03 cgd Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)getlogin.2 8.1 (Berkeley) 6/9/93
.\"
-.Dd $Mdocdate: March 30 2013 $
+.Dd $Mdocdate: September 10 2015 $
.Dt GETLOGIN 2
.Os
.Sh NAME
@@ -39,7 +39,7 @@
.Nm setlogin
.Nd get/set login name
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft char *
.Fn getlogin void
.Ft int
diff --git a/lib/libc/sys/getpeername.2 b/lib/libc/sys/getpeername.2
index 4e0e62aeb6a..f07de8cb040 100644
--- a/lib/libc/sys/getpeername.2
+++ b/lib/libc/sys/getpeername.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpeername.2,v 1.25 2013/03/31 22:11:26 guenther Exp $
+.\" $OpenBSD: getpeername.2,v 1.26 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: getpeername.2,v 1.6 1995/10/12 15:40:56 jtc Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,14 +30,14 @@
.\"
.\" @(#)getpeername.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: March 31 2013 $
+.Dd $Mdocdate: September 10 2015 $
.Dt GETPEERNAME 2
.Os
.Sh NAME
.Nm getpeername
.Nd get name of connected peer
.Sh SYNOPSIS
-.Fd #include <sys/socket.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 fa033ad4309..bcdb3026353 100644
--- a/lib/libc/sys/getpgrp.2
+++ b/lib/libc/sys/getpgrp.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpgrp.2,v 1.17 2013/03/31 19:23:08 guenther Exp $
+.\" $OpenBSD: getpgrp.2,v 1.18 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: getpgrp.2,v 1.8 1995/02/27 12:33:09 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)getpgrp.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: March 31 2013 $
+.Dd $Mdocdate: September 10 2015 $
.Dt GETPGRP 2
.Os
.Sh NAME
@@ -38,7 +38,7 @@
.Nm getpgid
.Nd get process group
.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 069d49c748e..90f76fcd129 100644
--- a/lib/libc/sys/getpid.2
+++ b/lib/libc/sys/getpid.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpid.2,v 1.12 2013/03/30 06:44:44 guenther Exp $
+.\" $OpenBSD: getpid.2,v 1.13 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: getpid.2,v 1.5 1995/02/27 12:33:12 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)getpid.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: March 30 2013 $
+.Dd $Mdocdate: September 10 2015 $
.Dt GETPID 2
.Os
.Sh NAME
@@ -38,7 +38,7 @@
.Nm getppid
.Nd get parent or calling process identification
.Sh SYNOPSIS
-.Fd #include <unistd.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 08407ab0ef8..426dd80c363 100644
--- a/lib/libc/sys/getpriority.2
+++ b/lib/libc/sys/getpriority.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpriority.2,v 1.14 2013/07/17 05:42:11 schwarze Exp $
+.\" $OpenBSD: getpriority.2,v 1.15 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: getpriority.2,v 1.4 1995/02/27 12:33:15 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)getpriority.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: July 17 2013 $
+.Dd $Mdocdate: September 10 2015 $
.Dt GETPRIORITY 2
.Os
.Sh NAME
@@ -38,7 +38,7 @@
.Nm setpriority
.Nd get/set process scheduling priority
.Sh SYNOPSIS
-.Fd #include <sys/resource.h>
+.In sys/resource.h
.Ft int
.Fn getpriority "int which" "id_t who"
.Ft int
diff --git a/lib/libc/sys/getrlimit.2 b/lib/libc/sys/getrlimit.2
index 4f8060b3af0..82bbfd0df5c 100644
--- a/lib/libc/sys/getrlimit.2
+++ b/lib/libc/sys/getrlimit.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getrlimit.2,v 1.25 2014/12/10 19:30:22 schwarze Exp $
+.\" $OpenBSD: getrlimit.2,v 1.26 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: getrlimit.2,v 1.8 1995/10/12 15:40:58 jtc Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)getrlimit.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: December 10 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt GETRLIMIT 2
.Os
.Sh NAME
@@ -38,7 +38,7 @@
.Nm setrlimit
.Nd control maximum system resource consumption
.Sh SYNOPSIS
-.Fd #include <sys/resource.h>
+.In sys/resource.h
.Ft int
.Fn getrlimit "int resource" "struct rlimit *rlp"
.Ft int
diff --git a/lib/libc/sys/getrtable.2 b/lib/libc/sys/getrtable.2
index 33b33f83c54..b45085013f4 100644
--- a/lib/libc/sys/getrtable.2
+++ b/lib/libc/sys/getrtable.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getrtable.2,v 1.3 2014/02/26 20:58:42 claudio Exp $
+.\" $OpenBSD: getrtable.2,v 1.4 2015/09/10 17:55:21 schwarze Exp $
.\"
.\" Copyright (c) 2009 Reyk Floeter <reyk@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: February 26 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt GETRTABLE 2
.Os
.Sh NAME
@@ -22,8 +22,8 @@
.Nm setrtable
.Nd get and set the default routing table of the current process
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
+.In sys/types.h
+.In sys/socket.h
.Ft int
.Fn getrtable "void"
.Ft int
diff --git a/lib/libc/sys/getsid.2 b/lib/libc/sys/getsid.2
index c8fce2ca71e..049c6ed923e 100644
--- a/lib/libc/sys/getsid.2
+++ b/lib/libc/sys/getsid.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getsid.2,v 1.11 2013/03/30 06:44:44 guenther Exp $
+.\" $OpenBSD: getsid.2,v 1.12 2015/09/10 17:55:21 schwarze Exp $
.\"
.\" Copyright (c) 1997 Peter Wemm <peter@freebsd.org>
.\"
@@ -24,14 +24,14 @@
.\" SUCH DAMAGE.
.\"
.\"
-.Dd $Mdocdate: March 30 2013 $
+.Dd $Mdocdate: September 10 2015 $
.Dt GETSID 2
.Os
.Sh NAME
.Nm getsid
.Nd get process session
.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 6523ba1e7ed..21b24ed2a0c 100644
--- a/lib/libc/sys/getsockname.2
+++ b/lib/libc/sys/getsockname.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getsockname.2,v 1.29 2013/03/31 22:11:26 guenther Exp $
+.\" $OpenBSD: getsockname.2,v 1.30 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: getsockname.2,v 1.6 1995/10/12 15:41:00 jtc Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,14 +30,14 @@
.\"
.\" @(#)getsockname.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: March 31 2013 $
+.Dd $Mdocdate: September 10 2015 $
.Dt GETSOCKNAME 2
.Os
.Sh NAME
.Nm getsockname
.Nd get socket name
.Sh SYNOPSIS
-.Fd #include <sys/socket.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/gettimeofday.2 b/lib/libc/sys/gettimeofday.2
index 22e10521692..81b27561e23 100644
--- a/lib/libc/sys/gettimeofday.2
+++ b/lib/libc/sys/gettimeofday.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: gettimeofday.2,v 1.28 2014/12/10 19:19:00 schwarze Exp $
+.\" $OpenBSD: gettimeofday.2,v 1.29 2015/09/10 17:55:21 schwarze Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)gettimeofday.2 8.2 (Berkeley) 5/26/95
.\"
-.Dd $Mdocdate: December 10 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt GETTIMEOFDAY 2
.Os
.Sh NAME
@@ -37,7 +37,7 @@
.Nm settimeofday
.Nd get/set date and time
.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 74f4641191b..75a26f1b0c8 100644
--- a/lib/libc/sys/getuid.2
+++ b/lib/libc/sys/getuid.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getuid.2,v 1.15 2013/03/30 06:44:44 guenther Exp $
+.\" $OpenBSD: getuid.2,v 1.16 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: getuid.2,v 1.6 1995/02/27 12:33:37 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)getuid.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: March 30 2013 $
+.Dd $Mdocdate: September 10 2015 $
.Dt GETUID 2
.Os
.Sh NAME
@@ -38,7 +38,7 @@
.Nm geteuid
.Nd get user identification
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft uid_t
.Fn getuid void
.Ft uid_t
diff --git a/lib/libc/sys/issetugid.2 b/lib/libc/sys/issetugid.2
index f969d0d1bc9..7da2203c9c3 100644
--- a/lib/libc/sys/issetugid.2
+++ b/lib/libc/sys/issetugid.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: issetugid.2,v 1.20 2014/07/11 09:24:03 tedu Exp $
+.\" $OpenBSD: issetugid.2,v 1.21 2015/09/10 17:55:21 schwarze Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,14 +27,14 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 11 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt ISSETUGID 2
.Os
.Sh NAME
.Nm issetugid
.Nd is current executable running setuid or setgid
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn issetugid void
.Sh DESCRIPTION
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2
index 9605e0991a8..0867c8cc904 100644
--- a/lib/libc/sys/kqueue.2
+++ b/lib/libc/sys/kqueue.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: kqueue.2,v 1.30 2015/01/20 11:56:33 reyk Exp $
+.\" $OpenBSD: kqueue.2,v 1.31 2015/09/10 17:55:21 schwarze Exp $
.\"
.\" Copyright (c) 2000 Jonathan Lemon
.\" All rights reserved.
@@ -26,7 +26,7 @@
.\"
.\" $FreeBSD: src/lib/libc/sys/kqueue.2,v 1.18 2001/02/14 08:48:35 guido Exp $
.\"
-.Dd $Mdocdate: January 20 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt KQUEUE 2
.Os
.Sh NAME
@@ -34,9 +34,9 @@
.Nm kevent
.Nd kernel event notification mechanism
.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/link.2 b/lib/libc/sys/link.2
index 4aa204ec28d..a9c241a5583 100644
--- a/lib/libc/sys/link.2
+++ b/lib/libc/sys/link.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: link.2,v 1.28 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: link.2,v 1.29 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: link.2,v 1.7 1995/02/27 12:34:01 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)link.2 8.3 (Berkeley) 1/12/94
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt LINK 2
.Os
.Sh NAME
@@ -38,11 +38,11 @@
.Nm linkat
.Nd make hard link to a file
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn link "const char *name1" "const char *name2"
-.Fd #include <fcntl.h>
-.Fd #include <unistd.h>
+.In fcntl.h
+.In unistd.h
.Ft int
.Fn linkat "int fd1" "const char *name1" "int fd2" "const char *name2" "int flag"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/listen.2 b/lib/libc/sys/listen.2
index 9ad00f31399..f8c72cffc4e 100644
--- a/lib/libc/sys/listen.2
+++ b/lib/libc/sys/listen.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: listen.2,v 1.14 2014/12/10 19:19:00 schwarze Exp $
+.\" $OpenBSD: listen.2,v 1.15 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: listen.2,v 1.7 1996/02/16 20:38:45 phil Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,14 +30,14 @@
.\"
.\" @(#)listen.2 8.2 (Berkeley) 12/11/93
.\"
-.Dd $Mdocdate: December 10 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt LISTEN 2
.Os
.Sh NAME
.Nm listen
.Nd listen for connections on a socket
.Sh SYNOPSIS
-.Fd #include <sys/socket.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 b994573666f..3a70ec0d187 100644
--- a/lib/libc/sys/lseek.2
+++ b/lib/libc/sys/lseek.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: lseek.2,v 1.16 2013/04/08 19:49:55 guenther Exp $
+.\" $OpenBSD: lseek.2,v 1.17 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: lseek.2,v 1.6 1995/02/27 12:34:09 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,14 +30,14 @@
.\"
.\" @(#)lseek.2 8.3 (Berkeley) 4/19/94
.\"
-.Dd $Mdocdate: April 8 2013 $
+.Dd $Mdocdate: September 10 2015 $
.Dt LSEEK 2
.Os
.Sh NAME
.Nm lseek
.Nd reposition read/write file offset
.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/mkdir.2 b/lib/libc/sys/mkdir.2
index 687a2b312b6..970c9dd0680 100644
--- a/lib/libc/sys/mkdir.2
+++ b/lib/libc/sys/mkdir.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mkdir.2,v 1.16 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: mkdir.2,v 1.17 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: mkdir.2,v 1.8 1995/02/27 12:34:22 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)mkdir.2 8.2 (Berkeley) 12/11/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt MKDIR 2
.Os
.Sh NAME
@@ -38,11 +38,11 @@
.Nm mkdirat
.Nd make a directory file
.Sh SYNOPSIS
-.Fd #include <sys/stat.h>
+.In sys/stat.h
.Ft int
.Fn mkdir "const char *path" "mode_t mode"
-.Fd #include <sys/stat.h>
-.Fd #include <fcntl.h>
+.In sys/stat.h
+.In fcntl.h
.Ft int
.Fn mkdirat "int fd" "const char *path" "mode_t mode"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/mknod.2 b/lib/libc/sys/mknod.2
index d69315f63a2..e34ebf013a0 100644
--- a/lib/libc/sys/mknod.2
+++ b/lib/libc/sys/mknod.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mknod.2,v 1.20 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: mknod.2,v 1.21 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: mknod.2,v 1.6 1995/02/27 12:34:33 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)mknod.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt MKNOD 2
.Os
.Sh NAME
@@ -38,11 +38,11 @@
.Nm mknodat
.Nd make a special file node
.Sh SYNOPSIS
-.Fd #include <sys/stat.h>
+.In sys/stat.h
.Ft int
.Fn mknod "const char *path" "mode_t mode" "dev_t dev"
-.Fd #include <sys/stat.h>
-.Fd #include <fcntl.h>
+.In sys/stat.h
+.In fcntl.h
.Ft int
.Fn mknodat "int fd" "const char *path" "mode_t mode" "dev_t dev"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/mount.2 b/lib/libc/sys/mount.2
index bbb8e26010c..c89921ed5d0 100644
--- a/lib/libc/sys/mount.2
+++ b/lib/libc/sys/mount.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mount.2,v 1.43 2015/01/19 23:41:32 millert Exp $
+.\" $OpenBSD: mount.2,v 1.44 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: mount.2,v 1.12 1996/02/29 23:47:48 jtc Exp $
.\"
.\" Copyright (c) 1980, 1989, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)mount.2 8.2 (Berkeley) 12/11/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt MOUNT 2
.Os
.Sh NAME
@@ -38,8 +38,8 @@
.Nm unmount
.Nd mount or dismount a filesystem
.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/profil.2 b/lib/libc/sys/profil.2
index 51cd14d7dee..a9876636ce3 100644
--- a/lib/libc/sys/profil.2
+++ b/lib/libc/sys/profil.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: profil.2,v 1.9 2007/05/31 19:19:33 jmc Exp $
+.\" $OpenBSD: profil.2,v 1.10 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: profil.2,v 1.3 1995/11/22 23:07:23 cgd Exp $
.\"
.\" Copyright (c) 1993
@@ -33,14 +33,14 @@
.\"
.\" @(#)profil.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: September 10 2015 $
.Dt PROFIL 2
.Os
.Sh NAME
.Nm profil
.Nd control process profiling
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn profil "char *samples" "size_t size" "u_long offset" "u_int scale"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2
index 012cd36214d..58a61c9eeb5 100644
--- a/lib/libc/sys/ptrace.2
+++ b/lib/libc/sys/ptrace.2
@@ -1,16 +1,16 @@
-.\" $OpenBSD: ptrace.2,v 1.32 2015/08/02 21:54:21 jmc Exp $
+.\" $OpenBSD: ptrace.2,v 1.33 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: ptrace.2,v 1.3 1996/02/23 01:39:41 jtc Exp $
.\"
.\" This file is in the public domain.
-.Dd $Mdocdate: August 2 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt PTRACE 2
.Os
.Sh NAME
.Nm ptrace
.Nd process tracing and debugging
.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/reboot.2 b/lib/libc/sys/reboot.2
index 69231263c88..632e83e7484 100644
--- a/lib/libc/sys/reboot.2
+++ b/lib/libc/sys/reboot.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: reboot.2,v 1.17 2014/11/15 14:41:02 bentley Exp $
+.\" $OpenBSD: reboot.2,v 1.18 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: reboot.2,v 1.5 1995/02/27 12:36:02 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,15 +30,15 @@
.\"
.\" @(#)reboot.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: November 15 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt REBOOT 2
.Os
.Sh NAME
.Nm reboot
.Nd reboot system or halt processor
.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/rename.2 b/lib/libc/sys/rename.2
index a7dabaa3b25..4a27805bffe 100644
--- a/lib/libc/sys/rename.2
+++ b/lib/libc/sys/rename.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rename.2,v 1.21 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: rename.2,v 1.22 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: rename.2,v 1.7 1995/02/27 12:36:15 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)rename.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt RENAME 2
.Os
.Sh NAME
@@ -38,11 +38,11 @@
.Nm renameat
.Nd change the name of a file
.Sh SYNOPSIS
-.Fd #include <stdio.h>
+.In stdio.h
.Ft int
.Fn rename "const char *from" "const char *to"
-.Fd #include <fcntl.h>
-.Fd #include <stdio.h>
+.In fcntl.h
+.In stdio.h
.Ft int
.Fn renameat "int fromfd" "const char *from" "int tofd" "const char *to"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/sendsyslog.2 b/lib/libc/sys/sendsyslog.2
index c796d59a17f..73434f5b109 100644
--- a/lib/libc/sys/sendsyslog.2
+++ b/lib/libc/sys/sendsyslog.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sendsyslog.2,v 1.3 2014/12/10 19:19:00 schwarze Exp $
+.\" $OpenBSD: sendsyslog.2,v 1.4 2015/09/10 17:55:21 schwarze Exp $
.\"
.\" Copyright (c) 2014 Theo de Raadt
.\"
@@ -14,14 +14,14 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: December 10 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt SENDSYSLOG 2
.Os
.Sh NAME
.Nm sendsyslog
.Nd send a message to syslogd
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
+.In sys/types.h
.Ft int
.Fn sendsyslog "const void *msg" "size_t len"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/setgroups.2 b/lib/libc/sys/setgroups.2
index 1be45e5d483..562aac16e70 100644
--- a/lib/libc/sys/setgroups.2
+++ b/lib/libc/sys/setgroups.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: setgroups.2,v 1.12 2014/12/10 19:19:00 schwarze Exp $
+.\" $OpenBSD: setgroups.2,v 1.13 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: setgroups.2,v 1.7 1995/02/27 12:36:49 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993, 1994
@@ -30,15 +30,15 @@
.\"
.\" @(#)setgroups.2 8.2 (Berkeley) 4/16/94
.\"
-.Dd $Mdocdate: December 10 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt SETGROUPS 2
.Os
.Sh NAME
.Nm setgroups
.Nd set group access list
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <unistd.h>
+.In sys/types.h
+.In unistd.h
.Ft int
.Fn setgroups "int ngroups" "const gid_t *gidset"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/setresuid.2 b/lib/libc/sys/setresuid.2
index a20ad7f9a9c..7268f77caaf 100644
--- a/lib/libc/sys/setresuid.2
+++ b/lib/libc/sys/setresuid.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: setresuid.2,v 1.8 2014/12/10 19:19:00 schwarze Exp $
+.\" $OpenBSD: setresuid.2,v 1.9 2015/09/10 17:55:21 schwarze Exp $
.\"
.\" Copyright (c) 2000
.\" Sheldon Hearn. All rights reserved.
@@ -21,7 +21,7 @@
.\"
.\" $FreeBSD: src/lib/libc/sys/setresuid.2,v 1.12 2001/10/01 16:09:02 ru Exp $
.\"
-.Dd $Mdocdate: December 10 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt SETRESUID 2
.Os
.Sh NAME
@@ -31,8 +31,8 @@
.Nm setresuid
.Nd get or set real, effective and saved user or group ID
.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/stat.2 b/lib/libc/sys/stat.2
index 70fb506051a..2429c3b874d 100644
--- a/lib/libc/sys/stat.2
+++ b/lib/libc/sys/stat.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: stat.2,v 1.44 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: stat.2,v 1.45 2015/09/10 17:55:21 schwarze Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)stat.2 8.3 (Berkeley) 4/19/94
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt STAT 2
.Os
.Sh NAME
@@ -39,15 +39,15 @@
.Nm fstat
.Nd get file status
.Sh SYNOPSIS
-.Fd #include <sys/stat.h>
+.In sys/stat.h
.Ft int
.Fn stat "const char *path" "struct stat *sb"
.Ft int
.Fn lstat "const char *path" "struct stat *sb"
.Ft int
.Fn fstat "int fd" "struct stat *sb"
-.Fd #include <sys/stat.h>
-.Fd #include <fcntl.h>
+.In sys/stat.h
+.In fcntl.h
.Ft int
.Fn fstatat "int fd" "const char *path" "struct stat *sb" "int flag"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/symlink.2 b/lib/libc/sys/symlink.2
index 21c182b5df3..1c7da668892 100644
--- a/lib/libc/sys/symlink.2
+++ b/lib/libc/sys/symlink.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: symlink.2,v 1.19 2015/01/19 15:54:12 millert Exp $
+.\" $OpenBSD: symlink.2,v 1.20 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: symlink.2,v 1.7 1995/02/27 12:38:34 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)symlink.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt SYMLINK 2
.Os
.Sh NAME
@@ -38,11 +38,11 @@
.Nm symlinkat
.Nd make symbolic link to a file
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn symlink "const char *name1" "const char *name2"
-.Fd #include <fcntl.h>
-.Fd #include <unistd.h>
+.In fcntl.h
+.In unistd.h
.Ft int
.Fn symlinkat "const char *name1" "int fd" "const char *name2"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/sync.2 b/lib/libc/sys/sync.2
index b4fd0605e17..bbd237c4221 100644
--- a/lib/libc/sys/sync.2
+++ b/lib/libc/sys/sync.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sync.2,v 1.14 2013/08/14 06:32:29 jmc Exp $
+.\" $OpenBSD: sync.2,v 1.15 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: sync.2,v 1.4 1995/02/27 12:38:41 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,14 +30,14 @@
.\"
.\" @(#)sync.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: August 14 2013 $
+.Dd $Mdocdate: September 10 2015 $
.Dt SYNC 2
.Os
.Sh NAME
.Nm sync
.Nd synchronize disk block in-core status with that on disk
.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 b1f56325a06..c09d6d96274 100644
--- a/lib/libc/sys/sysarch.2
+++ b/lib/libc/sys/sysarch.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysarch.2,v 1.10 2014/01/21 03:15:45 schwarze Exp $
+.\" $OpenBSD: sysarch.2,v 1.11 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: sysarch.2,v 1.4 1995/02/27 12:38:47 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991 Regents of the University of California.
@@ -30,14 +30,14 @@
.\"
.\" from: @(#)syscall.2 6.3 (Berkeley) 3/10/91
.\"
-.Dd $Mdocdate: January 21 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt SYSARCH 2
.Os
.Sh NAME
.Nm sysarch
.Nd architecture-dependent system call
.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 4dff0623f25..5fd7b99cf1e 100644
--- a/lib/libc/sys/syscall.2
+++ b/lib/libc/sys/syscall.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: syscall.2,v 1.11 2014/01/21 03:15:45 schwarze Exp $
+.\" $OpenBSD: syscall.2,v 1.12 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: syscall.2,v 1.4 1995/02/27 12:38:53 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)syscall.2 8.1 (Berkeley) 6/16/93
.\"
-.Dd $Mdocdate: January 21 2014 $
+.Dd $Mdocdate: September 10 2015 $
.Dt SYSCALL 2
.Os
.Sh NAME
@@ -38,8 +38,8 @@
.Nm __syscall
.Nd indirect system call
.Sh SYNOPSIS
-.Fd #include <sys/syscall.h>
-.Fd #include <unistd.h>
+.In sys/syscall.h
+.In unistd.h
.Ft int
.Fn syscall "int number" "..."
.Fn __syscall "quad_t number" "..."
diff --git a/lib/libc/sys/truncate.2 b/lib/libc/sys/truncate.2
index 8cca00e3119..d66a6e9fa67 100644
--- a/lib/libc/sys/truncate.2
+++ b/lib/libc/sys/truncate.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: truncate.2,v 1.17 2015/01/19 15:54:12 millert Exp $
+.\" $OpenBSD: truncate.2,v 1.18 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: truncate.2,v 1.7 1995/02/27 12:39:00 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)truncate.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt TRUNCATE 2
.Os
.Sh NAME
@@ -38,7 +38,7 @@
.Nm ftruncate
.Nd truncate or extend a file to a specified length
.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 59d603c2e8f..ac99c98c612 100644
--- a/lib/libc/sys/umask.2
+++ b/lib/libc/sys/umask.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: umask.2,v 1.10 2013/07/17 05:42:11 schwarze Exp $
+.\" $OpenBSD: umask.2,v 1.11 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: umask.2,v 1.6 1995/02/27 12:39:06 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,15 +30,15 @@
.\"
.\" @(#)umask.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: July 17 2013 $
+.Dd $Mdocdate: September 10 2015 $
.Dt UMASK 2
.Os
.Sh NAME
.Nm umask
.Nd set file creation mode mask
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/stat.h>
+.In sys/types.h
+.In sys/stat.h
.Ft mode_t
.Fn umask "mode_t numask"
.Sh DESCRIPTION
diff --git a/lib/libc/sys/utimes.2 b/lib/libc/sys/utimes.2
index f3d15d5190c..10d9671efaf 100644
--- a/lib/libc/sys/utimes.2
+++ b/lib/libc/sys/utimes.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: utimes.2,v 1.25 2015/04/17 04:43:20 guenther Exp $
+.\" $OpenBSD: utimes.2,v 1.26 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: utimes.2,v 1.9 1996/04/23 10:34:16 mycroft Exp $
.\"
.\" Copyright (c) 1990, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)utimes.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: April 17 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt UTIMES 2
.Os
.Sh NAME
@@ -40,13 +40,13 @@
.Nm futimens
.Nd set file access and modification times
.Sh SYNOPSIS
-.Fd #include <sys/time.h>
+.In sys/time.h
.Ft int
.Fn utimes "const char *file" "const struct timeval *times"
.Ft int
.Fn futimes "int fd" "const struct timeval *times"
-.Fd #include <sys/stat.h>
-.Fd #include <fcntl.h>
+.In sys/stat.h
+.In fcntl.h
.Ft int
.Fn utimensat "int fd" "const char *file" "const struct timespec times[2]" "int flag"
.Ft int
diff --git a/lib/libc/sys/vfork.2 b/lib/libc/sys/vfork.2
index 6d77885a6d2..a9e819ac2ca 100644
--- a/lib/libc/sys/vfork.2
+++ b/lib/libc/sys/vfork.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: vfork.2,v 1.19 2015/03/21 22:22:03 jmc Exp $
+.\" $OpenBSD: vfork.2,v 1.20 2015/09/10 17:55:21 schwarze Exp $
.\" $NetBSD: vfork.2,v 1.8 1997/07/10 07:54:13 mikel Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,14 +30,14 @@
.\"
.\" @(#)vfork.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: March 21 2015 $
+.Dd $Mdocdate: September 10 2015 $
.Dt VFORK 2
.Os
.Sh NAME
.Nm vfork
.Nd spawn new process and block parent
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft pid_t
.Fn vfork void
.Sh DESCRIPTION