summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/fabs.39
-rw-r--r--lib/libc/gen/isalpha.39
-rw-r--r--lib/libc/gen/nice.312
-rw-r--r--lib/libc/gen/sleep.319
-rw-r--r--lib/libc/stdio/fflush.39
-rw-r--r--lib/libc/stdio/fputs.313
-rw-r--r--lib/libc/stdio/putc.320
-rw-r--r--lib/libc/stdlib/malloc.327
-rw-r--r--lib/libc/stdlib/rand.311
-rw-r--r--lib/libc/stdlib/system.39
10 files changed, 108 insertions, 30 deletions
diff --git a/lib/libc/gen/fabs.3 b/lib/libc/gen/fabs.3
index 433edb9d673..72e602cbb46 100644
--- a/lib/libc/gen/fabs.3
+++ b/lib/libc/gen/fabs.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fabs.3,v 1.2 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: fabs.3,v 1.3 2013/07/18 10:14:48 schwarze Exp $
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -29,7 +29,7 @@
.\"
.\" from: @(#)fabs.3 5.1 (Berkeley) 5/2/91
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 18 2013 $
.Dt FABS 3
.Os
.Sh NAME
@@ -76,3 +76,8 @@ The
.Fn fabs
function conforms to
.St -ansiC .
+.Sh HISTORY
+An
+.Fn fabs
+function first appeared in
+.At v6 .
diff --git a/lib/libc/gen/isalpha.3 b/lib/libc/gen/isalpha.3
index ef75c3ceb73..041c69dd532 100644
--- a/lib/libc/gen/isalpha.3
+++ b/lib/libc/gen/isalpha.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: isalpha.3,v 1.11 2013/07/06 17:31:20 jmc Exp $
+.\" $OpenBSD: isalpha.3,v 1.12 2013/07/18 10:14:48 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 18 2013 $
.Dt ISALPHA 3
.Os
.Sh NAME
@@ -92,6 +92,11 @@ The
.Fn isalpha
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn isalpha
+function first appeared in
+.At v7 .
.Sh CAVEATS
The argument to
.Fn isalpha
diff --git a/lib/libc/gen/nice.3 b/lib/libc/gen/nice.3
index aa6ff97a54f..6139878764c 100644
--- a/lib/libc/gen/nice.3
+++ b/lib/libc/gen/nice.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: nice.3,v 1.17 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: nice.3,v 1.18 2013/07/18 10:14:48 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 18 2013 $
.Dt NICE 3
.Os
.Sh NAME
@@ -84,5 +84,9 @@ has the same failure conditions as
.Sh HISTORY
A
.Fn nice
-system call appeared in
-.At v6 .
+system call first appeared in
+.At v3 .
+It has accepted an
+.Fa incr
+argument since
+.At v4 .
diff --git a/lib/libc/gen/sleep.3 b/lib/libc/gen/sleep.3
index 158c69d43dd..1d082cd2be6 100644
--- a/lib/libc/gen/sleep.3
+++ b/lib/libc/gen/sleep.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sleep.3,v 1.13 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: sleep.3,v 1.14 2013/07/18 10:14:49 schwarze Exp $
.\"
.\" Copyright (c) 1986, 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 18 2013 $
.Dt SLEEP 3
.Os
.Sh NAME
@@ -79,5 +79,16 @@ function conforms to
.Sh HISTORY
A
.Fn sleep
-function appeared in
-.At v7 .
+system call first appeared in
+.At v3 .
+In
+.At v7 ,
+it was removed and replaced by a C library implementation based on
+.Xr signal 3
+and
+.Xr alarm 3 .
+For
+.Ox 2.1 ,
+it was reimplemented as a wrapper around the
+.Xr nanosleep 2
+system call.
diff --git a/lib/libc/stdio/fflush.3 b/lib/libc/stdio/fflush.3
index 75eb5ae5fdf..5ab16623dcd 100644
--- a/lib/libc/stdio/fflush.3
+++ b/lib/libc/stdio/fflush.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fflush.3,v 1.9 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: fflush.3,v 1.10 2013/07/18 10:14:49 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 18 2013 $
.Dt FFLUSH 3
.Os
.Sh NAME
@@ -103,3 +103,8 @@ The
.Fn fflush
function conforms to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn fflush
+function first appeared in
+.At v7 .
diff --git a/lib/libc/stdio/fputs.3 b/lib/libc/stdio/fputs.3
index dbe9c528fff..486b9eec099 100644
--- a/lib/libc/stdio/fputs.3
+++ b/lib/libc/stdio/fputs.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fputs.3,v 1.9 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: fputs.3,v 1.10 2013/07/18 10:14:49 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 18 2013 $
.Dt FPUTS 3
.Os
.Sh NAME
@@ -100,3 +100,12 @@ and
.Fn puts
conform to
.St -ansiC .
+.Sh HISTORY
+The function
+.Fn puts
+first appeared in
+.At v6
+and
+.Fn fputs
+in
+.At v7 .
diff --git a/lib/libc/stdio/putc.3 b/lib/libc/stdio/putc.3
index 13813ef3be4..f48419a7118 100644
--- a/lib/libc/stdio/putc.3
+++ b/lib/libc/stdio/putc.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: putc.3,v 1.11 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: putc.3,v 1.12 2013/07/18 10:14:49 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 18 2013 $
.Dt PUTC 3
.Os
.Sh NAME
@@ -126,10 +126,20 @@ and
.Fn putchar ,
conform to
.St -ansiC .
-A function
+.Sh HISTORY
+The
+.Fn putc
+and
.Fn putw
-function appeared in
-.At v6 .
+functions first appeared in
+.At v1 ;
+.Fn putchar
+in
+.At v2 ;
+and
+.Fn fputc
+in
+.At v7 .
.Sh BUGS
Since the size and byte order of an
.Li int
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index 07971b9a006..414f0a97703 100644
--- a/lib/libc/stdlib/malloc.3
+++ b/lib/libc/stdlib/malloc.3
@@ -30,9 +30,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: malloc.3,v 1.72 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: malloc.3,v 1.73 2013/07/18 10:14:49 schwarze Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 18 2013 $
.Dt MALLOC 3
.Os
.Sh NAME
@@ -439,10 +439,27 @@ The
function conforms to
.St -ansiC .
.Sh HISTORY
-The
-.Nm
-family of functions first appeared in
+A
+.Fn free
+internal kernel function and a predecessor to
+.Fn malloc ,
+.Fn alloc ,
+first appeared in
+.At v1 .
+C library functions
+.Fn alloc
+and
+.Fn free
+appeared in
+.At v6 .
+The functions
+.Fn malloc ,
+.Fn calloc ,
+and
+.Fn realloc
+first appeared in
.At v7 .
+.Pp
A new implementation by Chris Kingsley was introduced in
.Bx 4.2 ,
followed by a complete rewrite by Poul-Henning Kamp which appeared in
diff --git a/lib/libc/stdlib/rand.3 b/lib/libc/stdlib/rand.3
index f1bff691bee..2de043a88d6 100644
--- a/lib/libc/stdlib/rand.3
+++ b/lib/libc/stdlib/rand.3
@@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: rand.3,v 1.12 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: rand.3,v 1.13 2013/07/18 10:14:50 schwarze Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 18 2013 $
.Dt RAND 3
.Os
.Sh NAME
@@ -95,3 +95,10 @@ The
.Fn rand_r
function conforms to
.St -p1003.1-2008 .
+.Sh HISTORY
+The functions
+.Fn rand
+and
+.Fn srand
+first appeared in
+.At v3 .
diff --git a/lib/libc/stdlib/system.3 b/lib/libc/stdlib/system.3
index 7c0a5490b97..878bb0a9d24 100644
--- a/lib/libc/stdlib/system.3
+++ b/lib/libc/stdlib/system.3
@@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: system.3,v 1.12 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: system.3,v 1.13 2013/07/18 10:14:50 schwarze Exp $
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 18 2013 $
.Dt SYSTEM 3
.Os
.Sh NAME
@@ -94,6 +94,11 @@ function conforms to
.St -ansiC
and
.St -p1003.2-92 .
+.Sh HISTORY
+The
+.Fn system
+function first appeared in
+.At v6 .
.Sh CAVEATS
Never supply the
.Fn system