summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/select.h8
-rw-r--r--include/sys/socket.h8
2 files changed, 16 insertions, 0 deletions
diff --git a/include/sys/select.h b/include/sys/select.h
index 9101b51..50bdb6a 100644
--- a/include/sys/select.h
+++ b/include/sys/select.h
@@ -5,6 +5,10 @@
5 5
6#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 6#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
7 7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
8static inline __attribute__ ((always_inline)) 12static inline __attribute__ ((always_inline))
9int 13int
10__fortify_FD_CLR(int fd, fd_set *set) 14__fortify_FD_CLR(int fd, fd_set *set)
@@ -32,6 +36,10 @@ __fortify_FD_SET(int fd, fd_set *set)
32#undef FD_SET 36#undef FD_SET
33#define FD_SET(fd, set) __fortify_FD_SET(fd, set) 37#define FD_SET(fd, set) __fortify_FD_SET(fd, set)
34 38
39#ifdef __cplusplus
40}
41#endif
42
35#endif 43#endif
36 44
37#endif 45#endif
diff --git a/include/sys/socket.h b/include/sys/socket.h
index 7044f65..fc7381a 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -5,6 +5,10 @@
5 5
6#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 6#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
7 7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
8static inline __attribute__ ((always_inline)) 12static inline __attribute__ ((always_inline))
9ssize_t 13ssize_t
10__fortify_recv(int sockfd, void *buf, size_t n, int flags) 14__fortify_recv(int sockfd, void *buf, size_t n, int flags)
@@ -60,6 +64,10 @@ __fortify_sendto(int sockfd, const void *buf, size_t n, int flags,
60#undef sendto 64#undef sendto
61#define sendto(sockfd, buf, n, flags, sa, salen) __fortify_sendto(sockfd, buf, n, flags, sa, salen) 65#define sendto(sockfd, buf, n, flags, sa, salen) __fortify_sendto(sockfd, buf, n, flags, sa, salen)
62 66
67#ifdef __cplusplus
68}
69#endif
70
63#endif 71#endif
64 72
65#endif 73#endif