Module Name:    src
Committed By:   jruoho
Date:           Thu Apr 29 06:54:26 UTC 2010

Modified Files:
        src/lib/libc/gen: getcwd.3
        src/lib/libc/stdio: mktemp.3
        src/lib/libc/string: bcmp.3 bcopy.3 bzero.3 index.3 rindex.3

Log Message:
Add some STANDARDS lingo, mainly to note the functions that have been
removed from POSIX (2008).


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/gen/getcwd.3
cvs rdiff -u -r1.25 -r1.26 src/lib/libc/stdio/mktemp.3
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/string/bcmp.3 \
    src/lib/libc/string/bzero.3 src/lib/libc/string/index.3
cvs rdiff -u -r1.11 -r1.12 src/lib/libc/string/bcopy.3 \
    src/lib/libc/string/rindex.3

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/getcwd.3
diff -u src/lib/libc/gen/getcwd.3:1.17 src/lib/libc/gen/getcwd.3:1.18
--- src/lib/libc/gen/getcwd.3:1.17	Mon Mar 22 19:30:53 2010
+++ src/lib/libc/gen/getcwd.3	Thu Apr 29 06:54:26 2010
@@ -1,4 +1,4 @@
-.\"	$NetBSD: getcwd.3,v 1.17 2010/03/22 19:30:53 joerg Exp $
+.\"	$NetBSD: getcwd.3,v 1.18 2010/04/29 06:54:26 jruoho Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)getcwd.3	8.2 (Berkeley) 12/11/93
 .\"
-.Dd December 11, 1993
+.Dd April 29, 2010
 .Dt GETCWD 3
 .Os
 .Sh NAME
@@ -132,10 +132,24 @@
 .Xr strerror 3
 .Sh STANDARDS
 The
+.Fn getwd
+and
 .Fn getcwd
-function
-conforms to
+functions conform to
 .St -p1003.1-90 .
+The
+.St -p1003.1-2004
+revision marked
+.Fn getwd
+as legacy and recommended the use of
+.Fn getcwd
+instead.
+The
+.St -p1003.1-2008
+revision removed
+.Fn getwd
+from the specification.
+.Pp
 The ability to specify a
 .Dv NULL
 pointer and have

Index: src/lib/libc/stdio/mktemp.3
diff -u src/lib/libc/stdio/mktemp.3:1.25 src/lib/libc/stdio/mktemp.3:1.26
--- src/lib/libc/stdio/mktemp.3:1.25	Fri Aug  4 20:55:45 2006
+++ src/lib/libc/stdio/mktemp.3	Thu Apr 29 06:54:26 2010
@@ -1,4 +1,4 @@
-.\"	$NetBSD: mktemp.3,v 1.25 2006/08/04 20:55:45 jld Exp $
+.\"	$NetBSD: mktemp.3,v 1.26 2010/04/29 06:54:26 jruoho Exp $
 .\"
 .\" Copyright (c) 1989, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)mktemp.3	8.1 (Berkeley) 6/4/93
 .\"
-.Dd July 28, 1998
+.Dd April 29, 2010
 .Dt MKTEMP 3
 .Os
 .Sh NAME
@@ -249,6 +249,23 @@
 .Xr open 2 ,
 .Xr stat 2 ,
 .Xr umask 2
+.Sh STANDARDS
+The
+.Fn mktemp
+conforms to
+.St -p1003.1-2001 .
+It was however removed from the specification in the
+.St -p1003.1-2008
+revision.
+The
+.Fn mkstemp
+and
+.Fn mkdtemp
+conform to
+.St -p1003.1-2004
+and
+.St -p1003.1-2008 ,
+respectively.
 .Sh HISTORY
 A
 .Fn mktemp
@@ -310,5 +327,3 @@
 or
 .Fn mkdtemp
 instead.
-.\" .SH STANDARDS
-.\" .St -p1003.1-2003

