From bfbaa577f6fc46ebb965724e0f261e79e26ec9fb Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 20 Aug 2023 20:50:31 +0200 Subject: Make use of __diagnose_as_builtin --- include/poll.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/poll.h') 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" { #undef poll +__diagnose_as_builtin(__builtin_pollfd, 1, 2, 3) _FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __s) { size_t __b = __bos(__f, 0); @@ -42,6 +43,7 @@ _FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __ #if defined(_GNU_SOURCE) && !_REDIR_TIME64 #undef ppoll +__diagnose_as_builtin(__builtin_ppollfd, 1, 2, 3, 4) _FORTIFY_FN(ppoll) int ppoll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, const struct timespec *__s, const sigset_t *__m) { -- cgit v1.3