summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sys/select.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/include/sys/select.h b/include/sys/select.h
index f3d2eb8..58d7852 100644
--- a/include/sys/select.h
+++ b/include/sys/select.h
@@ -29,14 +29,8 @@ __extension__
29extern "C" { 29extern "C" {
30#endif 30#endif
31 31
32#ifdef __clang__ 32_FORTIFY_INLINE
33#define _FORTIFY_FD_POS0 const __attribute__((__pass_object_size__(0))) 33void __fortify_FD_CLR(int __f, fd_set * _FORTIFY_POS0 __s)
34#else
35#define _FORTIFY_FD_POS0
36#endif
37
38static __inline__ __attribute__((__always_inline__,__gnu_inline__,__artificial__))
39void __fortify_FD_CLR(int __f, fd_set * _FORTIFY_FD_POS0 __s)
40{ 34{
41 size_t __b = __bos(__s, 0); 35 size_t __b = __bos(__s, 0);
42 36
@@ -45,8 +39,8 @@ void __fortify_FD_CLR(int __f, fd_set * _FORTIFY_FD_POS0 __s)
45 FD_CLR(__f, __s); 39 FD_CLR(__f, __s);
46} 40}
47 41
48static __inline__ __attribute__((__always_inline__,__gnu_inline__,__artificial__)) 42_FORTIFY_INLINE
49void __fortify_FD_SET(int __f, fd_set * _FORTIFY_FD_POS0 __s) 43void __fortify_FD_SET(int __f, fd_set * _FORTIFY_POS0 __s)
50{ 44{
51 size_t __b = __bos(__s, 0); 45 size_t __b = __bos(__s, 0);
52 46
@@ -55,8 +49,6 @@ void __fortify_FD_SET(int __f, fd_set * _FORTIFY_FD_POS0 __s)
55 FD_SET(__f, __s); 49 FD_SET(__f, __s);
56} 50}
57 51
58#undef _FORTIFY_FD_POS0
59
60#undef FD_CLR 52#undef FD_CLR
61#define FD_CLR(fd, set) __fortify_FD_CLR(fd, set) 53#define FD_CLR(fd, set) __fortify_FD_CLR(fd, set)
62#undef FD_SET 54#undef FD_SET