summaryrefslogtreecommitdiff
path: root/include/strings.h
diff options
context:
space:
mode:
authorjvoisin2025-12-30 11:32:19 +0100
committerJulien Voisin2025-12-30 11:34:48 +0100
commitc4c5fd41124f38a5afee02b8f604ddc21d3b199a (patch)
tree77e2be706743d954bfcaa28163751fcd2f4cd27e /include/strings.h
parent4797899b24d35873211cf0cd1a2a373e2db3c528 (diff)
Change __access into __fortify_access to fix potential conflicts
Diffstat (limited to 'include/strings.h')
-rw-r--r--include/strings.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/strings.h b/include/strings.h
index 3b6b765..6a17ca3 100644
--- a/include/strings.h
+++ b/include/strings.h
@@ -31,8 +31,8 @@ extern "C" {
31 || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700) 31 || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700)
32#undef bcopy 32#undef bcopy
33#undef bzero 33#undef bzero
34__access(write_only, 2, 3) 34__fortify_access(write_only, 2, 3)
35__access(read_only, 1, 3) 35__fortify_access(read_only, 1, 3)
36_FORTIFY_FN(bcopy) void bcopy(const void * _FORTIFY_POS0 __s, 36_FORTIFY_FN(bcopy) void bcopy(const void * _FORTIFY_POS0 __s,
37 void * _FORTIFY_POS0 __d, size_t __n) 37 void * _FORTIFY_POS0 __d, size_t __n)
38{ 38{
@@ -44,7 +44,7 @@ _FORTIFY_FN(bcopy) void bcopy(const void * _FORTIFY_POS0 __s,
44 return __orig_bcopy(__s, __d, __n); 44 return __orig_bcopy(__s, __d, __n);
45} 45}
46 46
47__access(write_only, 1, 2) 47__fortify_access(write_only, 1, 2)
48_FORTIFY_FN(bzero) void bzero(void * _FORTIFY_POS0 __s, size_t __n) 48_FORTIFY_FN(bzero) void bzero(void * _FORTIFY_POS0 __s, size_t __n)
49{ 49{
50 size_t __b = __bos(__s, 0); 50 size_t __b = __bos(__s, 0);