diff options
Diffstat (limited to 'include/poll.h')
| -rw-r--r-- | include/poll.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/poll.h b/include/poll.h index 29e5c40..def2c69 100644 --- a/include/poll.h +++ b/include/poll.h | |||
| @@ -36,7 +36,7 @@ __diagnose_as_builtin(__builtin_poll, 1, 2, 3) | |||
| 36 | #endif | 36 | #endif |
| 37 | _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) |
| 38 | { | 38 | { |
| 39 | __fh_size_t __b = __bos(__f, 0); | 39 | __fh_size_t __b = __fh_bos(__f, 0); |
| 40 | 40 | ||
| 41 | if (__n > __b / sizeof(struct pollfd)) | 41 | if (__n > __b / sizeof(struct pollfd)) |
| 42 | __builtin_trap(); | 42 | __builtin_trap(); |
| @@ -51,7 +51,7 @@ __diagnose_as_builtin(__builtin_ppoll, 1, 2, 3, 4) | |||
| 51 | _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, |
| 52 | const struct timespec *__s, const sigset_t *__m) | 52 | const struct timespec *__s, const sigset_t *__m) |
| 53 | { | 53 | { |
| 54 | __fh_size_t __b = __bos(__f, 0); | 54 | __fh_size_t __b = __fh_bos(__f, 0); |
| 55 | 55 | ||
| 56 | if (__n > __b / sizeof(struct pollfd)) | 56 | if (__n > __b / sizeof(struct pollfd)) |
| 57 | __builtin_trap(); | 57 | __builtin_trap(); |
