summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/select.h4
-rw-r--r--include/sys/socket.h8
2 files changed, 6 insertions, 6 deletions
diff --git a/include/sys/select.h b/include/sys/select.h
index bcee8be..1f19672 100644
--- a/include/sys/select.h
+++ b/include/sys/select.h
@@ -30,7 +30,7 @@ extern "C" {
30static __inline__ __attribute__((__always_inline__,__gnu_inline__,__artificial__)) 30static __inline__ __attribute__((__always_inline__,__gnu_inline__,__artificial__))
31void __fortify_FD_CLR(int __f, fd_set *__s) 31void __fortify_FD_CLR(int __f, fd_set *__s)
32{ 32{
33 size_t __b = __builtin_object_size(__s, 0); 33 size_t __b = __bos(__s, 0);
34 34
35 if (__f < 0 || __f >= FD_SETSIZE || __b < sizeof(fd_set)) 35 if (__f < 0 || __f >= FD_SETSIZE || __b < sizeof(fd_set))
36 __builtin_trap(); 36 __builtin_trap();
@@ -40,7 +40,7 @@ void __fortify_FD_CLR(int __f, fd_set *__s)
40static __inline__ __attribute__((__always_inline__,__gnu_inline__,__artificial__)) 40static __inline__ __attribute__((__always_inline__,__gnu_inline__,__artificial__))
41void __fortify_FD_SET(int __f, fd_set *__s) 41void __fortify_FD_SET(int __f, fd_set *__s)
42{ 42{
43 size_t __b = __builtin_object_size(__s, 0); 43 size_t __b = __bos(__s, 0);
44 44
45 if (__f < 0 || __f >= FD_SETSIZE || __b < sizeof(fd_set)) 45 if (__f < 0 || __f >= FD_SETSIZE || __b < sizeof(fd_set))
46 __builtin_trap(); 46 __builtin_trap();
diff --git a/include/sys/socket.h b/include/sys/socket.h
index ad6ab2d..21a3cf1 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -35,7 +35,7 @@ extern "C" {
35 35
36_FORTIFY_FN(recv) ssize_t recv(int __f, void *__s, size_t __n, int __fl) 36_FORTIFY_FN(recv) ssize_t recv(int __f, void *__s, size_t __n, int __fl)
37{ 37{
38 size_t __b = __builtin_object_size(__s, 0); 38 size_t __b = __bos(__s, 0);
39 39
40 if (__n > __b) 40 if (__n > __b)
41 __builtin_trap(); 41 __builtin_trap();
@@ -45,7 +45,7 @@ _FORTIFY_FN(recv) ssize_t recv(int __f, void *__s, size_t __n, int __fl)
45_FORTIFY_FN(recvfrom) ssize_t recvfrom(int __f, void *__s, size_t __n, int __fl, 45_FORTIFY_FN(recvfrom) ssize_t recvfrom(int __f, void *__s, size_t __n, int __fl,
46 struct sockaddr *__a, socklen_t *__l) 46 struct sockaddr *__a, socklen_t *__l)
47{ 47{
48 size_t __b = __builtin_object_size(__s, 0); 48 size_t __b = __bos(__s, 0);
49 49
50 if (__n > __b) 50 if (__n > __b)
51 __builtin_trap(); 51 __builtin_trap();
@@ -54,7 +54,7 @@ _FORTIFY_FN(recvfrom) ssize_t recvfrom(int __f, void *__s, size_t __n, int __fl,
54 54
55_FORTIFY_FN(send) ssize_t send(int __f, const void *__s, size_t __n, int __fl) 55_FORTIFY_FN(send) ssize_t send(int __f, const void *__s, size_t __n, int __fl)
56{ 56{
57 size_t __b = __builtin_object_size(__s, 0); 57 size_t __b = __bos(__s, 0);
58 58
59 if (__n > __b) 59 if (__n > __b)
60 __builtin_trap(); 60 __builtin_trap();
@@ -64,7 +64,7 @@ _FORTIFY_FN(send) ssize_t send(int __f, const void *__s, size_t __n, int __fl)
64_FORTIFY_FN(sendto) ssize_t sendto(int __f, const void *__s, size_t __n, int __fl, 64_FORTIFY_FN(sendto) ssize_t sendto(int __f, const void *__s, size_t __n, int __fl,
65 const struct sockaddr *__a, socklen_t __l) 65 const struct sockaddr *__a, socklen_t __l)
66{ 66{
67 size_t __b = __builtin_object_size(__s, 0); 67 size_t __b = __bos(__s, 0);
68 68
69 if (__n > __b) 69 if (__n > __b)
70 __builtin_trap(); 70 __builtin_trap();