Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147422803
D3374.id7920.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
980 B
Referenced Files
None
Subscribers
None
D3374.id7920.diff
View Options
Index: lib/libc/string/bcopy.3
===================================================================
--- lib/libc/string/bcopy.3
+++ lib/libc/string/bcopy.3
@@ -57,18 +57,6 @@
If
.Fa len
is zero, no bytes are copied.
-.Pp
-This function is obsolete (marked as LEGACY in
-POSIX.1-2001): please use
-.Xr memmove 3
-in new programs.
-Note that
-.Fn bcopy
-takes its src and dst arguments in the opposite
-order from
-.Xr memmove 3 .
-POSIX.1-2008 removes the specification of
-.Fn bcopy .
.Sh SEE ALSO
.Xr memccpy 3 ,
.Xr memcpy 3 ,
@@ -87,3 +75,23 @@
for
.St -p1003.1-2001
compliance.
+.Pp
+The
+.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:
+.Fn memmove
+if you can guarantee that the input and output buffer
+do not overlap, then
+.Fn memcpy
+would be more efficient.
+Note that
+.Fn bcopy
+takes its src and dst arguments in the
+opposite order from
+.Fn memcpy
+and
+.Fn memmove .
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 11, 8:55 PM (6 m, 42 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29550829
Default Alt Text
D3374.id7920.diff (980 B)
Attached To
Mode
D3374: Make clear the bcopy(3) man page.
Attached
Detach File
Event Timeline
Log In to Comment