summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2013-07-17 05:42:10 +0000
committerschwarze <schwarze@openbsd.org>2013-07-17 05:42:10 +0000
commit23fbb714ee0d9e87b8c1fa165af1f555294785eb (patch)
tree248b04849e966acb09eff7ac5b30e5ad56bcc86c /lib/libc/stdio
parentEnable jfb-style acceleration on XVR-600. (diff)
downloadwireguard-openbsd-23fbb714ee0d9e87b8c1fa165af1f555294785eb.tar.xz
wireguard-openbsd-23fbb714ee0d9e87b8c1fa165af1f555294785eb.zip
more library history
facts checked by sobrado@ style tweaks and ok jmc@
Diffstat (limited to 'lib/libc/stdio')
-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
10 files changed, 96 insertions, 21 deletions
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 .