Module Name: src
Committed By: rmind
Date: Sat Oct 15 21:35:50 UTC 2011
Modified Files:
src/lib/libc/gen: directory.3 lockf.3
src/lib/libc/stdio: flockfile.3
src/lib/libc/stdlib: random.3
src/lib/libc/sys: flock.2 msync.2 munmap.2
Log Message:
Mention POSIX conformance of some functions, when they appeared, sprinkle .Xr.
To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/lib/libc/gen/directory.3
cvs rdiff -u -r1.11 -r1.12 src/lib/libc/gen/lockf.3
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/stdio/flockfile.3
cvs rdiff -u -r1.19 -r1.20 src/lib/libc/stdlib/random.3
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/sys/flock.2
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/sys/msync.2
cvs rdiff -u -r1.19 -r1.20 src/lib/libc/sys/munmap.2
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/directory.3
diff -u src/lib/libc/gen/directory.3:1.36 src/lib/libc/gen/directory.3:1.37
--- src/lib/libc/gen/directory.3:1.36 Fri Dec 17 19:20:42 2010
+++ src/lib/libc/gen/directory.3 Sat Oct 15 21:35:49 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: directory.3,v 1.36 2010/12/17 19:20:42 njoly Exp $
+.\" $NetBSD: directory.3,v 1.37 2011/10/15 21:35:49 rmind Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)directory.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd June 4, 2010
+.Dd October 15, 2011
.Dt DIRECTORY 3
.Os
.Sh NAME
@@ -393,3 +393,7 @@ and
.Fn dirfd
functions appeared in
.Bx 4.2 .
+The
+.Fn fdopendir
+function appeared in
+.Nx 6.0 .
Index: src/lib/libc/gen/lockf.3
diff -u src/lib/libc/gen/lockf.3:1.11 src/lib/libc/gen/lockf.3:1.12
--- src/lib/libc/gen/lockf.3:1.11 Wed Mar 30 16:37:09 2011
+++ src/lib/libc/gen/lockf.3 Sat Oct 15 21:35:49 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: lockf.3,v 1.11 2011/03/30 16:37:09 jruoho Exp $
+.\" $NetBSD: lockf.3,v 1.12 2011/10/15 21:35:49 rmind Exp $
.\"
.\" Copyright (c) 1997 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd March 30, 2011
+.Dd October 15, 2011
.Dt LOCKF 3
.Os
.Sh NAME
@@ -246,9 +246,17 @@ of locked regions in the system exceedin
.El
.Sh SEE ALSO
.Xr fcntl 2 ,
-.Xr flock 2
+.Xr flock 2 ,
+.Xr flockfile 3
.Sh STANDARDS
The
.Fn lockf
function conforms to
-.St -xpg4.2 .
+.St -xpg4.2
+and
+.St -p1003.1-2008 .
+.Sh HISTORY
+The
+.Fn lockf
+function first appeared in
+.Fx 1.4 .
Index: src/lib/libc/stdio/flockfile.3
diff -u src/lib/libc/stdio/flockfile.3:1.4 src/lib/libc/stdio/flockfile.3:1.5
--- src/lib/libc/stdio/flockfile.3:1.4 Wed Apr 30 13:10:51 2008
+++ src/lib/libc/stdio/flockfile.3 Sat Oct 15 21:35:49 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: flockfile.3,v 1.4 2008/04/30 13:10:51 martin Exp $
+.\" $NetBSD: flockfile.3,v 1.5 2011/10/15 21:35:49 rmind Exp $
.\"
.\" Copyright (c) 2003 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd January 28, 2003
+.Dd October 15, 2011
.Dt FLOCKFILE 3
.Os
.Sh NAME
@@ -103,8 +103,10 @@ If successful, the
function returns 0.
Otherwise, it returns non-zero to indicate that the lock cannot be acquired.
.Sh SEE ALSO
+.Xr flock 2 ,
.Xr getc_unlocked 3 ,
.Xr getchar_unlocked 3 ,
+.Xr lockf 3 ,
.Xr putc_unlocked 3 ,
.Xr putchar_unlocked 3
.Sh STANDARDS
@@ -118,3 +120,8 @@ functions conform to
.Sh BUGS
The design of these interfaces does not allow for addressing the
problem of priority inversion.
+.Sh HISTORY
+The
+.Fn flockfile
+function first appeared in
+.Fx 2.0 .
Index: src/lib/libc/stdlib/random.3
diff -u src/lib/libc/stdlib/random.3:1.19 src/lib/libc/stdlib/random.3:1.20
--- src/lib/libc/stdlib/random.3:1.19 Thu Feb 28 16:16:35 2008
+++ src/lib/libc/stdlib/random.3 Sat Oct 15 21:35:49 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: random.3,v 1.19 2008/02/28 16:16:35 christos Exp $
+.\" $NetBSD: random.3,v 1.20 2011/10/15 21:35:49 rmind Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" from: @(#)random.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd February 28, 2008
+.Dd October 15, 2011
.Dt RANDOM 3
.Os
.Sh NAME
@@ -171,6 +171,15 @@ messages are printed on the standard err
.Xr srand 3 ,
.Xr rnd 4 ,
.Xr rnd 9
+.Sh STANDARDS
+The
+.Fn random ,
+.Fn srandom ,
+.Fn initstate
+and
+.Fn setstate
+functions conform to
+.St -p1003.1-2008 .
.Sh HISTORY
These
functions appeared in
Index: src/lib/libc/sys/flock.2
diff -u src/lib/libc/sys/flock.2:1.21 src/lib/libc/sys/flock.2:1.22
--- src/lib/libc/sys/flock.2:1.21 Thu Oct 29 01:52:01 2009
+++ src/lib/libc/sys/flock.2 Sat Oct 15 21:35:50 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: flock.2,v 1.21 2009/10/29 01:52:01 wiz Exp $
+.\" $NetBSD: flock.2,v 1.22 2011/10/15 21:35:50 rmind Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)flock.2 8.2 (Berkeley) 12/11/93
.\"
-.Dd October 26, 2009
+.Dd October 15, 2011
.Dt FLOCK 2
.Os
.Sh NAME
@@ -147,7 +147,9 @@ refers to an object other than a file.
.Xr dup 2 ,
.Xr execve 2 ,
.Xr fork 2 ,
-.Xr open 2
+.Xr open 2 ,
+.Xr flockfile 3 ,
+.Xr lockf 3
.Sh HISTORY
The
.Fn flock
Index: src/lib/libc/sys/msync.2
diff -u src/lib/libc/sys/msync.2:1.23 src/lib/libc/sys/msync.2:1.24
--- src/lib/libc/sys/msync.2:1.23 Tue Oct 18 03:18:16 2005
+++ src/lib/libc/sys/msync.2 Sat Oct 15 21:35:50 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: msync.2,v 1.23 2005/10/18 03:18:16 chs Exp $
+.\" $NetBSD: msync.2,v 1.24 2011/10/15 21:35:50 rmind Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -120,6 +120,11 @@ which are unmapped.
.Xr mlock 2 ,
.Xr mmap 2 ,
.Xr munlock 2
+.Sh STANDARDS
+The
+.Fn msync
+function conforms to
+.St -p1003.1b-93
.Sh HISTORY
The
.Fn msync
Index: src/lib/libc/sys/munmap.2
diff -u src/lib/libc/sys/munmap.2:1.19 src/lib/libc/sys/munmap.2:1.20
--- src/lib/libc/sys/munmap.2:1.19 Thu May 13 10:20:58 2004
+++ src/lib/libc/sys/munmap.2 Sat Oct 15 21:35:50 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: munmap.2,v 1.19 2004/05/13 10:20:58 wiz Exp $
+.\" $NetBSD: munmap.2,v 1.20 2011/10/15 21:35:50 rmind Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -76,6 +76,11 @@ valid address range for a process.
.Xr mprotect 2 ,
.Xr msync 2 ,
.Xr getpagesize 3
+.Sh STANDARDS
+The
+.Fn munmap
+function conforms to
+.St -p1003.1b-93 .
.Sh HISTORY
The
.Fn munmap