summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2013-07-17 05:42:12 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2013-07-17 05:42:12 +0000
commita4c82024e6538bbd6183d6a9a256cba8e7870740 (patch)
treeb978bd46eea7373d1d2888f8229d6ca8469c0252 /lib
parentd8683ba125e75609c811ff26b7cb140871249970 (diff)
more library history
facts checked by sobrado@ style tweaks and ok jmc@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/compat-43/gethostid.38
-rw-r--r--lib/libc/compat-43/sigblock.317
-rw-r--r--lib/libc/compat-43/sigpause.317
-rw-r--r--lib/libc/compat-43/sigsetmask.317
-rw-r--r--lib/libc/compat-43/sigvec.315
-rw-r--r--lib/libc/db/man/dbm.315
-rw-r--r--lib/libc/gen/alarm.312
-rw-r--r--lib/libc/gen/ctype.319
-rw-r--r--lib/libc/gen/exec.323
-rw-r--r--lib/libc/gen/fnmatch.38
-rw-r--r--lib/libc/gen/getcwd.312
-rw-r--r--lib/libc/gen/getpwnam.39
-rw-r--r--lib/libc/gen/isalnum.39
-rw-r--r--lib/libc/gen/isascii.39
-rw-r--r--lib/libc/gen/iscntrl.39
-rw-r--r--lib/libc/gen/isdigit.39
-rw-r--r--lib/libc/gen/islower.39
-rw-r--r--lib/libc/gen/isprint.39
-rw-r--r--lib/libc/gen/ispunct.39
-rw-r--r--lib/libc/gen/isspace.39
-rw-r--r--lib/libc/gen/isupper.39
-rw-r--r--lib/libc/gen/nlist.310
-rw-r--r--lib/libc/gen/pause.321
-rw-r--r--lib/libc/gen/setjmp.310
-rw-r--r--lib/libc/gen/signal.319
-rw-r--r--lib/libc/gen/time.38
-rw-r--r--lib/libc/gen/times.317
-rw-r--r--lib/libc/regex/regex.317
-rw-r--r--lib/libc/stdio/fclose.39
-rw-r--r--lib/libc/stdio/ferror.313
-rw-r--r--lib/libc/stdio/fgets.311
-rw-r--r--lib/libc/stdio/fread.311
-rw-r--r--lib/libc/stdio/fseek.312
-rw-r--r--lib/libc/stdio/perror.39
-rw-r--r--lib/libc/stdio/printf.321
-rw-r--r--lib/libc/stdio/scanf.313
-rw-r--r--lib/libc/stdio/setbuf.39
-rw-r--r--lib/libc/stdio/ungetc.39
-rw-r--r--lib/libc/stdlib/abort.39
-rw-r--r--lib/libc/stdlib/abs.39
-rw-r--r--lib/libc/stdlib/atof.39
-rw-r--r--lib/libc/stdlib/atoi.39
-rw-r--r--lib/libc/stdlib/exit.38
-rw-r--r--lib/libc/stdlib/ldiv.310
-rw-r--r--lib/libc/stdlib/qsort.39
-rw-r--r--lib/libc/string/strcat.310
-rw-r--r--lib/libc/string/strcmp.310
-rw-r--r--lib/libc/string/strcpy.310
-rw-r--r--lib/libc/string/strlen.37
-rw-r--r--lib/libc/sys/_exit.214
-rw-r--r--lib/libc/sys/accept.28
-rw-r--r--lib/libc/sys/bind.28
-rw-r--r--lib/libc/sys/chmod.26
-rw-r--r--lib/libc/sys/chown.214
-rw-r--r--lib/libc/sys/chroot.28
-rw-r--r--lib/libc/sys/connect.28
-rw-r--r--lib/libc/sys/dup.213
-rw-r--r--lib/libc/sys/flock.28
-rw-r--r--lib/libc/sys/fsync.212
-rw-r--r--lib/libc/sys/getgid.213
-rw-r--r--lib/libc/sys/getgroups.28
-rw-r--r--lib/libc/sys/getitimer.210
-rw-r--r--lib/libc/sys/getpriority.216
-rw-r--r--lib/libc/sys/getrlimit.210
-rw-r--r--lib/libc/sys/getrusage.213
-rw-r--r--lib/libc/sys/gettimeofday.210
-rw-r--r--lib/libc/sys/kill.213
-rw-r--r--lib/libc/sys/listen.28
-rw-r--r--lib/libc/sys/mkdir.229
-rw-r--r--lib/libc/sys/mknod.214
-rw-r--r--lib/libc/sys/mmap.29
-rw-r--r--lib/libc/sys/munmap.28
-rw-r--r--lib/libc/sys/nanosleep.221
-rw-r--r--lib/libc/sys/open.216
-rw-r--r--lib/libc/sys/pipe.27
-rw-r--r--lib/libc/sys/ptrace.29
-rw-r--r--lib/libc/sys/read.26
-rw-r--r--lib/libc/sys/readlink.210
-rw-r--r--lib/libc/sys/select.210
-rw-r--r--lib/libc/sys/setgroups.28
-rw-r--r--lib/libc/sys/setregid.28
-rw-r--r--lib/libc/sys/setreuid.28
-rw-r--r--lib/libc/sys/shutdown.28
-rw-r--r--lib/libc/sys/socket.28
-rw-r--r--lib/libc/sys/symlink.210
-rw-r--r--lib/libc/sys/syscall.212
-rw-r--r--lib/libc/sys/truncate.28
-rw-r--r--lib/libc/sys/umask.29
-rw-r--r--lib/libc/time/ctime.39
-rw-r--r--lib/libcompat/4.1/ftime.38
-rw-r--r--lib/libcompat/4.1/stty.320
-rw-r--r--lib/libm/man/cosh.39
-rw-r--r--lib/libm/man/exp.326
-rw-r--r--lib/libm/man/floor.39
-rw-r--r--lib/libm/man/fmod.39
-rw-r--r--lib/libm/man/hypot.313
-rw-r--r--lib/libm/man/j0.315
-rw-r--r--lib/libm/man/lgamma.38
-rw-r--r--lib/libm/man/sin.39
-rw-r--r--lib/libm/man/sinh.39
-rw-r--r--lib/libm/man/sqrt.39
-rw-r--r--lib/libm/man/tanh.39
102 files changed, 815 insertions, 337 deletions
diff --git a/lib/libc/compat-43/gethostid.3 b/lib/libc/compat-43/gethostid.3
index b6259db568a..b4cc3b786d9 100644
--- a/lib/libc/compat-43/gethostid.3
+++ b/lib/libc/compat-43/gethostid.3
@@ -25,9 +25,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: gethostid.3,v 1.12 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: gethostid.3,v 1.13 2013/07/17 05:42:10 schwarze Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt GETHOSTID 3
.Os
.Sh NAME
@@ -65,8 +65,8 @@ The
.Fn gethostid
and
.Fn sethostid
-syscalls appeared in
-.Bx 4.2
+system calls first appeared in
+.Bx 4.1c
and were dropped in
.Bx 4.4 .
.Sh BUGS
diff --git a/lib/libc/compat-43/sigblock.3 b/lib/libc/compat-43/sigblock.3
index c6dfd6b4f28..973bf9d8297 100644
--- a/lib/libc/compat-43/sigblock.3
+++ b/lib/libc/compat-43/sigblock.3
@@ -25,9 +25,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: sigblock.3,v 1.15 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: sigblock.3,v 1.16 2013/07/17 05:42:10 schwarze Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt SIGBLOCK 3
.Os
.Sh NAME
@@ -109,8 +109,13 @@ sigprocmask(SIG_BLOCK, NULL, &set);
.Xr sigsetmask 3 ,
.Xr sigsetops 3
.Sh HISTORY
-The
+A
.Fn sigblock
-function call appeared in
-.Bx 4.2
-and has been deprecated.
+system call first appeared in
+.Bx 4.2 .
+In
+.Bx 4.3 Reno ,
+it was reimplemented as a wrapper around
+.Xr sigprocmask 2 .
+The old system call was kept for compatibility until
+.Ox 4.9 .
diff --git a/lib/libc/compat-43/sigpause.3 b/lib/libc/compat-43/sigpause.3
index 3cc174c8440..21e0b114079 100644
--- a/lib/libc/compat-43/sigpause.3
+++ b/lib/libc/compat-43/sigpause.3
@@ -25,9 +25,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: sigpause.3,v 1.13 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: sigpause.3,v 1.14 2013/07/17 05:42:10 schwarze Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt SIGPAUSE 3
.Os
.Sh NAME
@@ -63,8 +63,13 @@ set to
.Xr sigblock 3 ,
.Xr sigvec 3
.Sh HISTORY
-The
+A
.Fn sigpause
-function call appeared in
-.Bx 4.2
-and has been deprecated.
+system call first appeared in
+.Bx 4.2 .
+In
+.Bx 4.3 Reno ,
+it was reimplemented as a wrapper around
+.Xr sigsuspend 2 .
+The old system call was kept for compatibility until
+.Ox 4.9 .
diff --git a/lib/libc/compat-43/sigsetmask.3 b/lib/libc/compat-43/sigsetmask.3
index ab972181872..20cab697968 100644
--- a/lib/libc/compat-43/sigsetmask.3
+++ b/lib/libc/compat-43/sigsetmask.3
@@ -25,9 +25,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: sigsetmask.3,v 1.14 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: sigsetmask.3,v 1.15 2013/07/17 05:42:10 schwarze Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt SIGSETMASK 3
.Os
.Sh NAME
@@ -130,8 +130,13 @@ sigemptyset(&eset);
.Xr sigsetops 3 ,
.Xr sigvec 3
.Sh HISTORY
-The
+A
.Fn sigsetmask
-function call appeared in
-.Bx 4.2
-and has been deprecated.
+system call first appeared in
+.Bx 4.2 .
+In
+.Bx 4.3 Reno ,
+it was reimplemented as a wrapper around
+.Xr sigprocmask 2 .
+The old system call was kept for compatibility until
+.Ox 4.9 .
diff --git a/lib/libc/compat-43/sigvec.3 b/lib/libc/compat-43/sigvec.3
index 9c959331776..4d300bca151 100644
--- a/lib/libc/compat-43/sigvec.3
+++ b/lib/libc/compat-43/sigvec.3
@@ -25,9 +25,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: sigvec.3,v 1.31 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: sigvec.3,v 1.32 2013/07/17 05:42:10 schwarze Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt SIGVEC 3
.Os
.Sh NAME
@@ -318,3 +318,14 @@ or
.Xr sigsetmask 3 ,
.Xr sigsetops 3 ,
.Xr tty 4
+.Sh HISTORY
+A
+.Fn sigvec
+system call first appeared in
+.Bx 4.2 .
+It was reimplemented as a wrapper around
+.Xr sigaction 2
+in
+.Bx 4.3 Reno .
+The old system call was kept for compatibility until
+.Ox 4.9 .
diff --git a/lib/libc/db/man/dbm.3 b/lib/libc/db/man/dbm.3
index 7a9c9602101..924c75cc2a3 100644
--- a/lib/libc/db/man/dbm.3
+++ b/lib/libc/db/man/dbm.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: dbm.3,v 1.12 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: dbm.3,v 1.13 2013/07/17 05:42:10 schwarze Exp $
.\"
.\" Copyright (c) 1999 Todd C. Miller <Todd.Miller@courtesan.com>
.\"
@@ -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: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt DBM 3
.Os
.Sh NAME
@@ -138,6 +138,17 @@ field to
.Xr db 3 ,
.Xr hash 3 ,
.Xr ndbm 3
+.Sh HISTORY
+The functions
+.Fn dbminit ,
+.Fn fetch ,
+.Fn store ,
+.Fn delete ,
+.Fn firstkey ,
+and
+.Fn nextkey
+first appeared in
+.At v7 .
.Sh BUGS
Because the
.Nm dbm
diff --git a/lib/libc/gen/alarm.3 b/lib/libc/gen/alarm.3
index 13f3d242847..1d6deeee23e 100644
--- a/lib/libc/gen/alarm.3
+++ b/lib/libc/gen/alarm.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: alarm.3,v 1.12 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: alarm.3,v 1.13 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993, 1994
.\" 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: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt ALARM 3
.Os
.Sh NAME
@@ -88,5 +88,11 @@ function conforms to
.Sh HISTORY
An
.Fn alarm
-function appeared in
+system call appeared in the Programmer's Workbench (PWB/UNIX)
+and was ported to
.At v7 .
+For
+.Bx 4.1c ,
+it was reimplemented as a wrapper around the
+.Xr setitimer 2
+system call.
diff --git a/lib/libc/gen/ctype.3 b/lib/libc/gen/ctype.3
index bc579c1af1e..82116c6c07f 100644
--- a/lib/libc/gen/ctype.3
+++ b/lib/libc/gen/ctype.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ctype.3,v 1.10 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: ctype.3,v 1.11 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1991 Regents of the University of California.
.\" All rights reserved.
@@ -28,7 +28,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt CTYPE 3
.Os
.Sh NAME
@@ -99,3 +99,18 @@ and
.Fn toascii ,
conform to
.St -ansiC .
+.Sh HISTORY
+The functions
+.Fn isalpha ,
+.Fn isupper ,
+.Fn islower ,
+.Fn isdigit ,
+.Fn isalnum ,
+.Fn isspace ,
+.Fn ispunct ,
+.Fn isprint ,
+.Fn iscntrl ,
+and
+.Fn isascii
+first appeared in
+.At v7 .
diff --git a/lib/libc/gen/exec.3 b/lib/libc/gen/exec.3
index c8ad7bada88..52ac332ee9a 100644
--- a/lib/libc/gen/exec.3
+++ b/lib/libc/gen/exec.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: exec.3,v 1.22 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: exec.3,v 1.23 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 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: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt EXEC 3
.Os
.Sh NAME
@@ -237,3 +237,22 @@ conform to
.St -p1003.1-88 .
.Fn execvpe
is a GNU extension.
+.Sh HISTORY
+The functions
+.Fn execl
+and
+.Fn execv
+first appeared in
+.At v2 .
+A predecessor to
+.Fn execvp ,
+.Fn pexec ,
+first appeared in the Programmer's Workbench (PWB/UNIX).
+The functions
+.Fn execle ,
+.Fn execlp ,
+.Fn execve ,
+and
+.Fn execvp
+first appeared in
+.At v7 .
diff --git a/lib/libc/gen/fnmatch.3 b/lib/libc/gen/fnmatch.3
index 06b25b52964..7812d4d0884 100644
--- a/lib/libc/gen/fnmatch.3
+++ b/lib/libc/gen/fnmatch.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fnmatch.3,v 1.14 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: fnmatch.3,v 1.15 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\"
.\" @(#)fnmatch.3 8.3 (Berkeley) 4/28/95
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt FNMATCH 3
.Os
.Sh NAME
@@ -141,6 +141,10 @@ and
are extensions and should not be used by applications striving for
strict standards conformance.
.Sh HISTORY
+A predecessor to
+.Fn fnmatch ,
+.Fn gmatch ,
+first appeared in the Programmer's Workbench (PWB/UNIX).
The
.Fn fnmatch
function first appeared in
diff --git a/lib/libc/gen/getcwd.3 b/lib/libc/gen/getcwd.3
index 1b8a09094c9..3563de9879a 100644
--- a/lib/libc/gen/getcwd.3
+++ b/lib/libc/gen/getcwd.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getcwd.3,v 1.13 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: getcwd.3,v 1.14 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 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: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt GETCWD 3
.Os
.Sh NAME
@@ -135,8 +135,12 @@ allocate memory as necessary is an extension.
.Sh HISTORY
The
.Fn getwd
-function appeared in
-.Bx 4.0 .
+function first appeared in
+.Bx 4.0 ,
+and
+.Fn getcwd
+in
+.Bx 4.3 Net2 .
.Sh BUGS
The
.Fn getwd
diff --git a/lib/libc/gen/getpwnam.3 b/lib/libc/gen/getpwnam.3
index 93a317fcbd0..3ce771b7350 100644
--- a/lib/libc/gen/getpwnam.3
+++ b/lib/libc/gen/getpwnam.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpwnam.3,v 1.3 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: getpwnam.3,v 1.4 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1988, 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: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt GETPWNAM 3
.Os
.Sh NAME
@@ -188,6 +188,11 @@ a Version 7 format password file
.Xr vipw 8 ,
.Xr yp 8
.Sh HISTORY
+A predecessor to
+.Fn getpwuid ,
+.Fn getpw ,
+first appeared in
+.At v4 .
The
.Fn getpwnam
and
diff --git a/lib/libc/gen/isalnum.3 b/lib/libc/gen/isalnum.3
index 3cd0a90048d..d272be2d229 100644
--- a/lib/libc/gen/isalnum.3
+++ b/lib/libc/gen/isalnum.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: isalnum.3,v 1.10 2013/07/06 17:31:20 jmc Exp $
+.\" $OpenBSD: isalnum.3,v 1.11 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 6 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt ISALNUM 3
.Os
.Sh NAME
@@ -77,6 +77,11 @@ The
.Fn isalnum
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn isalnum
+function first appeared in
+.At v7 .
.Sh CAVEATS
The argument to
.Fn isalnum
diff --git a/lib/libc/gen/isascii.3 b/lib/libc/gen/isascii.3
index a60c8760221..65cb63d7ad5 100644
--- a/lib/libc/gen/isascii.3
+++ b/lib/libc/gen/isascii.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: isascii.3,v 1.12 2013/07/06 17:31:20 jmc Exp $
+.\" $OpenBSD: isascii.3,v 1.13 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1989, 1991 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: July 6 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt ISASCII 3
.Os
.Sh NAME
@@ -72,6 +72,11 @@ The
.Fn isascii
function conforms to
.St -xpg4 .
+.Sh HISTORY
+The
+.Fn isascii
+function first appeared in
+.At v7 .
.Sh CAVEATS
The argument to
.Fn isascii
diff --git a/lib/libc/gen/iscntrl.3 b/lib/libc/gen/iscntrl.3
index 2412fa01340..53f261850f4 100644
--- a/lib/libc/gen/iscntrl.3
+++ b/lib/libc/gen/iscntrl.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: iscntrl.3,v 1.10 2013/07/06 17:31:20 jmc Exp $
+.\" $OpenBSD: iscntrl.3,v 1.11 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 6 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt ISCNTRL 3
.Os
.Sh NAME
@@ -73,6 +73,11 @@ The
.Fn iscntrl
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn iscntrl
+function first appeared in
+.At v7 .
.Sh CAVEATS
The argument to
.Fn iscntrl
diff --git a/lib/libc/gen/isdigit.3 b/lib/libc/gen/isdigit.3
index 9e791223ae0..d7cfa1712df 100644
--- a/lib/libc/gen/isdigit.3
+++ b/lib/libc/gen/isdigit.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: isdigit.3,v 1.10 2013/07/06 17:31:20 jmc Exp $
+.\" $OpenBSD: isdigit.3,v 1.11 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 6 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt ISDIGIT 3
.Os
.Sh NAME
@@ -73,6 +73,11 @@ The
.Fn isdigit
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn isdigit
+function first appeared in
+.At v7 .
.Sh CAVEATS
The argument to
.Fn isdigit
diff --git a/lib/libc/gen/islower.3 b/lib/libc/gen/islower.3
index b0baa6a062c..c5194f0d55c 100644
--- a/lib/libc/gen/islower.3
+++ b/lib/libc/gen/islower.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: islower.3,v 1.11 2013/07/06 17:31:20 jmc Exp $
+.\" $OpenBSD: islower.3,v 1.12 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 6 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt ISLOWER 3
.Os
.Sh NAME
@@ -85,6 +85,11 @@ The
.Fn islower
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn islower
+function first appeared in
+.At v7 .
.Sh CAVEATS
The argument to
.Fn islower
diff --git a/lib/libc/gen/isprint.3 b/lib/libc/gen/isprint.3
index d8d83b2d1a1..46f0b1fb4c1 100644
--- a/lib/libc/gen/isprint.3
+++ b/lib/libc/gen/isprint.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: isprint.3,v 1.10 2013/07/06 17:31:20 jmc Exp $
+.\" $OpenBSD: isprint.3,v 1.11 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 6 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt ISPRINT 3
.Os
.Sh NAME
@@ -74,6 +74,11 @@ The
.Fn isprint
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn isprint
+function first appeared in
+.At v7 .
.Sh CAVEATS
The argument to
.Fn isprint
diff --git a/lib/libc/gen/ispunct.3 b/lib/libc/gen/ispunct.3
index 508fda14618..e41059c21c7 100644
--- a/lib/libc/gen/ispunct.3
+++ b/lib/libc/gen/ispunct.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ispunct.3,v 1.10 2013/07/06 17:31:20 jmc Exp $
+.\" $OpenBSD: ispunct.3,v 1.11 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 6 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt ISPUNCT 3
.Os
.Sh NAME
@@ -77,6 +77,11 @@ The
.Fn ispunct
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn ispunct
+function first appeared in
+.At v7 .
.Sh CAVEATS
The argument to
.Fn ispunct
diff --git a/lib/libc/gen/isspace.3 b/lib/libc/gen/isspace.3
index ce59e397055..a2e2fa2dba1 100644
--- a/lib/libc/gen/isspace.3
+++ b/lib/libc/gen/isspace.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: isspace.3,v 1.12 2013/07/06 17:31:20 jmc Exp $
+.\" $OpenBSD: isspace.3,v 1.13 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 6 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt ISSPACE 3
.Os
.Sh NAME
@@ -98,6 +98,11 @@ The
.Fn isspace
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn isspace
+function first appeared in
+.At v7 .
.Sh CAVEATS
The argument to
.Fn isspace
diff --git a/lib/libc/gen/isupper.3 b/lib/libc/gen/isupper.3
index c32fe22e5e3..364d62eb3fa 100644
--- a/lib/libc/gen/isupper.3
+++ b/lib/libc/gen/isupper.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: isupper.3,v 1.12 2013/07/06 17:31:20 jmc Exp $
+.\" $OpenBSD: isupper.3,v 1.13 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 6 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt ISUPPER 3
.Os
.Sh NAME
@@ -83,6 +83,11 @@ The
.Fn isupper
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn isupper
+function first appeared in
+.At v7 .
.Sh CAVEATS
The argument to
.Fn isupper
diff --git a/lib/libc/gen/nlist.3 b/lib/libc/gen/nlist.3
index 2caafea0289..7ef45b7b9a8 100644
--- a/lib/libc/gen/nlist.3
+++ b/lib/libc/gen/nlist.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: nlist.3,v 1.11 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: nlist.3,v 1.12 2013/07/17 05:42:11 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: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt NLIST 3
.Os
.Sh NAME
@@ -70,7 +70,7 @@ does not exist or is not an executable, the returned value is \-1.
.Sh SEE ALSO
.Xr a.out 5
.Sh HISTORY
-A
+An
.Fn nlist
-function appeared in
-.At v6 .
+function first appeared in
+.At v3 .
diff --git a/lib/libc/gen/pause.3 b/lib/libc/gen/pause.3
index 0a65363e20c..7409c432ecc 100644
--- a/lib/libc/gen/pause.3
+++ b/lib/libc/gen/pause.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pause.3,v 1.12 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: pause.3,v 1.13 2013/07/17 05:42:11 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: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt PAUSE 3
.Os
.Sh NAME
@@ -76,5 +76,18 @@ The call was interrupted.
.Sh HISTORY
A
.Fn pause
-system call appeared in
-.At v6 .
+system call first appeared in the Programmer's Workbench (PWB/UNIX)
+and was then ported to
+.At v7 .
+It was reimplemeted as a wrapper around the
+.Fn sigpause
+and
+.Fn sigblock
+system calls in
+.Bx 4.2 ,
+and around the
+.Xr sigsuspend 2
+and
+.Xr sigprocmask 2
+system calls in
+.Bx 4.3 Reno .
diff --git a/lib/libc/gen/setjmp.3 b/lib/libc/gen/setjmp.3
index 4ecc7ab50f7..e276617e200 100644
--- a/lib/libc/gen/setjmp.3
+++ b/lib/libc/gen/setjmp.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: setjmp.3,v 1.23 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: setjmp.3,v 1.24 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt SETJMP 3
.Os
.Sh NAME
@@ -194,6 +194,12 @@ and
.Fn siglongjmp
functions conform to
.St -p1003.1-90 .
+.Sh HISTORY
+The
+.Fn setjmp
+and
+.Fn longjmp
+functions first appeared in the Programmer's Workbench (PWB/UNIX).
.Sh CAVEATS
Historically, on
.At V ,
diff --git a/lib/libc/gen/signal.3 b/lib/libc/gen/signal.3
index c5e837541f2..3348ec587db 100644
--- a/lib/libc/gen/signal.3
+++ b/lib/libc/gen/signal.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: signal.3,v 1.41 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: signal.3,v 1.42 2013/07/17 05:42:11 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: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt SIGNAL 3
.Os
.Sh NAME
@@ -484,7 +484,16 @@ or
.Xr siginterrupt 3 ,
.Xr tty 4
.Sh HISTORY
-This
+A
.Fn signal
-facility appeared in
-.Bx 4.0 .
+system call first appeared in
+.At v4 .
+In
+.Bx 4.2 ,
+it was reimplemented as a wrapper around the former
+.Fn sigvec
+system call, and for
+.Bx 4.3 Reno ,
+it was rewritten to use
+.Xr sigaction 2
+instead.
diff --git a/lib/libc/gen/time.3 b/lib/libc/gen/time.3
index a95d6c4f9ad..53cfaba40b3 100644
--- a/lib/libc/gen/time.3
+++ b/lib/libc/gen/time.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: time.3,v 1.14 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: time.3,v 1.15 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt TIME 3
.Os
.Sh NAME
@@ -76,8 +76,8 @@ An argument address referenced invalid memory.
.Sh HISTORY
A
.Fn time
-function appeared in
-.At v2
+system call first appeared in
+.At v1
and used to return time in sixtieths of a second in 32 bits,
which was to guarantee a crisis every 2.26 years.
Since
diff --git a/lib/libc/gen/times.3 b/lib/libc/gen/times.3
index db05d178036..c66750b9f3c 100644
--- a/lib/libc/gen/times.3
+++ b/lib/libc/gen/times.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: times.3,v 1.13 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: times.3,v 1.14 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1990, 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: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt TIMES 3
.Os
.Sh NAME
@@ -132,3 +132,16 @@ The
.Fn times
function conforms to
.St -p1003.1-88 .
+.Sh HISTORY
+A
+.Fn times
+function first appeared in
+.At v3 .
+The tms structure first appeared in
+.Bx 4.0
+and was changed to use
+.Vt clock_t
+instead of
+.Vt time_t
+for its members in
+.Bx 4.3 Net/2 .
diff --git a/lib/libc/regex/regex.3 b/lib/libc/regex/regex.3
index 24fc5ddcf1b..7e57356b00b 100644
--- a/lib/libc/regex/regex.3
+++ b/lib/libc/regex/regex.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: regex.3,v 1.22 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: regex.3,v 1.23 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1997, Phillip F Knaack. All rights reserved.
.\"
@@ -35,7 +35,7 @@
.\"
.\" @(#)regex.3 8.4 (Berkeley) 3/20/94
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt REGEX 3
.Os
.Sh NAME
@@ -598,8 +598,17 @@ sections 2.8 (Regular Expression Notation)
and
B.5 (C Binding for Regular Expression Matching).
.Sh HISTORY
-Originally written by Henry Spencer.
-Altered for inclusion in the
+Predecessors to
+.Fn regcomp
+and
+.Fn regexec ,
+.Fn regcmp
+and
+.Fn regex ,
+first appeared in the Programmer's Workbench (PWB/UNIX).
+.Pp
+The present functions were originally written by Henry Spencer
+and altered for inclusion in the
.Bx 4.4
distribution.
.Sh BUGS
diff --git a/lib/libc/stdio/fclose.3 b/lib/libc/stdio/fclose.3
index 57d3217fce7..c0509e0a72c 100644
--- a/lib/libc/stdio/fclose.3
+++ b/lib/libc/stdio/fclose.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fclose.3,v 1.7 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: fclose.3,v 1.8 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt FCLOSE 3
.Os
.Sh NAME
@@ -84,3 +84,8 @@ The
.Fn fclose
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn fclose
+function first appeared in
+.At v7 .
diff --git a/lib/libc/stdio/ferror.3 b/lib/libc/stdio/ferror.3
index 8add5bd3779..526c07e32a8 100644
--- a/lib/libc/stdio/ferror.3
+++ b/lib/libc/stdio/ferror.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ferror.3,v 1.9 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: ferror.3,v 1.10 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt FERROR 3
.Os
.Sh NAME
@@ -95,3 +95,12 @@ The function
.Fn fileno
conforms to
.St -p1003.1-90 .
+.Sh HISTORY
+The functions
+.Fn clearerr ,
+.Fn feof ,
+.Fn ferror ,
+and
+.Fn fileno
+first appeared in
+.At v7 .
diff --git a/lib/libc/stdio/fgets.3 b/lib/libc/stdio/fgets.3
index 6b0365f2bbe..56d6a703148 100644
--- a/lib/libc/stdio/fgets.3
+++ b/lib/libc/stdio/fgets.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fgets.3,v 1.30 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: fgets.3,v 1.31 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt FGETS 3
.Os
.Sh NAME
@@ -148,6 +148,13 @@ and
.Fn gets
conform to
.St -ansiC .
+.Sh HISTORY
+The functions
+.Fn fgets
+and
+.Fn gets
+first appeared in
+.At v7 .
.Sh CAVEATS
The following bit of code illustrates a case where the programmer assumes a
string is too long if it does not contain a newline:
diff --git a/lib/libc/stdio/fread.3 b/lib/libc/stdio/fread.3
index 0949edb4758..3dd624e7284 100644
--- a/lib/libc/stdio/fread.3
+++ b/lib/libc/stdio/fread.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fread.3,v 1.6 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: fread.3,v 1.7 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt FREAD 3
.Os
.Sh NAME
@@ -110,3 +110,10 @@ and
.Fn fwrite
conform to
.St -ansiC .
+.Sh HISTORY
+The functions
+.Fn fread
+and
+.Fn fwrite
+first appeared in
+.At v7 .
diff --git a/lib/libc/stdio/fseek.3 b/lib/libc/stdio/fseek.3
index a2bf17cc8d3..53f021d9f72 100644
--- a/lib/libc/stdio/fseek.3
+++ b/lib/libc/stdio/fseek.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fseek.3,v 1.15 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: fseek.3,v 1.16 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt FSEEK 3
.Os
.Sh NAME
@@ -246,3 +246,11 @@ and
.Fn ftello
functions conform to
.St -xpg4 .
+.Sh HISTORY
+The functions
+.Fn fseek ,
+.Fn ftell ,
+and
+.Fn rewind
+first appeared in
+.At v7 .
diff --git a/lib/libc/stdio/perror.3 b/lib/libc/stdio/perror.3
index 8bb200e42e7..c5c0d9f76a8 100644
--- a/lib/libc/stdio/perror.3
+++ b/lib/libc/stdio/perror.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: perror.3,v 1.9 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: perror.3,v 1.10 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1980, 1991 Regents of the University of California.
.\" All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt PERROR 3
.Os
.Sh NAME
@@ -71,3 +71,8 @@ The
.Fn perror
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn perror
+function first appeared in
+.At v4 .
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index f1fc86b85d5..072a7949c05 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: printf.3,v 1.63 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: printf.3,v 1.64 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,7 +33,7 @@
.\"
.\" @(#)printf.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt PRINTF 3
.Os
.Sh NAME
@@ -774,6 +774,23 @@ and
functions conform to
.St -p1003.1-2008 .
.Sh HISTORY
+The predecessors
+.Fn ftoa
+and
+.Fn itoa
+first appeared in
+.At v1 .
+The function
+.Fn printf
+first appeared in
+.At v2 ,
+and
+.Fn fprintf
+and
+.Fn sprintf
+in
+.At v7 .
+.Pp
The functions
.Fn snprintf
and
diff --git a/lib/libc/stdio/scanf.3 b/lib/libc/stdio/scanf.3
index 311f73b3aff..0b98ea97b22 100644
--- a/lib/libc/stdio/scanf.3
+++ b/lib/libc/stdio/scanf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: scanf.3,v 1.21 2013/03/05 17:19:06 otto Exp $
+.\" $OpenBSD: scanf.3,v 1.22 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt SCANF 3
.Os
.Sh NAME
@@ -445,11 +445,18 @@ conform to
.St -ansiC .
.Sh HISTORY
The functions
+.Fn scanf ,
+.Fn fscanf ,
+and
+.Fn sscanf
+first appeared in
+.At v7 ,
+and
.Fn vscanf ,
.Fn vsscanf ,
and
.Fn vfscanf
-first appeared in
+in
.Bx 4.3 Reno .
.Sh BUGS
Numerical strings are truncated to 512 characters; for example,
diff --git a/lib/libc/stdio/setbuf.3 b/lib/libc/stdio/setbuf.3
index f6e7a0fd1fb..123e9a01260 100644
--- a/lib/libc/stdio/setbuf.3
+++ b/lib/libc/stdio/setbuf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: setbuf.3,v 1.13 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: setbuf.3,v 1.14 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt SETBUF 3
.Os
.Sh NAME
@@ -179,6 +179,11 @@ and
.Fn setvbuf
functions conform to
.St -ansiC .
+.Sh HISTORY
+The function
+.Fn setbuf
+first appeared in
+.At v7 .
.Sh BUGS
The
.Fn setbuffer
diff --git a/lib/libc/stdio/ungetc.3 b/lib/libc/stdio/ungetc.3
index ea4c9fd5d36..4f976ae9613 100644
--- a/lib/libc/stdio/ungetc.3
+++ b/lib/libc/stdio/ungetc.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ungetc.3,v 1.8 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: ungetc.3,v 1.9 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt UNGETC 3
.Os
.Sh NAME
@@ -88,3 +88,8 @@ The
.Fn ungetc
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn ungetc
+function first appeared in
+.At v7 .
diff --git a/lib/libc/stdlib/abort.3 b/lib/libc/stdlib/abort.3
index b0197bf824d..322d6299307 100644
--- a/lib/libc/stdlib/abort.3
+++ b/lib/libc/stdlib/abort.3
@@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: abort.3,v 1.9 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: abort.3,v 1.10 2013/07/17 05:42:11 schwarze Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt ABORT 3
.Os
.Sh NAME
@@ -61,3 +61,8 @@ The
.Fn abort
function conforms to
.St -p1003.1-90 .
+.Sh HISTORY
+The
+.Fn abort
+function first appeared in
+.At v5 .
diff --git a/lib/libc/stdlib/abs.3 b/lib/libc/stdlib/abs.3
index 6925456c213..420bdf6fdf8 100644
--- a/lib/libc/stdlib/abs.3
+++ b/lib/libc/stdlib/abs.3
@@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: abs.3,v 1.10 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: abs.3,v 1.11 2013/07/17 05:42:11 schwarze Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt ABS 3
.Os
.Sh NAME
@@ -61,5 +61,10 @@ The
.Fn abs
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn abs
+function first appeared in
+.At v6 .
.Sh BUGS
The absolute value of the most negative integer remains negative.
diff --git a/lib/libc/stdlib/atof.3 b/lib/libc/stdlib/atof.3
index 3fe1214c95e..53722a62534 100644
--- a/lib/libc/stdlib/atof.3
+++ b/lib/libc/stdlib/atof.3
@@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: atof.3,v 1.6 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: atof.3,v 1.7 2013/07/17 05:42:11 schwarze Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt ATOF 3
.Os
.Sh NAME
@@ -67,3 +67,8 @@ The
.Fn atof
function conforms to
.St -ansiC .
+.Sh HISTORY
+An
+.Fn atof
+function first appeared in
+.At v1 .
diff --git a/lib/libc/stdlib/atoi.3 b/lib/libc/stdlib/atoi.3
index 0572f1faa57..fd5c720e02a 100644
--- a/lib/libc/stdlib/atoi.3
+++ b/lib/libc/stdlib/atoi.3
@@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: atoi.3,v 1.10 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: atoi.3,v 1.11 2013/07/17 05:42:11 schwarze Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt ATOI 3
.Os
.Sh NAME
@@ -68,6 +68,11 @@ The
.Fn atoi
function conforms to
.St -ansiC .
+.Sh HISTORY
+An
+.Fn atoi
+function first appeared in
+.At v1 .
.Sh CAVEATS
.Nm
does no overflow checking, handles unsigned numbers poorly,
diff --git a/lib/libc/stdlib/exit.3 b/lib/libc/stdlib/exit.3
index 86c4daed537..26922ca7b85 100644
--- a/lib/libc/stdlib/exit.3
+++ b/lib/libc/stdlib/exit.3
@@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: exit.3,v 1.14 2013/06/05 04:06:08 guenther Exp $
+.\" $OpenBSD: exit.3,v 1.15 2013/07/17 05:42:11 schwarze Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt EXIT 3
.Os
.Sh NAME
@@ -92,6 +92,10 @@ An
.Fn exit
function first appeared as a system call in
.At v1 .
+It has accepted the
+.Fa status
+argument since
+.At v2 .
In
.At v7 ,
the bare system call was renamed to
diff --git a/lib/libc/stdlib/ldiv.3 b/lib/libc/stdlib/ldiv.3
index 5ee6f947496..a8835ab6ac8 100644
--- a/lib/libc/stdlib/ldiv.3
+++ b/lib/libc/stdlib/ldiv.3
@@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: ldiv.3,v 1.11 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: ldiv.3,v 1.12 2013/07/17 05:42:11 schwarze Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt LDIV 3
.Os
.Sh NAME
@@ -64,3 +64,9 @@ The
.Fn ldiv
function conforms to
.St -ansiC .
+.Sh HISTORY
+An
+.Fn ldiv
+function with similar functionality, but a different calling convention,
+first appeared in
+.At v4 .
diff --git a/lib/libc/stdlib/qsort.3 b/lib/libc/stdlib/qsort.3
index f134741aa33..4481a96ee4d 100644
--- a/lib/libc/stdlib/qsort.3
+++ b/lib/libc/stdlib/qsort.3
@@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: qsort.3,v 1.16 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: qsort.3,v 1.17 2013/07/17 05:42:11 schwarze Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt QSORT 3
.Os
.Sh NAME
@@ -231,3 +231,8 @@ The
.Fn qsort
function conforms to
.St -ansiC .
+.Sh HISTORY
+A
+.Fn qsort
+function first appeared in
+.At v3 .
diff --git a/lib/libc/string/strcat.3 b/lib/libc/string/strcat.3
index 79302dba04c..6b5e4003b63 100644
--- a/lib/libc/string/strcat.3
+++ b/lib/libc/string/strcat.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: strcat.3,v 1.14 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: strcat.3,v 1.15 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt STRCAT 3
.Os
.Sh NAME
@@ -135,7 +135,9 @@ functions conform to
.Sh HISTORY
The
.Fn strcat
-and
+function first appeared in the Programmer's Workbench (PWB/UNIX)
+and was ported to
+.At v7 ;
.Fn strncat
-functions first appeared in
+first appeared in
.At v7 .
diff --git a/lib/libc/string/strcmp.3 b/lib/libc/string/strcmp.3
index 156021b08c9..63dc7fed2d0 100644
--- a/lib/libc/string/strcmp.3
+++ b/lib/libc/string/strcmp.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: strcmp.3,v 1.13 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: strcmp.3,v 1.14 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt STRCMP 3
.Os
.Sh NAME
@@ -89,7 +89,9 @@ functions conform to
.Sh HISTORY
The
.Fn strcmp
-and
+function first appeared in the Programmer's Workbench (PWB/UNIX)
+and was ported to
+.At v7 ;
.Fn strncmp
-functions first appeared in
+first appeared in
.At v7 .
diff --git a/lib/libc/string/strcpy.3 b/lib/libc/string/strcpy.3
index 11f996a4ea4..409f4c61d4f 100644
--- a/lib/libc/string/strcpy.3
+++ b/lib/libc/string/strcpy.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: strcpy.3,v 1.17 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: strcpy.3,v 1.18 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt STRCPY 3
.Os
.Sh NAME
@@ -156,7 +156,9 @@ functions conform to
.Sh HISTORY
The
.Fn strcpy
-and
+function first appeared in the Programmer's Workbench (PWB/UNIX)
+and was ported to
+.At v7 ;
.Fn strncpy
-functions first appeared in
+first appeared in
.At v7 .
diff --git a/lib/libc/string/strlen.3 b/lib/libc/string/strlen.3
index 4d416e200a8..5428627abb6 100644
--- a/lib/libc/string/strlen.3
+++ b/lib/libc/string/strlen.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: strlen.3,v 1.11 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: strlen.3,v 1.12 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt STRLEN 3
.Os
.Sh NAME
@@ -95,7 +95,8 @@ functions conform to
.Sh HISTORY
The
.Fn strlen
-function first appeared in
+function first appeared in the Programmer's Workbench (PWB/UNIX)
+and was ported to
.At v7 .
The
.Fn strnlen
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 .
diff --git a/lib/libc/time/ctime.3 b/lib/libc/time/ctime.3
index c4d5a83c3da..a1a4bd101f7 100644
--- a/lib/libc/time/ctime.3
+++ b/lib/libc/time/ctime.3
@@ -1,7 +1,7 @@
-.\" $OpenBSD: ctime.3,v 1.39 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: ctime.3,v 1.40 2013/07/17 05:42:11 schwarze Exp $
.\"
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt CTIME 3
.Os
.Sh NAME
@@ -281,6 +281,11 @@ UTC leap seconds are loaded from
.Xr tzset 3 ,
.Xr tzfile 5 ,
.Xr zic 8
+.Sh HISTORY
+A
+.Fn ctime
+function first appeared in
+.At v1 .
.Sh NOTES
The return values
of the non re-entrant functions
diff --git a/lib/libcompat/4.1/ftime.3 b/lib/libcompat/4.1/ftime.3
index fe3e7bf21d2..43374454394 100644
--- a/lib/libcompat/4.1/ftime.3
+++ b/lib/libcompat/4.1/ftime.3
@@ -27,7 +27,7 @@
.\"
.\" @(#)ftime.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt FTIME 3
.Os
.Sh NAME
@@ -75,6 +75,6 @@ Daylight Saving time applies locally during the appropriate part of the year.
.Xr time 3
.Sh HISTORY
The
-.Nm
-function appeared in
-.Bx 4.2 .
+.Fn ftime
+system call first appeared in
+.At v7 .
diff --git a/lib/libcompat/4.1/stty.3 b/lib/libcompat/4.1/stty.3
index 9ff3507962c..18903ce8918 100644
--- a/lib/libcompat/4.1/stty.3
+++ b/lib/libcompat/4.1/stty.3
@@ -27,7 +27,7 @@
.\"
.\" @(#)stty.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt STTY 3
.Os
.Sh NAME
@@ -36,7 +36,9 @@
.Nd set and get terminal state (defunct)
.Sh SYNOPSIS
.In sgtty.h
+.Ft int
.Fn stty "int fd" "struct sgttyb *buf"
+.Ft int
.Fn gtty "int fd" "struct sgttyb *buf"
.Sh DESCRIPTION
.Bf -symbolic
@@ -82,13 +84,15 @@ contains the reason for the failure.
.Xr ioctl 2 ,
.Xr tty 4
.Sh HISTORY
-The previous reincarnation of the
-.Fn stty
-function was in
-.At v2 .
-The
+The systems calls
.Fn stty
and
.Fn gtty
-functions then appeared in
-.Bx 4.2 .
+existed since
+.At v1 .
+They were implemented in terms of
+.Xr ioctl 2
+since
+.At v7
+and finally moved as functions into the C library in
+.Bx 4.1c .
diff --git a/lib/libm/man/cosh.3 b/lib/libm/man/cosh.3
index 233ca8e583a..cfa88908319 100644
--- a/lib/libm/man/cosh.3
+++ b/lib/libm/man/cosh.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: cosh.3,v 1.13 2013/06/05 03:40:26 tedu Exp $
+.\" $OpenBSD: cosh.3,v 1.14 2013/07/17 05:42:11 schwarze Exp $
.\" Copyright (c) 1989, 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -28,7 +28,7 @@
.\"
.\" from: @(#)cosh.3 5.1 (Berkeley) 5/2/91
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt COSH 3
.Os
.Sh NAME
@@ -76,3 +76,8 @@ to ERANGE.
.Xr sinh 3 ,
.Xr tan 3 ,
.Xr tanh 3
+.Sh HISTORY
+The
+.Fn cosh
+function first appeared in
+.At v7 .
diff --git a/lib/libm/man/exp.3 b/lib/libm/man/exp.3
index 37b0a470b3d..92a9c155682 100644
--- a/lib/libm/man/exp.3
+++ b/lib/libm/man/exp.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: exp.3,v 1.26 2013/06/05 03:40:26 tedu Exp $
+.\" $OpenBSD: exp.3,v 1.27 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1985, 1991 Regents of the University of California.
.\" All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" from: @(#)exp.3 6.12 (Berkeley) 7/31/91
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt EXP 3
.Os
.Sh NAME
@@ -392,22 +392,20 @@ and infinite x, i.e., independently of x.
.Xr ilogb 3 ,
.Xr infnan 3
.Sh HISTORY
-A
-.Fn exp ,
-.Fn log
+The
+.Fn exp
and
+.Fn log
+functions first appeared in
+.At v1 ;
.Fn pow
-functions
-appeared in
-.At v6 .
-A
+in
+.At v3 ;
.Fn log10
-function
-appeared in
-.At v7 .
-The
+in
+.At v7 ;
.Fn log1p
and
.Fn expm1
-functions appeared in
+in
.Bx 4.3 .
diff --git a/lib/libm/man/floor.3 b/lib/libm/man/floor.3
index 8c6cc57b87b..1281cbdd54b 100644
--- a/lib/libm/man/floor.3
+++ b/lib/libm/man/floor.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: floor.3,v 1.13 2013/06/05 03:40:26 tedu Exp $
+.\" $OpenBSD: floor.3,v 1.14 2013/07/17 05:42:11 schwarze Exp $
.\" Copyright (c) 1985, 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -28,7 +28,7 @@
.\"
.\" from: @(#)floor.3 6.5 (Berkeley) 4/19/91
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt FLOOR 3
.Os
.Sh NAME
@@ -69,3 +69,8 @@ The
.Fn floor
function conforms to
.St -ansiC .
+.Sh HISTORY
+A
+.Fn floor
+function first appeared in
+.At v5 .
diff --git a/lib/libm/man/fmod.3 b/lib/libm/man/fmod.3
index 7dc798b5529..69878b97359 100644
--- a/lib/libm/man/fmod.3
+++ b/lib/libm/man/fmod.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fmod.3,v 1.11 2013/06/05 03:40:26 tedu Exp $
+.\" $OpenBSD: fmod.3,v 1.12 2013/07/17 05:42:11 schwarze Exp $
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -28,7 +28,7 @@
.\"
.\" from: @(#)fmod.3 5.1 (Berkeley) 5/2/91
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt FMOD 3
.Os
.Sh NAME
@@ -87,3 +87,8 @@ The
.Fn fmod
function conforms to
.St -ansiC .
+.Sh HISTORY
+An
+.Fn fmod
+function first appeared in
+.At v5 .
diff --git a/lib/libm/man/hypot.3 b/lib/libm/man/hypot.3
index b8d0880b833..b03565f2978 100644
--- a/lib/libm/man/hypot.3
+++ b/lib/libm/man/hypot.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: hypot.3,v 1.19 2013/06/05 03:40:26 tedu Exp $
+.\" $OpenBSD: hypot.3,v 1.20 2013/07/17 05:42:11 schwarze Exp $
.\" Copyright (c) 1985, 1991 Regents of the University of California.
.\" All rights reserved.
.\"
@@ -28,7 +28,7 @@
.\"
.\" from: @(#)hypot.3 6.7 (Berkeley) 5/6/91
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt HYPOT 3
.Os
.Sh NAME
@@ -127,10 +127,11 @@ disappear when it turns out to be irrelevant, as it does in
.Sh SEE ALSO
.Xr sqrt 3
.Sh HISTORY
-Both a
+A
.Fn hypot
-function and a
+function first appeared in
+.At v3 ,
+and
.Fn cabs
-function
-appeared in
+in
.At v7 .
diff --git a/lib/libm/man/j0.3 b/lib/libm/man/j0.3
index 4bc7a0257cb..1e55333b16b 100644
--- a/lib/libm/man/j0.3
+++ b/lib/libm/man/j0.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: j0.3,v 1.14 2013/06/05 03:40:26 tedu Exp $
+.\" $OpenBSD: j0.3,v 1.15 2013/07/17 05:42:11 schwarze Exp $
.\" Copyright (c) 1985, 1991 Regents of the University of California.
.\" All rights reserved.
.\"
@@ -28,7 +28,7 @@
.\"
.\" from: @(#)j0.3 6.7 (Berkeley) 4/19/91
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt J0 3
.Os
.Sh NAME
@@ -145,6 +145,13 @@ the computed value is returned, otherwise the global variable
.Va errno
is set to EDOM or ERANGE.
.Sh HISTORY
-This set of functions
-appeared in
+The functions
+.Fn j0 ,
+.Fn j1 ,
+.Fn jn ,
+.Fn y0 ,
+.Fn y1 ,
+and
+.Fn yn
+first appeared in
.At v7 .
diff --git a/lib/libm/man/lgamma.3 b/lib/libm/man/lgamma.3
index b778b6ccb18..0e4bf818aea 100644
--- a/lib/libm/man/lgamma.3
+++ b/lib/libm/man/lgamma.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: lgamma.3,v 1.19 2013/06/05 03:40:26 tedu Exp $
+.\" $OpenBSD: lgamma.3,v 1.20 2013/07/17 05:42:11 schwarze Exp $
.\" Copyright (c) 1985, 1991 Regents of the University of California.
.\" All rights reserved.
.\"
@@ -28,7 +28,7 @@
.\"
.\" from: @(#)lgamma.3 6.6 (Berkeley) 12/3/92
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt LGAMMA 3
.Os
.Sh NAME
@@ -143,6 +143,10 @@ and
.Fn lgammaf ,
respectively.
.Sh HISTORY
+A
+.Fn gamma
+function first appeared in
+.At v5 .
The
.Fn lgamma
function first appeared in
diff --git a/lib/libm/man/sin.3 b/lib/libm/man/sin.3
index 0e0e67b82ba..55e4640f548 100644
--- a/lib/libm/man/sin.3
+++ b/lib/libm/man/sin.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sin.3,v 1.15 2013/06/05 03:40:26 tedu Exp $
+.\" $OpenBSD: sin.3,v 1.16 2013/07/17 05:42:11 schwarze Exp $
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -28,7 +28,7 @@
.\"
.\" from: @(#)cos.3 5.1 (Berkeley) 5/2/91
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt SIN 3
.Os
.Sh NAME
@@ -81,3 +81,8 @@ The
.Fn sin
function conforms to
.St -ansiC .
+.Sh HISTORY
+A
+.Fn sin
+function first appeared in
+.At v1 .
diff --git a/lib/libm/man/sinh.3 b/lib/libm/man/sinh.3
index c1e124d7cc4..3ecf548b382 100644
--- a/lib/libm/man/sinh.3
+++ b/lib/libm/man/sinh.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sinh.3,v 1.14 2013/06/05 03:40:26 tedu Exp $
+.\" $OpenBSD: sinh.3,v 1.15 2013/07/17 05:42:11 schwarze Exp $
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -27,7 +27,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)sinh.3 6.6 (Berkeley) 4/19/91
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt SINH 3
.Os
.Sh NAME
@@ -85,3 +85,8 @@ The
.Fn sinh
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn sinh
+function first appeared in
+.At v7 .
diff --git a/lib/libm/man/sqrt.3 b/lib/libm/man/sqrt.3
index 17fc406eaef..e206b0b3798 100644
--- a/lib/libm/man/sqrt.3
+++ b/lib/libm/man/sqrt.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sqrt.3,v 1.15 2013/06/05 03:40:26 tedu Exp $
+.\" $OpenBSD: sqrt.3,v 1.16 2013/07/17 05:42:11 schwarze Exp $
.\" Copyright (c) 1985, 1991 Regents of the University of California.
.\" All rights reserved.
.\"
@@ -28,7 +28,7 @@
.\"
.\" from: @(#)sqrt.3 6.4 (Berkeley) 5/6/91
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt SQRT 3
.Os
.Sh NAME
@@ -89,6 +89,11 @@ set the global variable
.Va errno
to EDOM.
.Sh HISTORY
+A
+.Fn sqrt
+function first appeared in
+.At v3 .
+.Pp
The
.Fn cbrt
function appeared in
diff --git a/lib/libm/man/tanh.3 b/lib/libm/man/tanh.3
index 9a2b2306ef3..e78f01872f2 100644
--- a/lib/libm/man/tanh.3
+++ b/lib/libm/man/tanh.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tanh.3,v 1.11 2013/06/05 03:40:26 tedu Exp $
+.\" $OpenBSD: tanh.3,v 1.12 2013/07/17 05:42:11 schwarze Exp $
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -28,7 +28,7 @@
.\"
.\" from: @(#)tanh.3 5.1 (Berkeley) 5/2/91
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt TANH 3
.Os
.Sh NAME
@@ -79,3 +79,8 @@ The
.Fn tanh
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn tanh
+function first appeared in
+.At v7 .