[PATCH] rtems/include/limits.h: Do not define AIO_LISTIO_MAX or AIO_MAX
Joel Sherrill <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
Per https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/limits.h.html, these limits.h constants should not be defined if the implementation does not have an inherent limit. These are based on available memory for RTEMS. --- newlib/libc/sys/rtems/include/limits.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/newlib/libc/sys/rtems/include/limits.h b/newlib/libc/sys/rtems/include/limits.h index 5e71e4b8d..8dbf88bcf 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 -- 2.43.5