summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/poll.h7
-rw-r--r--include/stdio.h7
-rw-r--r--include/stdlib.h6
-rw-r--r--include/string.h7
-rw-r--r--include/strings.h6
-rw-r--r--include/sys/select.h6
-rw-r--r--include/sys/socket.h7
-rw-r--r--include/unistd.h7
-rw-r--r--include/wchar.h7
9 files changed, 51 insertions, 9 deletions
diff --git a/include/poll.h b/include/poll.h
index 93976dd..6469acb 100644
--- a/include/poll.h
+++ b/include/poll.h
@@ -5,7 +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#ifndef __cplusplus 8#ifdef __cplusplus
9extern "C" {
10#endif
11
9#undef poll 12#undef poll
10 13
11extern int __poll_orig(struct pollfd *, nfds_t, int) 14extern int __poll_orig(struct pollfd *, nfds_t, int)
@@ -35,6 +38,8 @@ int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const
35} 38}
36#endif 39#endif
37 40
41#ifdef __cplusplus
42}
38#endif 43#endif
39 44
40#endif 45#endif
diff --git a/include/stdio.h b/include/stdio.h
index f87bd59..5cf5b13 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -5,7 +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#ifndef __cplusplus 8#ifdef __cplusplus
9extern "C" {
10#endif
11
9#undef fgets 12#undef fgets
10#undef fread 13#undef fread
11#undef fwrite 14#undef fwrite
@@ -114,6 +117,8 @@ int sprintf(char *s, const char *fmt, ...)
114 return r; 117 return r;
115} 118}
116 119
120#ifdef __cplusplus
121}
117#endif 122#endif
118 123
119#endif 124#endif
diff --git a/include/stdlib.h b/include/stdlib.h
index f4a026b..9d3698a 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -9,7 +9,9 @@
9 9
10#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 10#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
11 11
12#ifndef __cplusplus 12#ifdef __cplusplus
13extern "C" {
14#endif
13 15
14#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) 16#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
15#undef realpath 17#undef realpath
@@ -33,6 +35,8 @@ char *realpath(const char *path, char *resolved)
33} 35}
34#endif 36#endif
35 37
38#ifdef __cplusplus
39}
36#endif 40#endif
37 41
38#endif 42#endif
diff --git a/include/string.h b/include/string.h
index 02e931e..f11e388 100644
--- a/include/string.h
+++ b/include/string.h
@@ -5,7 +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#ifndef __cplusplus 8#ifdef __cplusplus
9extern "C" {
10#endif
11
9#undef memcpy 12#undef memcpy
10#undef memmove 13#undef memmove
11#undef memset 14#undef memset
@@ -181,6 +184,8 @@ size_t strlcpy(char *dest, const char *src, size_t n)
181} 184}
182#endif 185#endif
183 186
187#ifdef __cplusplus
188}
184#endif 189#endif
185 190
186#endif 191#endif
diff --git a/include/strings.h b/include/strings.h
index 1adbf51..4c1a591 100644
--- a/include/strings.h
+++ b/include/strings.h
@@ -5,7 +5,9 @@
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#ifndef __cplusplus 8#ifdef __cplusplus
9extern "C" {
10#endif
9 11
10#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_POSIX_SOURCE) \ 12#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_POSIX_SOURCE) \
11 || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE+0 < 200809L) \ 13 || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE+0 < 200809L) \
@@ -37,6 +39,8 @@ void bzero(void *src, size_t n)
37} 39}
38#endif 40#endif
39 41
42#ifdef __cplusplus
43}
40#endif 44#endif
41 45
42#endif 46#endif
diff --git a/include/sys/select.h b/include/sys/select.h
index 7838041..9c3afa5 100644
--- a/include/sys/select.h
+++ b/include/sys/select.h
@@ -5,7 +5,9 @@
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#ifndef __cplusplus 8#ifdef __cplusplus
9extern "C" {
10#endif
9 11
10static __inline __attribute__((__always_inline__,__gnu_inline__)) 12static __inline __attribute__((__always_inline__,__gnu_inline__))
11int __fortify_FD_CLR(int fd, fd_set *set) 13int __fortify_FD_CLR(int fd, fd_set *set)
@@ -32,6 +34,8 @@ int __fortify_FD_SET(int fd, fd_set *set)
32#undef FD_SET 34#undef FD_SET
33#define FD_SET(fd, set) __fortify_FD_SET(fd, set) 35#define FD_SET(fd, set) __fortify_FD_SET(fd, set)
34 36
37#ifdef __cplusplus
38}
35#endif 39#endif
36 40
37#endif 41#endif
diff --git a/include/sys/socket.h b/include/sys/socket.h
index 4602866..81358fd 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -5,7 +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#ifndef __cplusplus 8#ifdef __cplusplus
9extern "C" {
10#endif
11
9#undef recv 12#undef recv
10#undef recvfrom 13#undef recvfrom
11#undef send 14#undef send
@@ -61,6 +64,8 @@ ssize_t sendto(int sockfd, const void *buf, size_t n, int flags,
61 return __sendto_orig(sockfd, buf, n, flags, sa, salen); 64 return __sendto_orig(sockfd, buf, n, flags, sa, salen);
62} 65}
63 66
67#ifdef __cplusplus
68}
64#endif 69#endif
65 70
66#endif 71#endif
diff --git a/include/unistd.h b/include/unistd.h
index aa4ddff..0e5119e 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -5,7 +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#ifndef __cplusplus 8#ifdef __cplusplus
9extern "C" {
10#endif
11
9#undef confstr 12#undef confstr
10#undef getcwd 13#undef getcwd
11#undef getgroups 14#undef getgroups
@@ -165,6 +168,8 @@ ssize_t write(int fd, const void *buf, size_t n)
165 return __write_orig(fd, buf, n); 168 return __write_orig(fd, buf, n);
166} 169}
167 170
171#ifdef __cplusplus
172}
168#endif 173#endif
169 174
170#endif 175#endif
diff --git a/include/wchar.h b/include/wchar.h
index dac8435..f613429 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -6,7 +6,10 @@
6 6
7#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 7#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
8 8
9#ifndef __cplusplus 9#ifdef __cplusplus
10extern "C" {
11#endif
12
10#undef fgetws 13#undef fgetws
11#undef mbsnrtowcs 14#undef mbsnrtowcs
12#undef mbsrtowcs 15#undef mbsrtowcs
@@ -246,6 +249,8 @@ wchar_t *wmemset(wchar_t *s, wchar_t c, size_t n)
246 return __wmemset_orig(s, c, n); 249 return __wmemset_orig(s, c, n);
247} 250}
248 251
252#ifdef __cplusplus
253}
249#endif 254#endif
250 255
251#endif 256#endif