summaryrefslogtreecommitdiff
path: root/include/poll.h
diff options
context:
space:
mode:
authorDaniel Kolesa2022-10-26 00:30:00 +0200
committerjvoisin2025-10-31 22:16:21 +0100
commitf46714c2f9eb13c12c8218f1b7c045182041fdc9 (patch)
treeb1285c57cd600790ce86890927504e59f1cbd7d7 /include/poll.h
parent8915dc13de44fed3a076a9fd51eb1ab2b5502d7b (diff)
add initial clang support
Co-Authored-By: jvoisin <julien.voisin@dustri.org>
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 da0ffcc..4f5e69c 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 __typeof__(sizeof 0) __b = __bos(__f, 0); 36 __typeof__(sizeof 0) __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) && (!defined(_REDIR_TIME64) || !_REDIR_TIME64) 43#if defined(_GNU_SOURCE) && (!defined(_REDIR_TIME64) || !_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 __typeof__(sizeof 0) __b = __bos(__f, 0); 48 __typeof__(sizeof 0) __b = __bos(__f, 0);
48 49