summaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/string.h b/include/string.h
index bbf24fe..36f1df2 100644
--- a/include/string.h
+++ b/include/string.h
@@ -37,7 +37,7 @@ extern "C" {
37#undef strncat 37#undef strncat
38#undef strncpy 38#undef strncpy
39 39
40__access(write_only, 1) 40__access(write_only, 1, 3)
41__access(read_only, 2, 3) 41__access(read_only, 2, 3)
42_FORTIFY_FN(memcpy) void *memcpy(void * _FORTIFY_POS0 __od, 42_FORTIFY_FN(memcpy) void *memcpy(void * _FORTIFY_POS0 __od,
43 const void * _FORTIFY_POS0 __os, size_t __n) 43 const void * _FORTIFY_POS0 __os, size_t __n)
@@ -57,7 +57,7 @@ _FORTIFY_FN(memcpy) void *memcpy(void * _FORTIFY_POS0 __od,
57 return __builtin_memcpy(__od, __os, __n); 57 return __builtin_memcpy(__od, __os, __n);
58} 58}
59 59
60__access(write_only, 1) 60__access(write_only, 1, 3)
61__access(read_only, 2, 3) 61__access(read_only, 2, 3)
62_FORTIFY_FN(memmove) void *memmove(void * _FORTIFY_POS0 __d, 62_FORTIFY_FN(memmove) void *memmove(void * _FORTIFY_POS0 __d,
63 const void * _FORTIFY_POS0 __s, size_t __n) 63 const void * _FORTIFY_POS0 __s, size_t __n)
@@ -70,7 +70,7 @@ _FORTIFY_FN(memmove) void *memmove(void * _FORTIFY_POS0 __d,
70 return __orig_memmove(__d, __s, __n); 70 return __orig_memmove(__d, __s, __n);
71} 71}
72 72
73__access(write_only, 1) 73__access(write_only, 1, 3)
74_FORTIFY_FN(memset) void *memset(void * _FORTIFY_POS0 __d, int __c, size_t __n) 74_FORTIFY_FN(memset) void *memset(void * _FORTIFY_POS0 __d, int __c, size_t __n)
75{ 75{
76 size_t __b = __bos(__d, 0); 76 size_t __b = __bos(__d, 0);