aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/sys/rtems/include
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/rtems/include')
-rw-r--r--newlib/libc/sys/rtems/include/limits.h10
-rw-r--r--newlib/libc/sys/rtems/include/semaphore.h6
-rw-r--r--newlib/libc/sys/rtems/include/sys/dirent.h2
-rw-r--r--newlib/libc/sys/rtems/include/sys/poll.h9
4 files changed, 22 insertions, 5 deletions
diff --git a/newlib/libc/sys/rtems/include/limits.h b/newlib/libc/sys/rtems/include/limits.h
index 5e71e4b..8dbf88b 100644
--- a/newlib/libc/sys/rtems/include/limits.h
+++ b/newlib/libc/sys/rtems/include/limits.h
@@ -56,12 +56,14 @@
#define _POSIX_TZNAME_MAX 3
/*
- * Definitions of the following may be omitted if the value is >= stated
- * minimum but is indeterminate.
+ * Definitions of the following may be omitted if the value is >= stated
+ * minimum but is indeterminate. The following are not defined because
+ * RTEMS does not have an inherent limit.
+ *
+ * - AIO_LISTIO_MAX
+ * - AIO_MAX
*/
-#define AIO_LISTIO_MAX 2
-#define AIO_MAX 1
#define AIO_PRIO_DELTA_MAX 0
#define DELAYTIMER_MAX 32
#define MQ_OPEN_MAX 8
diff --git a/newlib/libc/sys/rtems/include/semaphore.h b/newlib/libc/sys/rtems/include/semaphore.h
index 939135f..6d756d5 100644
--- a/newlib/libc/sys/rtems/include/semaphore.h
+++ b/newlib/libc/sys/rtems/include/semaphore.h
@@ -55,6 +55,12 @@ int sem_timedwait(sem_t * __restrict, const struct timespec * __restrict);
int sem_trywait(sem_t *);
int sem_unlink(const char *);
int sem_wait(sem_t *);
+
+#if (__GNU_VISIBLE || __POSIX_VISIBLE >= 202405)
+int sem_clockwait(sem_t * __restrict, __clockid_t,
+ const struct timespec * __restrict);
+#endif /* __GNU_VISIBLE || __POSIX_VISIBLE >= 202405 */
+
__END_DECLS
#endif /* !_SEMAPHORE_H_ */
diff --git a/newlib/libc/sys/rtems/include/sys/dirent.h b/newlib/libc/sys/rtems/include/sys/dirent.h
index 6f8ff42..3e41635 100644
--- a/newlib/libc/sys/rtems/include/sys/dirent.h
+++ b/newlib/libc/sys/rtems/include/sys/dirent.h
@@ -99,7 +99,7 @@ struct dirent {
#define __dirfd(dp) ((dp)->dd_fd)
-#if __BSD_VISIBLE
+#if __BSD_VISIBLE || __POSIX_VISIBLE >= 202405
/*
* File types
diff --git a/newlib/libc/sys/rtems/include/sys/poll.h b/newlib/libc/sys/rtems/include/sys/poll.h
index cc6ad49..fd2f14d 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 (__GNU_VISIBLE || __POSIX_VISIBLE >= 202405)
+#include <signal.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 (__GNU_VISIBLE || __POSIX_VISIBLE >= 202405)
+int ppoll(struct pollfd _pfd[], nfds_t _nfds,
+ const struct timespec *__restrict _timeout,
+ const sigset_t *__restrict _newsigmask);
+#endif /* __GNU_VISIBLE || __POSIX_VISIBLE >= 202405 */
__END_DECLS
#endif /* !_KERNEL */