Describe that bcopy(3) is deprecated and marked as LEGACY in

POSIX.1-2001 and removed from the specification in POSIX.1-2008.
New softwares shall use memcpy(3) or memmove(3).

Differential Revision:	D3358
Reviewed by:		wblock
Approved by:		rodrigc
Sponsored by:		gandi.net
This commit is contained in:
Marcelo Araujo 2015-08-12 00:49:20 +00:00
parent e2870cb59a
commit f73a11dd1d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286651

View File

@ -31,7 +31,7 @@
.\" @(#)bcopy.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
.Dd June 4, 1993
.Dd August 11, 2015
.Dt BCOPY 3
.Os
.Sh NAME
@ -57,6 +57,20 @@ The two strings may overlap.
If
.Fa len
is zero, no bytes are copied.
.Pp
This function is deprecated (marked as LEGACY in
POSIX.1-2001): use
.Xr memcpy 3
or
.Xr memmove 3
in new programs.
Note that the first two arguments are
interchanged for
.Xr memcpy 3
and
.Xr memmove 3 .
POSIX.1-2008 removes the specification of
.Fn bcopy .
.Sh SEE ALSO
.Xr memccpy 3 ,
.Xr memcpy 3 ,