Skip to content

Commit fd24c09

Browse files
committed
include: Add some missing POSIX symbols to sys/syslimits.h
These symbols are included in the 2018 edition of the standard but were missing from picolibc. Signed-off-by: Keith Packard <[email protected]>
1 parent a583931 commit fd24c09

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

newlib/libc/include/sys/syslimits.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
#define _POSIX_ARG_MAX 4096
6666
#define _POSIX_CHILD_MAX 6
6767
#define _POSIX_DELAYTIMER_MAX 32
68+
#define _POSIX_HOST_NAME_MAX 255
6869
#define _POSIX_LINK_MAX 8
6970
#define _POSIX_LOGIN_NAME_MAX 9
7071
#define _POSIX_MAX_CANON 255
@@ -76,22 +77,31 @@
7677
#define _POSIX_OPEN_MAX 16
7778
#define _POSIX_PATH_MAX 255
7879
#define _POSIX_PIPE_BUF 512
80+
#define _POSIX_RE_DUP_MAX 255
7981
#define _POSIX_RTSIG_MAX 8
8082
#define _POSIX_SEM_NSEMS_MAX 256
8183
#define _POSIX_SEM_VALUE_MAX 32767
8284
#define _POSIX_SIGQUEUE_MAX 32
8385
#define _POSIX_SSIZE_MAX 32767
86+
#define _POSIX_SS_REPL_MAX 4
8487
#define _POSIX_STREAM_MAX 8
88+
#define _POSIX_SYMLINK_MAX 255
89+
#define _POSIX_SYMLOOP_MAX 8
8590
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4
8691
#define _POSIX_THREAD_KEYS_MAX 128
8792
#define _POSIX_THREAD_THREADS_MAX 64
8893
#define _POSIX_TIMER_MAX 32
94+
#define _POSIX_TRACE_EVENT_NAME_MAX 30
95+
#define _POSIX_TRACE_NAME_MAX 8
96+
#define _POSIX_TRACE_SYS_MAX 8
97+
#define _POSIX_TRACE_USER_EVENT_MAX 32
8998
#define _POSIX_TTY_NAME_MAX 9
9099
#define _POSIX_TZNAME_MAX 3
91100
#define _POSIX2_BC_BASE_MAX 99
92101
#define _POSIX2_BC_DIM_MAX 2048
93102
#define _POSIX2_BC_SCALE_MAX 99
94103
#define _POSIX2_BC_STRING_MAX 1000
104+
#define _POSIX2_CHARCLASS_NAME_MAX 14
95105
#define _POSIX2_COLL_WEIGHTS_MAX 2
96106
#define _POSIX2_EXPR_NEST_MAX 32
97107
#define _POSIX2_LINE_MAX 2048

0 commit comments

Comments
 (0)