diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/stdio.h | 2 | ||||
| -rw-r--r-- | include/string.h | 2 | ||||
| -rw-r--r-- | include/strings.h | 2 | ||||
| -rw-r--r-- | include/sys/socket.h | 2 | ||||
| -rw-r--r-- | include/unistd.h | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/include/stdio.h b/include/stdio.h index c9e0f0b..5426d08 100644 --- a/include/stdio.h +++ b/include/stdio.h | |||
| @@ -6,7 +6,7 @@ | |||
| 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 | #define __errordecl(name, msg) extern void name(void) __attribute__((__error__(msg))) | 9 | #define __errordecl(name, msg) extern void name(void) __attribute__ ((__error__(msg))) |
| 10 | 10 | ||
| 11 | __errordecl(__fgets_error, "fgets: buffer overflow detected"); | 11 | __errordecl(__fgets_error, "fgets: buffer overflow detected"); |
| 12 | static inline __attribute__ ((always_inline)) | 12 | static inline __attribute__ ((always_inline)) |
diff --git a/include/string.h b/include/string.h index eb3f652..3725bbb 100644 --- a/include/string.h +++ b/include/string.h | |||
| @@ -6,7 +6,7 @@ | |||
| 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 | #define __errordecl(name, msg) extern void name(void) __attribute__((__error__(msg))) | 9 | #define __errordecl(name, msg) extern void name(void) __attribute__ ((__error__(msg))) |
| 10 | 10 | ||
| 11 | __errordecl(__memcpy_error, "memcpy: buffer overflow detected"); | 11 | __errordecl(__memcpy_error, "memcpy: buffer overflow detected"); |
| 12 | static inline __attribute__ ((always_inline)) | 12 | static inline __attribute__ ((always_inline)) |
diff --git a/include/strings.h b/include/strings.h index 5a3471d..0531083 100644 --- a/include/strings.h +++ b/include/strings.h | |||
| @@ -6,7 +6,7 @@ | |||
| 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 | #define __errordecl(name, msg) extern void name(void) __attribute__((__error__(msg))) | 9 | #define __errordecl(name, msg) extern void name(void) __attribute__ ((__error__(msg))) |
| 10 | 10 | ||
| 11 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_POSIX_SOURCE) \ | 11 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_POSIX_SOURCE) \ |
| 12 | || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE+0 < 200809L) \ | 12 | || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE+0 < 200809L) \ |
diff --git a/include/sys/socket.h b/include/sys/socket.h index 824cb4e..bd9fed4 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h | |||
| @@ -6,7 +6,7 @@ | |||
| 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 | #define __errordecl(name, msg) extern void name(void) __attribute__((__error__(msg))) | 9 | #define __errordecl(name, msg) extern void name(void) __attribute__ ((__error__(msg))) |
| 10 | 10 | ||
| 11 | __errordecl(__recv_error, "recv: buffer overflow detected"); | 11 | __errordecl(__recv_error, "recv: buffer overflow detected"); |
| 12 | static inline __attribute__ ((always_inline)) | 12 | static inline __attribute__ ((always_inline)) |
diff --git a/include/unistd.h b/include/unistd.h index e4358a0..65dadb3 100644 --- a/include/unistd.h +++ b/include/unistd.h | |||
| @@ -6,7 +6,7 @@ | |||
| 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 | #define __errordecl(name, msg) extern void name(void) __attribute__((__error__(msg))) | 9 | #define __errordecl(name, msg) extern void name(void) __attribute__ ((__error__(msg))) |
| 10 | 10 | ||
| 11 | __errordecl(__pread_error, "pread: buffer overflow detected"); | 11 | __errordecl(__pread_error, "pread: buffer overflow detected"); |
| 12 | static inline __attribute__ ((always_inline)) | 12 | static inline __attribute__ ((always_inline)) |
