diff options
| author | jruoho <jruoho@NetBSD.org> | 2010-04-29 06:54:26 +0000 |
|---|---|---|
| committer | jruoho <jruoho@NetBSD.org> | 2010-04-29 06:54:26 +0000 |
| commit | 157d0c3eea44560486b1fb690a86cd9b28db68e1 (patch) | |
| tree | 8203e4e322adb6a856e63bc1b32cdf554a640ae4 /lib/libc/string | |
| parent | fc309475a397c9ca26b0d1ea244f8ad27948bfb7 (diff) | |
Add some STANDARDS lingo, mainly to note the functions that have been
removed from POSIX (2008).
Diffstat (limited to 'lib/libc/string')
| -rw-r--r-- | lib/libc/string/bcmp.3 | 19 | ||||
| -rw-r--r-- | lib/libc/string/bcopy.3 | 14 | ||||
| -rw-r--r-- | lib/libc/string/bzero.3 | 19 | ||||
| -rw-r--r-- | lib/libc/string/index.3 | 19 | ||||
| -rw-r--r-- | lib/libc/string/rindex.3 | 19 |
5 files changed, 80 insertions, 10 deletions
diff --git a/lib/libc/string/bcmp.3 b/lib/libc/string/bcmp.3 index 6c753db2bc1..b9ffe6cf57d 100644 --- a/lib/libc/string/bcmp.3 +++ b/lib/libc/string/bcmp.3 @@ -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 @@ The strings may overlap. .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 diff --git a/lib/libc/string/bcopy.3 b/lib/libc/string/bcopy.3 index de02aef32ac..f46cfe0b7be 100644 --- a/lib/libc/string/bcopy.3 +++ b/lib/libc/string/bcopy.3 @@ -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 @@ is zero, no bytes are copied. .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 diff --git a/lib/libc/string/bzero.3 b/lib/libc/string/bzero.3 index 9a15cd68035..b47d5b8839b 100644 --- a/lib/libc/string/bzero.3 +++ b/lib/libc/string/bzero.3 @@ -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 @@ does nothing. .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 diff --git a/lib/libc/string/index.3 b/lib/libc/string/index.3 index 7d12070b35f..f69555539ed 100644 --- a/lib/libc/string/index.3 +++ b/lib/libc/string/index.3 @@ -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 @@ locates the terminating '\e0'. .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 diff --git a/lib/libc/string/rindex.3 b/lib/libc/string/rindex.3 index 02eef4311ad..f5f91fb5f7d 100644 --- a/lib/libc/string/rindex.3 +++ b/lib/libc/string/rindex.3 @@ -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 @@ locates the terminating .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 |
