summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2012-01-15 21:03:05 +0000
committerschwarze <schwarze@openbsd.org>2012-01-15 21:03:05 +0000
commit8d54fb6f96a39a0d7ec8720b0240a245c3519cc6 (patch)
tree3538c441636af1fd2adff6e7cab9dbc47459482d /lib/libc/stdio
parentDocument what remains of the 2BSD heritage. (diff)
downloadwireguard-openbsd-8d54fb6f96a39a0d7ec8720b0240a245c3519cc6.tar.xz
wireguard-openbsd-8d54fb6f96a39a0d7ec8720b0240a245c3519cc6.zip
Document early history of a few functions specifically mentioned in 2BSD
manuals; however, it turned out all of these actually predate 2BSD. All information from http://minnie.tuhs.org/cgi-bin/utree.pl. ok jmc@ sobrado@
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/fopen.320
-rw-r--r--lib/libc/stdio/getc.325
2 files changed, 41 insertions, 4 deletions
diff --git a/lib/libc/stdio/fopen.3 b/lib/libc/stdio/fopen.3
index b406da943ba..21f26d147ec 100644
--- a/lib/libc/stdio/fopen.3
+++ b/lib/libc/stdio/fopen.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fopen.3,v 1.23 2011/05/02 11:14:11 jmc Exp $
+.\" $OpenBSD: fopen.3,v 1.24 2012/01/15 21:03:05 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: May 2 2011 $
+.Dd $Mdocdate: January 15 2012 $
.Dt FOPEN 3
.Os
.Sh NAME
@@ -227,6 +227,22 @@ The
.Fn fdopen
function conforms to
.St -p1003.1-88 .
+.Sh HISTORY
+The
+.Fn fopen
+function first appeared in
+.At v1 .
+The
+.Fn fdopen
+and
+.Fn freopen
+functions first appeared in
+.At v7 .
+.Sh AUTHORS
+.An Dennis Ritchie
+originally implemented
+.Fn fopen
+in PDP-11 assembler.
.Sh CAVEATS
Proper code using
.Fn fdopen
diff --git a/lib/libc/stdio/getc.3 b/lib/libc/stdio/getc.3
index 302115fa1bf..58d01c09926 100644
--- a/lib/libc/stdio/getc.3
+++ b/lib/libc/stdio/getc.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getc.3,v 1.12 2007/05/31 19:19:31 jmc Exp $
+.\" $OpenBSD: getc.3,v 1.13 2012/01/15 21:03:05 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: May 31 2007 $
+.Dd $Mdocdate: January 15 2012 $
.Dt GETC 3
.Os
.Sh NAME
@@ -111,6 +111,27 @@ and
.Fn getchar
functions conform to
.St -ansiC .
+.Sh HISTORY
+The
+.Fn getc
+and
+.Fn getw
+functions first appeared in
+.At v1 ;
+.Fn getchar
+in
+.At v2 ;
+and
+.Fn fgetc
+in
+.At v7 .
+.Sh AUTHORS
+.An Dennis Ritchie
+originally implemented
+.Fn getc
+and
+.Fn getw
+in PDP-11 assembler.
.Sh BUGS
Since
.Dv EOF