Index: src/lib/libc/string/bcmp.3
diff -u src/lib/libc/string/bcmp.3:1.12 src/lib/libc/string/bcmp.3:1.13
--- src/lib/libc/string/bcmp.3:1.12	Thu Aug  7 16:43:46 2003
+++ src/lib/libc/string/bcmp.3	Thu Apr 29 06:54:26 2010
@@ -28,9 +28,9 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     from: @(#)bcmp.3	8.1 (Berkeley) 6/4/93
-.\"	$NetBSD: bcmp.3,v 1.12 2003/08/07 16:43:46 agc Exp $
+.\"	$NetBSD: bcmp.3,v 1.13 2010/04/29 06:54:26 jruoho Exp $
 .\"
-.Dd June 4, 1993
+.Dd April 29, 2010
 .Dt BCMP 3
 .Os
 .Sh NAME
@@ -63,6 +63,21 @@
 .Xr strcmp 3 ,
 .Xr strcoll 3 ,
 .Xr strxfrm 3
+.Sh STANDARDS
+The
+.Fn bcmp
+function conforms to
+.St -p1003.1-2001 .
+The
+.St -p1003.1-2004
+revision marked it as legacy and recommended the use of
+.Xr memcmp 3
+instead.
+The
+.St -p1003.1-2008
+revision removed
+.Fn bcmp
+from the specification.
 .Sh HISTORY
 A
 .Fn bcmp
Index: src/lib/libc/string/bzero.3
diff -u src/lib/libc/string/bzero.3:1.12 src/lib/libc/string/bzero.3:1.13
--- src/lib/libc/string/bzero.3:1.12	Thu Aug  7 16:43:47 2003
+++ src/lib/libc/string/bzero.3	Thu Apr 29 06:54:26 2010
@@ -29,9 +29,9 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     from: @(#)bzero.3	8.1 (Berkeley) 6/4/93
-.\"	$NetBSD: bzero.3,v 1.12 2003/08/07 16:43:47 agc Exp $
+.\"	$NetBSD: bzero.3,v 1.13 2010/04/29 06:54:26 jruoho Exp $
 .\"
-.Dd June 4, 1993
+.Dd April 29, 2010
 .Dt BZERO 3
 .Os
 .Sh NAME
@@ -59,6 +59,21 @@
 .Sh SEE ALSO
 .Xr memset 3 ,
 .Xr swab 3
+.Sh STANDARDS
+The
+.Fn bzero
+function conforms to
+.St -p1003.1-2001 .
+The
+.St -p1003.1-2004
+revision marked it as legacy and recommended the use of
+.Xr memset 3
+instead.
+The
+.St -p1003.1-2008
+revision removed
+.Fn bzero
+from the specification.
 .Sh HISTORY
 A
 .Fn bzero
Index: src/lib/libc/string/index.3
diff -u src/lib/libc/string/index.3:1.12 src/lib/libc/string/index.3:1.13
--- src/lib/libc/string/index.3:1.12	Mon Oct 16 08:48:45 2006
+++ src/lib/libc/string/index.3	Thu Apr 29 06:54:26 2010
@@ -28,9 +28,9 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     from: @(#)index.3	8.1 (Berkeley) 6/4/93
-.\"	$NetBSD: index.3,v 1.12 2006/10/16 08:48:45 wiz Exp $
+.\"	$NetBSD: index.3,v 1.13 2010/04/29 06:54:26 jruoho Exp $
 .\"
-.Dd June 4, 1993
+.Dd April 29, 2010
 .Dt INDEX 3
 .Os
 .Sh NAME
@@ -72,6 +72,21 @@
 .Xr strspn 3 ,
 .Xr strstr 3 ,
 .Xr strtok 3
+.Sh STANDARDS
+The
+.Fn index
+function conforms to
+.St -p1003.1-2001 .
+The
+.St -p1003.1-2004
+revision marked it as legacy and recommended the use of
+.Xr strchr 3
+instead.
+The
+.St -p1003.1-2008
+revision removed
+.Fn index
+from the specification.
 .Sh HISTORY
 An
 .Fn index

Index: src/lib/libc/string/bcopy.3
diff -u src/lib/libc/string/bcopy.3:1.11 src/lib/libc/string/bcopy.3:1.12
--- src/lib/libc/string/bcopy.3:1.11	Thu Aug  7 16:43:47 2003
+++ src/lib/libc/string/bcopy.3	Thu Apr 29 06:54:26 2010
@@ -29,9 +29,9 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     from: @(#)bcopy.3	8.1 (Berkeley) 6/4/93
-.\"	$NetBSD: bcopy.3,v 1.11 2003/08/07 16:43:47 agc Exp $
+.\"	$NetBSD: bcopy.3,v 1.12 2010/04/29 06:54:26 jruoho Exp $
 .\"
-.Dd June 4, 1993
+.Dd April 29, 2010
 .Dt BCOPY 3
 .Os
 .Sh NAME
@@ -63,6 +63,16 @@
 .Xr memmove 3 ,
 .Xr strcpy 3 ,
 .Xr strncpy 3
+.Sh STANDARDS
+The
+.Fn bcmp
+function conforms to
+.St -p1003.1-2001 .
+The
+.St -p1003.1-2004
+revision marked it as legacy the
+.St -p1003.1-2008
+revision removed it from the specification.
 .Sh HISTORY
 A
 .Fn bcopy
Index: src/lib/libc/string/rindex.3
diff -u src/lib/libc/string/rindex.3:1.11 src/lib/libc/string/rindex.3:1.12
--- src/lib/libc/string/rindex.3:1.11	Mon Oct 16 08:48:45 2006
+++ src/lib/libc/string/rindex.3	Thu Apr 29 06:54:26 2010
@@ -28,9 +28,9 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     from: @(#)rindex.3	8.1 (Berkeley) 6/4/93
-.\"	$NetBSD: rindex.3,v 1.11 2006/10/16 08:48:45 wiz Exp $
+.\"	$NetBSD: rindex.3,v 1.12 2010/04/29 06:54:26 jruoho Exp $
 .\"
-.Dd June 4, 1993
+.Dd April 29, 2010
 .Dt RINDEX 3
 .Os
 .Sh NAME
@@ -75,6 +75,21 @@
 .Xr strspn 3 ,
 .Xr strstr 3 ,
 .Xr strtok 3
+.Sh STANDARDS
+The
+.Fn rindex
+function conforms to
+.St -p1003.1-2001 .
+The
+.St -p1003.1-2004
+revision marked it as legacy and recommended the use of
+.Xr strrchr 3
+instead.
+The
+.St -p1003.1-2008
+revision removed
+.Fn rindex
+from the specification.
 .Sh HISTORY
 A
 .Fn rindex

Reply via email to