diff options
author | bapt <bapt@FreeBSD.org> | 2015-08-25 20:14:50 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-08-25 20:14:50 +0000 |
commit | 2a77c3b71d27973d4ffac086902715be69266202 (patch) | |
tree | 420361e546af3d9b54e3a1573b672510b15062e4 /lib/libc/string | |
parent | 795d1994935c72862e9c0f538c4f83b5b649ca96 (diff) | |
parent | 80b01acf73d4f8ff74678c4e7f57db989dba2366 (diff) | |
download | FreeBSD-src-2a77c3b71d27973d4ffac086902715be69266202.zip FreeBSD-src-2a77c3b71d27973d4ffac086902715be69266202.tar.gz |
Merge from HEAD
Diffstat (limited to 'lib/libc/string')
-rw-r--r-- | lib/libc/string/bcopy.3 | 23 | ||||
-rw-r--r-- | lib/libc/string/bzero.3 | 10 |
2 files changed, 31 insertions, 2 deletions
diff --git a/lib/libc/string/bcopy.3 b/lib/libc/string/bcopy.3 index 1608fad..ac480f8 100644 --- a/lib/libc/string/bcopy.3 +++ b/lib/libc/string/bcopy.3 @@ -31,7 +31,7 @@ .\" @(#)bcopy.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 4, 1993 +.Dd August 24, 2015 .Dt BCOPY 3 .Os .Sh NAME @@ -75,3 +75,24 @@ before it was moved to for .St -p1003.1-2001 compliance. +.Pp +.St -p1003.1-2008 +removes the specification of +.Fn bcopy +and it is marked as LEGACY in +.St -p1003.1-2004 . +New programs should use +.Xr memmove 3 . +If the input and output buffer do not overlap, then +.Xr memcpy 3 +is more efficient. +Note that +.Fn bcopy +takes +.Ar src +and +.Ar dst +in the opposite order from +.Fn memmove +and +.Fn memcpy . diff --git a/lib/libc/string/bzero.3 b/lib/libc/string/bzero.3 index 5af1bcf..130a652 100644 --- a/lib/libc/string/bzero.3 +++ b/lib/libc/string/bzero.3 @@ -31,7 +31,7 @@ .\" @(#)bzero.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd October 6, 2014 +.Dd August 24, 2015 .Dt BZERO 3 .Os .Sh NAME @@ -88,3 +88,11 @@ function first appeared in .Ox 5.5 and .Fx 11.0 . +.Pp +.St -p1003.1-2008 +removes the specification of +.Fn bzero +and it is marked as LEGACY in +.St -p1003.1-2004 . +For portability with other systems new programs should use +.Xr memset 3 . |