summaryrefslogtreecommitdiff
path: root/include/poll.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/poll.h')
-rw-r--r--include/poll.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/poll.h b/include/poll.h
index 8e8de6c..10df4b3 100644
--- a/include/poll.h
+++ b/include/poll.h
@@ -31,6 +31,7 @@ extern "C" {
31 31
32#undef poll 32#undef poll
33 33
34__diagnose_as_builtin(__builtin_pollfd, 1, 2, 3)
34_FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __s) 35_FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __s)
35{ 36{
36 size_t __b = __bos(__f, 0); 37 size_t __b = __bos(__f, 0);
@@ -42,6 +43,7 @@ _FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __
42 43
43#if defined(_GNU_SOURCE) && !_REDIR_TIME64 44#if defined(_GNU_SOURCE) && !_REDIR_TIME64
44#undef ppoll 45#undef ppoll
46__diagnose_as_builtin(__builtin_ppollfd, 1, 2, 3, 4)
45_FORTIFY_FN(ppoll) int ppoll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, 47_FORTIFY_FN(ppoll) int ppoll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n,
46 const struct timespec *__s, const sigset_t *__m) 48 const struct timespec *__s, const sigset_t *__m)
47{ 49{