[PATCH 1/2] libc/sys/rtems: Added protoype for ppoll() to poll.h

mez3n <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
From: Mazen Adel Elmessady <[email protected]>

Hi,

I'm a GSoC 2025 contributor with the RTEMS project, working on adding support for POSIX Issue 8 features.

As part of this effort, I am submitting a patch to update the Newlib headers by adding the prototype for `ppoll()` in `poll.h` under `libc/sys/rtems`

This update is a preparatory step for implementing `ppoll()` in RTEMS to improve conformance with POSIX Issue 8 requirements.

Best regards,  
Mazen  
<[email protected]>
---
 newlib/libc/sys/rtems/include/sys/poll.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/newlib/libc/sys/rtems/include/sys/poll.h b/newlib/libc/sys/rtems/include/sys/poll.h
index cc6ad49db..520018144 100644
--- a/newlib/libc/sys/rtems/include/sys/poll.h
+++ b/newlib/libc/sys/rtems/include/sys/poll.h
@@ -35,6 +35,10 @@
 
 #include <sys/cdefs.h>
 
+#if __POSIX_VISIBLE >= 202405
+#include <bits/types/sigset_t.h>
+#endif
+
 /*
  * This file is intended to be compatible with the traditional poll.h.
  */
@@ -100,6 +104,11 @@ struct pollfd {
 
 __BEGIN_DECLS
 int	poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout);
+#if __POSIX_VISIBLE >= 202405
+int	ppoll(struct pollfd _pfd[], nfds_t _nfds,
+	    const struct timespec *__restrict _timeout,
+	    const sigset_t *__restrict _newsigmask);
+#endif
 __END_DECLS
 
 #endif /* !_KERNEL */
-- 
2.45.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.