summaryrefslogtreecommitdiff
path: root/include/poll.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/poll.h')
-rw-r--r--include/poll.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/poll.h b/include/poll.h
index e89b4e7..8e8de6c 100644
--- a/include/poll.h
+++ b/include/poll.h
@@ -1,5 +1,6 @@
1/* 1/*
2 * Copyright (C) 2015-2016 Dimitris Papastamos <sin@2f30.org> 2 * Copyright (C) 2015-2016 Dimitris Papastamos <sin@2f30.org>
3 * Copyright (C) 2022 q66 <q66@chimera-linux.org>
3 * 4 *
4 * Permission to use, copy, modify, and/or distribute this software for any 5 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted. 6 * purpose with or without fee is hereby granted.
@@ -30,7 +31,7 @@ extern "C" {
30 31
31#undef poll 32#undef poll
32 33
33_FORTIFY_FN(poll) int poll(struct pollfd *__f, nfds_t __n, int __s) 34_FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __s)
34{ 35{
35 size_t __b = __bos(__f, 0); 36 size_t __b = __bos(__f, 0);
36 37
@@ -41,8 +42,8 @@ _FORTIFY_FN(poll) int poll(struct pollfd *__f, nfds_t __n, int __s)
41 42
42#if defined(_GNU_SOURCE) && !_REDIR_TIME64 43#if defined(_GNU_SOURCE) && !_REDIR_TIME64
43#undef ppoll 44#undef ppoll
44_FORTIFY_FN(ppoll) int ppoll(struct pollfd *__f, nfds_t __n, const struct timespec *__s, 45_FORTIFY_FN(ppoll) int ppoll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n,
45 const sigset_t *__m) 46 const struct timespec *__s, const sigset_t *__m)
46{ 47{
47 size_t __b = __bos(__f, 0); 48 size_t __b = __bos(__f, 0);
48 49