summaryrefslogtreecommitdiff
path: root/include/poll.h
diff options
context:
space:
mode:
authorq662023-12-15 23:48:58 +0100
committerq662023-12-15 23:50:43 +0100
commita018052d410126f94c2602b208b099839d333b05 (patch)
tree6fb36635689a4568f384e1cc7c2ae9f4e617ad58 /include/poll.h
parent95441d2647a149ffa6db4a81c0a19e96e3b56ba5 (diff)
Rename some macros to be more namespace-friendly
Diffstat (limited to 'include/poll.h')
-rw-r--r--include/poll.h4
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();