diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2013-07-17 05:42:12 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2013-07-17 05:42:12 +0000 |
commit | a4c82024e6538bbd6183d6a9a256cba8e7870740 (patch) | |
tree | b978bd46eea7373d1d2888f8229d6ca8469c0252 /lib/libc/sys | |
parent | d8683ba125e75609c811ff26b7cb140871249970 (diff) |
more library history
facts checked by sobrado@
style tweaks and ok jmc@
Diffstat (limited to 'lib/libc/sys')
39 files changed, 270 insertions, 148 deletions
diff --git a/lib/libc/sys/_exit.2 b/lib/libc/sys/_exit.2 index 3169f6dcfa2..77d477b3fa5 100644 --- a/lib/libc/sys/_exit.2 +++ b/lib/libc/sys/_exit.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: _exit.2,v 1.19 2013/06/29 09:08:41 jmc Exp $ +.\" $OpenBSD: _exit.2,v 1.20 2013/07/17 05:42:11 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: June 29 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt _EXIT 2 .Os .Sh NAME @@ -124,10 +124,14 @@ function conforms to An .Fn exit system call first appeared in -.At v1 , -and an +.At v1 . +It accepts the +.Fa status +argument since +.At v2 . +An .Fn _exit -variant in +variant first appeared in .At v7 . The .Fn _Exit diff --git a/lib/libc/sys/accept.2 b/lib/libc/sys/accept.2 index 0ee205ae8f3..e600414c3db 100644 --- a/lib/libc/sys/accept.2 +++ b/lib/libc/sys/accept.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: accept.2,v 1.25 2013/04/21 07:44:59 jmc Exp $ +.\" $OpenBSD: accept.2,v 1.26 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: accept.2,v 1.7 1996/01/31 20:14:42 mycroft Exp $ .\" .\" Copyright (c) 1983, 1990, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)accept.2 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: April 21 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt ACCEPT 2 .Os .Sh NAME @@ -197,8 +197,8 @@ function conforms to .Sh HISTORY The .Fn accept -function appeared in -.Bx 4.2 . +system call first appeared in +.Bx 4.1c . .Sh CAVEATS When .Er EMFILE diff --git a/lib/libc/sys/bind.2 b/lib/libc/sys/bind.2 index 471470299fe..1e90b4add2b 100644 --- a/lib/libc/sys/bind.2 +++ b/lib/libc/sys/bind.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: bind.2,v 1.17 2013/03/31 08:34:27 guenther Exp $ +.\" $OpenBSD: bind.2,v 1.18 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: bind.2,v 1.8 1995/10/12 15:40:46 jtc Exp $ .\" .\" Copyright (c) 1983, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)bind.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: March 31 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt BIND 2 .Os .Sh NAME @@ -137,5 +137,5 @@ function conforms to .Sh HISTORY The .Fn bind -function call appeared in -.Bx 4.2 . +system call first appeared in +.Bx 4.1c . diff --git a/lib/libc/sys/chmod.2 b/lib/libc/sys/chmod.2 index 6821f5df14a..3f601608842 100644 --- a/lib/libc/sys/chmod.2 +++ b/lib/libc/sys/chmod.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: chmod.2,v 1.22 2013/04/01 20:16:31 guenther Exp $ +.\" $OpenBSD: chmod.2,v 1.23 2013/07/17 05:42:11 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: April 1 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt CHMOD 2 .Os .Sh NAME @@ -269,7 +269,7 @@ system call first appeared in .At v1 ; .Fn fchmod in -.Bx 4.2 ; +.Bx 4.1c ; and .Fn fchmodat has been available since diff --git a/lib/libc/sys/chown.2 b/lib/libc/sys/chown.2 index d3e3c2127fc..9aeec9d5000 100644 --- a/lib/libc/sys/chown.2 +++ b/lib/libc/sys/chown.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: chown.2,v 1.21 2013/04/01 20:16:31 guenther Exp $ +.\" $OpenBSD: chown.2,v 1.22 2013/07/17 05:42:11 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: April 1 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt CHOWN 2 .Os .Sh NAME @@ -238,7 +238,7 @@ and functions are expected to conform to .St -p1003.1-2008 . .Sh HISTORY -A +The .Fn chown system call first appeared in .At v1 . @@ -253,22 +253,22 @@ was made a separate argument. The .Fn fchown system call first appeared in -.Bx 4.2 . +.Bx 4.1c . .Pp The .Fn chown and .Fn fchown -functions were changed to follow symbolic links in +system calls were changed to follow symbolic links in .Bx 4.4 ; therefore, and for compatibility with .At V.4 , the .Fn lchown -function was added to +system call was added to .Ox 2.1 . .Pp The .Fn fchownat -function appeared in +system call has been available since .Ox 5.0 . diff --git a/lib/libc/sys/chroot.2 b/lib/libc/sys/chroot.2 index 8afbddb155c..a93626adbbf 100644 --- a/lib/libc/sys/chroot.2 +++ b/lib/libc/sys/chroot.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: chroot.2,v 1.17 2011/02/11 22:12:28 weerd Exp $ +.\" $OpenBSD: chroot.2,v 1.18 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: chroot.2,v 1.7 1995/02/27 12:32:12 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)chroot.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: February 11 2011 $ +.Dd $Mdocdate: July 17 2013 $ .Dt CHROOT 2 .Os .Sh NAME @@ -116,7 +116,7 @@ The caller is not the superuser. .Sh HISTORY The .Fn chroot -function call appeared in -.Bx 4.2 . +system call first appeared in +.At v7 . .Sh CAVEATS There are ways for a root process to escape from the chroot jail. diff --git a/lib/libc/sys/connect.2 b/lib/libc/sys/connect.2 index 99d525e2a2d..8bb8f693ee0 100644 --- a/lib/libc/sys/connect.2 +++ b/lib/libc/sys/connect.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: connect.2,v 1.23 2013/03/31 08:34:27 guenther Exp $ +.\" $OpenBSD: connect.2,v 1.24 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: connect.2,v 1.8 1995/10/12 15:40:48 jtc Exp $ .\" .\" Copyright (c) 1983, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)connect.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: March 31 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt CONNECT 2 .Os .Sh NAME @@ -183,5 +183,5 @@ function conforms to .Sh HISTORY The .Fn connect -function call appeared in -.Bx 4.2 . +system call first appeared in +.Bx 4.1c . diff --git a/lib/libc/sys/dup.2 b/lib/libc/sys/dup.2 index e0cb083b3f4..463c6f0486f 100644 --- a/lib/libc/sys/dup.2 +++ b/lib/libc/sys/dup.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: dup.2,v 1.15 2013/03/31 08:34:27 guenther Exp $ +.\" $OpenBSD: dup.2,v 1.16 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: dup.2,v 1.4 1995/02/27 12:32:21 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)dup.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: March 31 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt DUP 2 .Os .Sh NAME @@ -144,3 +144,12 @@ and .Fn dup2 are expected to conform to .St -p1003.1-2008 . +.Sh HISTORY +The +.Fn dup +system call first appeared in +.At v3 +and +.Fn dup2 +in +.At v7 . diff --git a/lib/libc/sys/flock.2 b/lib/libc/sys/flock.2 index 3eda80831e0..669faab343e 100644 --- a/lib/libc/sys/flock.2 +++ b/lib/libc/sys/flock.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: flock.2,v 1.16 2007/05/31 19:19:32 jmc Exp $ +.\" $OpenBSD: flock.2,v 1.17 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: flock.2,v 1.5 1995/02/27 12:32:32 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)flock.2 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: July 17 2013 $ .Dt FLOCK 2 .Os .Sh NAME @@ -142,5 +142,5 @@ The referenced descriptor is not of the correct type. .Sh HISTORY The .Fn flock -function call appeared in -.Bx 4.2 . +system call first appeared in +.Bx 4.1c . diff --git a/lib/libc/sys/fsync.2 b/lib/libc/sys/fsync.2 index 1684c49dcfa..4a2f96ef91f 100644 --- a/lib/libc/sys/fsync.2 +++ b/lib/libc/sys/fsync.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fsync.2,v 1.11 2013/04/15 16:38:21 matthew Exp $ +.\" $OpenBSD: fsync.2,v 1.12 2013/07/17 05:42:11 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: April 15 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt FSYNC 2 .Os .Sh NAME @@ -97,11 +97,11 @@ functions conform to .Sh HISTORY The .Fn fsync -function appeared in -.Bx 4.2 . -The +system call first appeared in +.Bx 4.1c , +and the .Fn fdatasync -function appeared in +function has been available since .Ox 5.4 . .Sh BUGS The diff --git a/lib/libc/sys/getgid.2 b/lib/libc/sys/getgid.2 index 61f42189211..8dd243e74c1 100644 --- a/lib/libc/sys/getgid.2 +++ b/lib/libc/sys/getgid.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getgid.2,v 1.17 2013/03/30 06:44:44 guenther Exp $ +.\" $OpenBSD: getgid.2,v 1.18 2013/07/17 05:42:11 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: March 30 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt GETGID 2 .Os .Sh NAME @@ -79,3 +79,12 @@ and .Fn getegid functions conform to .St -p1003.1-2008 . +.Sh HISTORY +The +.Fn getgid +system call first appeared in +.At v4 , +and +.Fn getegid +in +.At v7 . diff --git a/lib/libc/sys/getgroups.2 b/lib/libc/sys/getgroups.2 index f6488e96ed3..a6c1d44280e 100644 --- a/lib/libc/sys/getgroups.2 +++ b/lib/libc/sys/getgroups.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getgroups.2,v 1.12 2013/03/30 06:44:44 guenther Exp $ +.\" $OpenBSD: getgroups.2,v 1.13 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: getgroups.2,v 1.8 1995/02/27 12:32:57 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)getgroups.2 8.2 (Berkeley) 4/16/94 .\" -.Dd $Mdocdate: March 30 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt GETGROUPS 2 .Os .Sh NAME @@ -95,5 +95,5 @@ function conforms to .Sh HISTORY The .Fn getgroups -function call appeared in -.Bx 4.2 . +system call first appeared in +.Bx 4.1c . diff --git a/lib/libc/sys/getitimer.2 b/lib/libc/sys/getitimer.2 index 3ca18fa7dfd..2c8b83333d8 100644 --- a/lib/libc/sys/getitimer.2 +++ b/lib/libc/sys/getitimer.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getitimer.2,v 1.22 2013/03/31 22:11:26 guenther Exp $ +.\" $OpenBSD: getitimer.2,v 1.23 2013/07/17 05:42:11 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: March 31 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt GETITIMER 2 .Os .Sh NAME @@ -217,5 +217,7 @@ functions conform to .Sh HISTORY The .Fn getitimer -function call appeared in -.Bx 4.2 . +and +.Fn setitimer +system calls first appeared in +.Bx 4.1c . diff --git a/lib/libc/sys/getpriority.2 b/lib/libc/sys/getpriority.2 index e3d18fb3736..08407ab0ef8 100644 --- a/lib/libc/sys/getpriority.2 +++ b/lib/libc/sys/getpriority.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getpriority.2,v 1.13 2013/03/31 22:11:26 guenther Exp $ +.\" $OpenBSD: getpriority.2,v 1.14 2013/07/17 05:42:11 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: March 31 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt GETPRIORITY 2 .Os .Sh NAME @@ -144,7 +144,15 @@ and functions conform to .St -p1003.1-2008 . .Sh HISTORY +The predecessor of these functions, the former +.Fn nice +system call, appeared in +.At v3 +and was removed in +.Bx 4.3 Reno . The .Fn getpriority -function call appeared in -.Bx 4.2 . +and +.Fn setpriority +system calls appeared in +.Bx 4.1c . diff --git a/lib/libc/sys/getrlimit.2 b/lib/libc/sys/getrlimit.2 index 4ceecfcff14..6c897202862 100644 --- a/lib/libc/sys/getrlimit.2 +++ b/lib/libc/sys/getrlimit.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getrlimit.2,v 1.21 2013/04/08 05:55:04 jmc Exp $ +.\" $OpenBSD: getrlimit.2,v 1.22 2013/07/17 05:42:11 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: April 8 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt GETRLIMIT 2 .Os .Sh NAME @@ -233,8 +233,10 @@ resources are non-standard extensions. .Sh HISTORY The .Fn getrlimit -function call appeared in -.Bx 4.2 . +and +.Fn setrlimit +system calls first appeared in +.Bx 4.1c . .Sh BUGS The .Dv RLIMIT_AS diff --git a/lib/libc/sys/getrusage.2 b/lib/libc/sys/getrusage.2 index 787ef967bfc..bbec1528455 100644 --- a/lib/libc/sys/getrusage.2 +++ b/lib/libc/sys/getrusage.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getrusage.2,v 1.14 2013/03/31 22:11:26 guenther Exp $ +.\" $OpenBSD: getrusage.2,v 1.15 2013/07/17 05:42:11 schwarze Exp $ .\" .\" Copyright (c) 1985, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)getrusage.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: March 31 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt GETRUSAGE 2 .Os .Sh NAME @@ -163,10 +163,15 @@ The function conforms to .St -p1003.1-2008 . .Sh HISTORY +A predecessor to +.Fn getrusage , +.Fn times , +first appeared in +.At v3 . The .Fn getrusage -function call appeared in -.Bx 4.2 . +system call first appeared in +.Bx 4.1c . .Sh BUGS There is no way to obtain information about a child process that has not yet terminated. diff --git a/lib/libc/sys/gettimeofday.2 b/lib/libc/sys/gettimeofday.2 index 38a2554d751..823801f0e3f 100644 --- a/lib/libc/sys/gettimeofday.2 +++ b/lib/libc/sys/gettimeofday.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: gettimeofday.2,v 1.23 2013/04/19 16:12:05 tedu Exp $ +.\" $OpenBSD: gettimeofday.2,v 1.24 2013/07/17 05:42:11 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: April 19 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt GETTIMEOFDAY 2 .Os .Sh NAME @@ -144,7 +144,11 @@ As predecessors of these functions, former system calls and .Fn stime first appeared in -.At v1 . +.At v1 , +and +.Fn ftime +first appeared in +.At v7 . The .Fn gettimeofday and diff --git a/lib/libc/sys/kill.2 b/lib/libc/sys/kill.2 index 8686f392969..4cc66f3052d 100644 --- a/lib/libc/sys/kill.2 +++ b/lib/libc/sys/kill.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: kill.2,v 1.19 2013/05/19 20:55:28 guenther Exp $ +.\" $OpenBSD: kill.2,v 1.20 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: kill.2,v 1.7 1995/02/27 12:33:53 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)kill.2 8.3 (Berkeley) 4/19/94 .\" -.Dd $Mdocdate: May 19 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt KILL 2 .Os .Sh NAME @@ -143,6 +143,15 @@ The .Fn kill function is expected to conform to .St -p1003.1-2008 . +.Sh HISTORY +The +.Fn kill +system call first appeared in +.At v3 . +The +.Ar sig +argument was introduced in +.At v4 . .Sh BUGS .St -p1003.1-2008 specifies that diff --git a/lib/libc/sys/listen.2 b/lib/libc/sys/listen.2 index 4737803d799..856d7a8fcda 100644 --- a/lib/libc/sys/listen.2 +++ b/lib/libc/sys/listen.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: listen.2,v 1.12 2013/04/08 06:26:12 guenther Exp $ +.\" $OpenBSD: listen.2,v 1.13 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: listen.2,v 1.7 1996/02/16 20:38:45 phil Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)listen.2 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: April 8 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt LISTEN 2 .Os .Sh NAME @@ -100,8 +100,8 @@ function conforms to .Sh HISTORY The .Fn listen -function call appeared in -.Bx 4.2 . +system call first appeared in +.Bx 4.1c . .Sh BUGS The .Fa backlog diff --git a/lib/libc/sys/mkdir.2 b/lib/libc/sys/mkdir.2 index d1142108bfd..b41a830f26e 100644 --- a/lib/libc/sys/mkdir.2 +++ b/lib/libc/sys/mkdir.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mkdir.2,v 1.13 2013/04/01 20:16:31 guenther Exp $ +.\" $OpenBSD: mkdir.2,v 1.14 2013/07/17 05:42:11 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: April 1 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt MKDIR 2 .Os .Sh NAME @@ -169,11 +169,32 @@ and functions conform to .St -p1003.1-2008 . .Sh HISTORY -The +A .Fn mkdir system call first appeared in .At v1 . +It was renamed to +.Fn makdir +in +.At v2 . +However, it did not exist from +.At v4 +to +.Bx 4.1 ; +in those releases, +.Xr mknod 2 +had to be used. +Since +.Fn mkdir +reappeared in +.Bx 4.1c , +it no longer requires superuser privileges and it automatically creates the +.Sq \&. +and +.Sq \&.. +directory entries. +.Pp The .Fn mkdirat -function appeared in +system call has been available since .Ox 5.0 . diff --git a/lib/libc/sys/mknod.2 b/lib/libc/sys/mknod.2 index f3174508cdb..55805e99f82 100644 --- a/lib/libc/sys/mknod.2 +++ b/lib/libc/sys/mknod.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mknod.2,v 1.17 2013/04/01 20:16:31 guenther Exp $ +.\" $OpenBSD: mknod.2,v 1.18 2013/07/17 05:42:11 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: April 1 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt MKNOD 2 .Os .Sh NAME @@ -191,11 +191,11 @@ and functions conform to .St -p1003.1-2008 . .Sh HISTORY -A -.Fn mknod -function call appeared in -.At v6 . The +.Fn mknod +system call first appeared in +.At v4 , +and .Fn mknodat -function appeared in +has been available since .Ox 5.0 . diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2 index 37f819c71ab..b040136d7fc 100644 --- a/lib/libc/sys/mmap.2 +++ b/lib/libc/sys/mmap.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mmap.2,v 1.41 2013/04/08 19:35:00 guenther Exp $ +.\" $OpenBSD: mmap.2,v 1.42 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: mmap.2,v 1.5 1995/06/24 10:48:59 cgd Exp $ .\" .\" Copyright (c) 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)mmap.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: April 8 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt MMAP 2 .Os .Sh NAME @@ -253,6 +253,11 @@ was specified and insufficient memory was available. .Xr msync 2 , .Xr munmap 2 , .Xr getpagesize 3 +.Sh HISTORY +The +.Fn mmap +system call first appeared in +.Bx 4.1c . .Sh BUGS Due to a limitation of the current vm system (see .Xr uvm 9 ) , diff --git a/lib/libc/sys/munmap.2 b/lib/libc/sys/munmap.2 index 565f39d175d..80cd4f4790a 100644 --- a/lib/libc/sys/munmap.2 +++ b/lib/libc/sys/munmap.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: munmap.2,v 1.14 2009/01/31 16:52:15 pyr Exp $ +.\" $OpenBSD: munmap.2,v 1.15 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: munmap.2,v 1.5 1995/02/27 12:35:03 cgd Exp $ .\" .\" Copyright (c) 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)munmap.2 8.2 (Berkeley) 4/15/94 .\" -.Dd $Mdocdate: January 31 2009 $ +.Dd $Mdocdate: July 17 2013 $ .Dt MUNMAP 2 .Os .Sh NAME @@ -82,5 +82,5 @@ valid address space. .Sh HISTORY The .Fn munmap -function first appeared in -.Bx 4.4 . +system call first appeared in +.Bx 4.1c . diff --git a/lib/libc/sys/nanosleep.2 b/lib/libc/sys/nanosleep.2 index 019d5f7fb96..9089d62735d 100644 --- a/lib/libc/sys/nanosleep.2 +++ b/lib/libc/sys/nanosleep.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: nanosleep.2,v 1.13 2013/04/20 23:47:58 tedu Exp $ +.\" $OpenBSD: nanosleep.2,v 1.14 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: nanosleep.2,v 1.1 1997/04/17 18:12:02 jtc Exp $ .\" .\" Copyright (c) 1986, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)sleep.3 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: April 20 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt NANOSLEEP 2 .Os .Sh NAME @@ -93,3 +93,20 @@ The .Fn nanosleep function conforms to .St -p1003.1-2008 . +.Sh HISTORY +The predecessor of this system call, +.Fn sleep , +appeared in +.At v3 , +but was removed when +.Xr alarm 3 +was introduced into +.At v7 . +The +.Fn nanosleep +system call has been available since +.Nx 1.3 +and was ported to +.Ox 2.1 +and +.Fx 3.0 . diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index af4d35bdce4..d122e315ed4 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: open.2,v 1.44 2013/03/31 05:07:55 guenther Exp $ +.\" $OpenBSD: open.2,v 1.45 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: open.2,v 1.8 1995/02/27 12:35:14 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)open.2 8.2 (Berkeley) 11/16/93 .\" -.Dd $Mdocdate: March 31 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt OPEN 2 .Os .Sh NAME @@ -434,9 +434,19 @@ The .Fa flags arguments has been supported since .Bx 4.2 . +Before that, a dedicated +.Fn creat +system call had to be used to create new files; +it appeared in +.At v1 , +was deprecated in +.Bx 4.3 Reno , +and removed in +.Ox 5.0 . +.Pp The .Fn openat -function call appeared in +system call has been available since .Ox 5.0 . .Sh CAVEATS The diff --git a/lib/libc/sys/pipe.2 b/lib/libc/sys/pipe.2 index b0a22f4915c..be482356cc3 100644 --- a/lib/libc/sys/pipe.2 +++ b/lib/libc/sys/pipe.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pipe.2,v 1.14 2013/03/30 06:44:44 guenther Exp $ +.\" $OpenBSD: pipe.2,v 1.15 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: pipe.2,v 1.6 1995/02/27 12:35:27 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)pipe.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: March 30 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt PIPE 2 .Os .Sh NAME @@ -110,3 +110,6 @@ A .Fn pipe function call appeared in .At v3 . +Since +.At v4 , +it allocates two distict file descriptors. diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2 index 99e04b94f89..797472251ed 100644 --- a/lib/libc/sys/ptrace.2 +++ b/lib/libc/sys/ptrace.2 @@ -1,8 +1,8 @@ -.\" $OpenBSD: ptrace.2,v 1.26 2008/09/16 19:41:06 kettenis Exp $ +.\" $OpenBSD: ptrace.2,v 1.27 2013/07/17 05:42:11 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: September 16 2008 $ +.Dd $Mdocdate: July 17 2013 $ .Dt PTRACE 2 .Os .Sh NAME @@ -558,6 +558,11 @@ An attempt was made to use on a system process. .El .El +.Sh HISTORY +The +.Fn ptrace +system call first appeared in +.At v6 . .Sh BUGS On several RISC architectures (such as aviion, luna88k, mvme88k, sparc and sparc64), diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2 index b898d00d345..c544788180a 100644 --- a/lib/libc/sys/read.2 +++ b/lib/libc/sys/read.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: read.2,v 1.32 2013/04/08 06:26:12 guenther Exp $ +.\" $OpenBSD: read.2,v 1.33 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: read.2,v 1.6 1995/02/27 12:35:47 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)read.2 8.4 (Berkeley) 2/26/94 .\" -.Dd $Mdocdate: April 8 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt READ 2 .Os .Sh NAME @@ -250,7 +250,7 @@ system call first appeared in .At v1 ; .Fn readv in -.Bx 4.2 ; +.Bx 4.1c ; .Fn pread in .At V.4 ; diff --git a/lib/libc/sys/readlink.2 b/lib/libc/sys/readlink.2 index ae9c40408da..b5e2abad447 100644 --- a/lib/libc/sys/readlink.2 +++ b/lib/libc/sys/readlink.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: readlink.2,v 1.15 2013/04/01 20:16:31 guenther Exp $ +.\" $OpenBSD: readlink.2,v 1.16 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: readlink.2,v 1.7 1995/02/27 12:35:54 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)readlink.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: April 1 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt READLINK 2 .Os .Sh NAME @@ -160,9 +160,9 @@ functions conform to .Sh HISTORY The .Fn readlink -function call appeared in -.Bx 4.2 . +system call first appeared in +.Bx 4.1c . The .Fn readlinkat -function call appeared in +system call has been available since .Ox 5.0 . diff --git a/lib/libc/sys/select.2 b/lib/libc/sys/select.2 index 74556c7cc0b..335660c8c6b 100644 --- a/lib/libc/sys/select.2 +++ b/lib/libc/sys/select.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: select.2,v 1.30 2013/05/05 01:07:46 tedu Exp $ +.\" $OpenBSD: select.2,v 1.31 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: select.2,v 1.5 1995/06/27 22:32:28 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)select.2 8.2 (Berkeley) 3/25/94 .\" -.Dd $Mdocdate: May 5 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt SELECT 2 .Os .Sh NAME @@ -197,11 +197,11 @@ One of its components is negative or too large. .Sh HISTORY The .Fn select -function appeared in -.Bx 4.2 . +system call first appeared in +.Bx 4.1c . The .Fn pselect -function appeared in +system call has been available since .Ox 5.4 . .Sh BUGS Although the provision of diff --git a/lib/libc/sys/setgroups.2 b/lib/libc/sys/setgroups.2 index 402b4a4ccbc..c6d7f37e622 100644 --- a/lib/libc/sys/setgroups.2 +++ b/lib/libc/sys/setgroups.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: setgroups.2,v 1.10 2007/05/31 19:19:33 jmc Exp $ +.\" $OpenBSD: setgroups.2,v 1.11 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: setgroups.2,v 1.7 1995/02/27 12:36:49 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993, 1994 @@ -30,7 +30,7 @@ .\" .\" @(#)setgroups.2 8.2 (Berkeley) 4/16/94 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: July 17 2013 $ .Dt SETGROUPS 2 .Os .Sh NAME @@ -83,5 +83,5 @@ address space. .Sh HISTORY The .Fn setgroups -function call appeared in -.Bx 4.2 . +system call first appeared in +.Bx 4.1c . diff --git a/lib/libc/sys/setregid.2 b/lib/libc/sys/setregid.2 index 6b92da8c74f..0d7aedc1a20 100644 --- a/lib/libc/sys/setregid.2 +++ b/lib/libc/sys/setregid.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: setregid.2,v 1.7 2012/06/26 21:27:44 tedu Exp $ +.\" $OpenBSD: setregid.2,v 1.8 2013/07/17 05:42:11 schwarze Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)setregid.2 8.2 (Berkeley) 4/16/94 .\" -.Dd $Mdocdate: June 26 2012 $ +.Dd $Mdocdate: July 17 2013 $ .Dt SETREGID 2 .Os .Sh NAME @@ -97,8 +97,8 @@ specifications. .Sh HISTORY The .Fn setregid -function call appeared in -.Bx 4.2 . +system call first appeared in +.Bx 4.1c . A semantically different version appeared in .Bx 4.4 . The current version, with the original semantics restored, appeared in diff --git a/lib/libc/sys/setreuid.2 b/lib/libc/sys/setreuid.2 index f67a886ecca..e4ebb4b56a0 100644 --- a/lib/libc/sys/setreuid.2 +++ b/lib/libc/sys/setreuid.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: setreuid.2,v 1.8 2012/06/26 21:27:44 tedu Exp $ +.\" $OpenBSD: setreuid.2,v 1.9 2013/07/17 05:42:11 schwarze Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)setreuid.2 8.2 (Berkeley) 4/16/94 .\" -.Dd $Mdocdate: June 26 2012 $ +.Dd $Mdocdate: July 17 2013 $ .Dt SETREUID 2 .Os .Sh NAME @@ -97,8 +97,8 @@ specifications. .Sh HISTORY The .Fn setreuid -function call appeared in -.Bx 4.2 . +system call first appeared in +.Bx 4.1c . A semantically different version appeared in .Bx 4.4 . The current version, with the original semantics restored, appeared in diff --git a/lib/libc/sys/shutdown.2 b/lib/libc/sys/shutdown.2 index 3abbee59558..faa2f59a8d7 100644 --- a/lib/libc/sys/shutdown.2 +++ b/lib/libc/sys/shutdown.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: shutdown.2,v 1.13 2013/05/10 06:12:42 guenther Exp $ +.\" $OpenBSD: shutdown.2,v 1.14 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: shutdown.2,v 1.5 1995/02/27 12:37:11 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)shutdown.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: May 10 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt SHUTDOWN 2 .Os .Sh NAME @@ -134,8 +134,8 @@ function conforms to .Sh HISTORY The .Fn shutdown -function call appeared in -.Bx 4.2 . +system call first appeared in +.Bx 4.1c . The .Dv SHUT_RD , SHUT_WR , and diff --git a/lib/libc/sys/socket.2 b/lib/libc/sys/socket.2 index da6bc8d3cae..63a8a36268e 100644 --- a/lib/libc/sys/socket.2 +++ b/lib/libc/sys/socket.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: socket.2,v 1.34 2013/04/08 19:49:55 guenther Exp $ +.\" $OpenBSD: socket.2,v 1.35 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: socket.2,v 1.5 1995/02/27 12:37:53 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)socket.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: April 8 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt SOCKET 2 .Os .Sh NAME @@ -265,5 +265,5 @@ function conforms to .Sh HISTORY The .Fn socket -function call appeared in -.Bx 4.2 . +system call first appeared in +.Bx 4.1c . diff --git a/lib/libc/sys/symlink.2 b/lib/libc/sys/symlink.2 index 38047d6d2df..924a25df01a 100644 --- a/lib/libc/sys/symlink.2 +++ b/lib/libc/sys/symlink.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: symlink.2,v 1.15 2013/04/01 20:16:31 guenther Exp $ +.\" $OpenBSD: symlink.2,v 1.16 2013/07/17 05:42:11 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: April 1 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt SYMLINK 2 .Os .Sh NAME @@ -197,9 +197,9 @@ functions conform to .Sh HISTORY The .Fn symlink -function call appeared in -.Bx 4.2 . +system call first appeared in +.Bx 4.1c . The .Fn symlinkat -function call appeared in +system call has been available since .Ox 5.0 . diff --git a/lib/libc/sys/syscall.2 b/lib/libc/sys/syscall.2 index 0d55b2257d5..0b0f56325da 100644 --- a/lib/libc/sys/syscall.2 +++ b/lib/libc/sys/syscall.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: syscall.2,v 1.9 2007/05/31 19:19:34 jmc Exp $ +.\" $OpenBSD: syscall.2,v 1.10 2013/07/17 05:42:11 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: May 31 2007 $ +.Dd $Mdocdate: July 17 2013 $ .Dt SYSCALL 2 .Os .Sh NAME @@ -74,10 +74,14 @@ A \-1 return value indicates an error, and an error code is stored in .Va errno . .Sh HISTORY +The predecessor of these functions, the former +.Fn indir +system call, first appeared in +.At v4 . The .Fn syscall -function call appeared in -.Bx 4.0 . +function first appeared in +.Bx 3 . .Sh BUGS There is no way to simulate system calls that have multiple return values such as diff --git a/lib/libc/sys/truncate.2 b/lib/libc/sys/truncate.2 index 23c9c45f449..cea2136752b 100644 --- a/lib/libc/sys/truncate.2 +++ b/lib/libc/sys/truncate.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: truncate.2,v 1.14 2013/04/08 19:49:55 guenther Exp $ +.\" $OpenBSD: truncate.2,v 1.15 2013/07/17 05:42:11 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: April 8 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt TRUNCATE 2 .Os .Sh NAME @@ -138,8 +138,8 @@ The .Fn truncate and .Fn ftruncate -function calls appeared in -.Bx 4.2 . +system calls first appeared in +.Bx 4.1c . .Sh BUGS These calls should be generalized to allow ranges of bytes in a file to be discarded. diff --git a/lib/libc/sys/umask.2 b/lib/libc/sys/umask.2 index ea3805a3faf..59d603c2e8f 100644 --- a/lib/libc/sys/umask.2 +++ b/lib/libc/sys/umask.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: umask.2,v 1.9 2013/03/30 06:44:44 guenther Exp $ +.\" $OpenBSD: umask.2,v 1.10 2013/07/17 05:42:11 schwarze Exp $ .\" $NetBSD: umask.2,v 1.6 1995/02/27 12:39:06 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)umask.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: March 30 2013 $ +.Dd $Mdocdate: July 17 2013 $ .Dt UMASK 2 .Os .Sh NAME @@ -80,3 +80,8 @@ The .Fn umask function conforms to .St -p1003.1-2008 . +.Sh HISTORY +The +.Fn umask +system call first appeared in +.At v7 . |