]> git.saurik.com Git - apple/libc.git/blob - string/FreeBSD/bstring.3.patch
Libc-498.1.7.tar.gz
[apple/libc.git] / string / FreeBSD / bstring.3.patch
1 --- bstring.3 2003-05-20 15:23:54.000000000 -0700
2 +++ bstring.3.edit 2006-07-12 10:55:13.000000000 -0700
3 @@ -51,33 +51,76 @@
4 .Sh LIBRARY
5 .Lb libc
6 .Sh SYNOPSIS
7 -.In string.h
8 +.In strings.h
9 .Ft int
10 -.Fn bcmp "const void *b1" "const void *b2" "size_t len"
11 +.Fo bcmp
12 +.Fa "const void *s1"
13 +.Fa "const void *s2"
14 +.Fa "size_t n"
15 +.Fc
16 .Ft void
17 -.Fn bcopy "const void *src" "void *dst" "size_t len"
18 +.Fo bcopy
19 +.Fa "const void *s1"
20 +.Fa "void *s2"
21 +.Fa "size_t n"
22 +.Fc
23 .Ft void
24 -.Fn bzero "void *b" "size_t len"
25 +.Fo bzero
26 +.Fa "void *s"
27 +.Fa "size_t n"
28 +.Fc
29 +.In string.h
30 .Ft void *
31 -.Fn memchr "const void *b" "int c" "size_t len"
32 -.Ft int
33 -.Fn memcmp "const void *b1" "const void *b2" "size_t len"
34 +.Fo memccpy
35 +.Fa "void *restrict s1"
36 +.Fa "const void *restrict s2"
37 +.Fa "int c"
38 +.Fa "size_t n"
39 +.Fc
40 .Ft void *
41 -.Fn memccpy "void *dst" "const void *src" "int c" "size_t len"
42 +.Fo memchr
43 +.Fa "const void *s"
44 +.Fa "int c"
45 +.Fa "size_t n"
46 +.Fc
47 +.Ft int
48 +.Fo memcmp
49 +.Fa "const void *s1"
50 +.Fa "const void *s2"
51 +.Fa "size_t n"
52 +.Fc
53 .Ft void *
54 -.Fn memcpy "void *dst" "const void *src" "size_t len"
55 +.Fo memcpy
56 +.Fa "void *restrict s1"
57 +.Fa "const void *restrict s2"
58 +.Fa "size_t n"
59 +.Fc
60 .Ft void *
61 -.Fn memmove "void *dst" "const void *src" "size_t len"
62 +.Fo memmove
63 +.Fa "void *s1"
64 +.Fa "const void *s2"
65 +.Fa "size_t n"
66 +.Fc
67 .Ft void *
68 -.Fn memset "void *b" "int c" "size_t len"
69 +.Fo memset
70 +.Fa "void *s"
71 +.Fa "int c"
72 +.Fa "size_t n"
73 +.Fc
74 .Sh DESCRIPTION
75 These functions operate on variable length strings of bytes.
76 -They do not check for terminating null bytes as the routines
77 +They do not check for terminating null bytes, as the routines
78 listed in
79 .Xr string 3
80 do.
81 .Pp
82 See the specific manual pages for more information.
83 +.Sh LEGACY SYNOPSIS
84 +.Fd #include <string.h>
85 +.Pp
86 +The include file
87 +.In string.h
88 +is necessary and sufficient for all functions.
89 .Sh SEE ALSO
90 .Xr bcmp 3 ,
91 .Xr bcopy 3 ,
92 @@ -87,7 +130,8 @@
93 .Xr memcmp 3 ,
94 .Xr memcpy 3 ,
95 .Xr memmove 3 ,
96 -.Xr memset 3
97 +.Xr memset 3 ,
98 +.Xr compat 5
99 .Sh STANDARDS
100 The functions
101 .Fn memchr ,