diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-01-15 21:03:06 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-01-15 21:03:06 +0000 |
commit | a77c320810e780975ed28ae29c66aa0afc95fb3f (patch) | |
tree | f70384621f0022f7364de60f3311b4e46aad5d8f | |
parent | 161a2fac0bae0356ddc472d29b8a22acd498585a (diff) |
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@
-rw-r--r-- | lib/libc/stdio/fopen.3 | 20 | ||||
-rw-r--r-- | lib/libc/stdio/getc.3 | 25 | ||||
-rw-r--r-- | lib/libc/sys/access.2 | 20 |
3 files changed, 59 insertions, 6 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 diff --git a/lib/libc/sys/access.2 b/lib/libc/sys/access.2 index 08c47a922e5..92080c0c131 100644 --- a/lib/libc/sys/access.2 +++ b/lib/libc/sys/access.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: access.2,v 1.18 2011/07/19 20:58:05 matthew Exp $ +.\" $OpenBSD: access.2,v 1.19 2012/01/15 21:03:05 schwarze Exp $ .\" $NetBSD: access.2,v 1.7 1995/02/27 12:31:44 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)access.2 8.2 (Berkeley) 4/1/94 .\" -.Dd $Mdocdate: July 19 2011 $ +.Dd $Mdocdate: January 15 2012 $ .Dt ACCESS 2 .Os .Sh NAME @@ -200,10 +200,26 @@ and functions conform to .St -p1003.1-2008 . .Sh HISTORY +.Fn access +first appeared as an internal kernel function in +.At v1 +and was reimplemented in C before the release of +.At v4 . +It was first promoted to a system call in the Programmer's Workbench +(PWB/UNIX), which was later ported to +.At v7 +and +.Bx 2 . +.Pp The .Fn faccessat function appeared in .Ox 5.0 . +.Sh AUTHORS +.An Ken Thompson +first implemented the +.Fn access +kernel function in C. .Sh CAVEATS .Fn access and |