diff options
Diffstat (limited to 'include/poll.h')
| -rw-r--r-- | include/poll.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/poll.h b/include/poll.h index 8e8de6c..8831f95 100644 --- a/include/poll.h +++ b/include/poll.h | |||
| @@ -31,6 +31,9 @@ extern "C" { | |||
| 31 | 31 | ||
| 32 | #undef poll | 32 | #undef poll |
| 33 | 33 | ||
| 34 | #if __has_builtin(__builtin_poll) | ||
| 35 | __diagnose_as_builtin(__builtin_poll, 1, 2, 3) | ||
| 36 | #endif | ||
| 34 | _FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __s) | 37 | _FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __s) |
| 35 | { | 38 | { |
| 36 | size_t __b = __bos(__f, 0); | 39 | size_t __b = __bos(__f, 0); |
| @@ -42,6 +45,9 @@ _FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __ | |||
| 42 | 45 | ||
| 43 | #if defined(_GNU_SOURCE) && !_REDIR_TIME64 | 46 | #if defined(_GNU_SOURCE) && !_REDIR_TIME64 |
| 44 | #undef ppoll | 47 | #undef ppoll |
| 48 | #if __has_builtin(__builtin_ppoll) | ||
| 49 | __diagnose_as_builtin(__builtin_ppoll, 1, 2, 3, 4) | ||
| 50 | #endif | ||
| 45 | _FORTIFY_FN(ppoll) int ppoll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, | 51 | _FORTIFY_FN(ppoll) int ppoll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, |
| 46 | const struct timespec *__s, const sigset_t *__m) | 52 | const struct timespec *__s, const sigset_t *__m) |
| 47 | { | 53 | { |
