mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
e557058ac8
This change addresses various open source compatibility issues, so that we pass 313/411 of the tests in https://github.com/jart/libc-test where earlier today we were passing about 30/411 of them, due to header toil. Please note that Glibc only passes 341/411 so 313 today is pretty good! - Make the conformance of libc/isystem/ headers nearly perfect - Import more of the remaining math library routines from Musl - Fix inconsistencies with type signatures of calls like umask - Write tests for getpriority/setpriority which work great now - conform to `struct sockaddr *` on remaining socket functions - Import a bunch of uninteresting stdlib functions e.g. rand48 - Introduce readdir_r, scandir, pthread_kill, sigsetjmp, etc.. Follow the instructions in our `tool/scripts/cosmocc` toolchain to run these tests yourself. You use `make CC=cosmocc` on the test repository
56 lines
2.4 KiB
C
56 lines
2.4 KiB
C
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS__POSIX_H_
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS__POSIX_H_
|
|
|
|
/* The Open Group Base Specifications Issue 7, 2018 edition */
|
|
/* IEEE Std 1003.1-2017 (Revision of IEEE Std 1003.1-2008) */
|
|
|
|
#define _POSIX_AIO_LISTIO_MAX 2
|
|
#define _POSIX_CLOCKRES_MIN 20000000
|
|
#define _POSIX_AIO_MAX 1
|
|
#define _POSIX_ARG_MAX 4096
|
|
#define _POSIX_CHILD_MAX 25
|
|
#define _POSIX_DELAYTIMER_MAX 32
|
|
#define _POSIX_HOST_NAME_MAX 255
|
|
#define _POSIX_LINK_MAX 8
|
|
#define _POSIX_LOGIN_NAME_MAX 9
|
|
#define _POSIX_MAX_CANON 255
|
|
#define _POSIX_MAX_INPUT 255
|
|
#define _POSIX_MQ_OPEN_MAX 8
|
|
#define _POSIX_MQ_PRIO_MAX 32
|
|
#define _POSIX_NAME_MAX 14
|
|
#define _POSIX_NGROUPS_MAX 8
|
|
#define _POSIX_OPEN_MAX 20
|
|
#define _POSIX_PATH_MAX 256
|
|
#define _POSIX_PIPE_BUF 512
|
|
#define _POSIX_RE_DUP_MAX 255
|
|
#define _POSIX_RTSIG_MAX 8
|
|
#define _POSIX_SEM_NSEMS_MAX 256
|
|
#define _POSIX_SEM_VALUE_MAX 32767
|
|
#define _POSIX_SIGQUEUE_MAX 32
|
|
#define _POSIX_SSIZE_MAX 32767
|
|
#define _POSIX_SS_REPL_MAX 4
|
|
#define _POSIX_STREAM_MAX 8
|
|
#define _POSIX_SYMLINK_MAX 255
|
|
#define _POSIX_SYMLOOP_MAX 8
|
|
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4
|
|
#define _POSIX_THREAD_KEYS_MAX 128
|
|
#define _POSIX_THREAD_THREADS_MAX 64
|
|
#define _POSIX_TIMER_MAX 32
|
|
#define _POSIX_TRACE_EVENT_NAME_MAX 30
|
|
#define _POSIX_TRACE_NAME_MAX 8
|
|
#define _POSIX_TRACE_SYS_MAX 8
|
|
#define _POSIX_TRACE_USER_EVENT_MAX 32
|
|
#define _POSIX_TTY_NAME_MAX 9
|
|
#define _POSIX_TZNAME_MAX 6
|
|
|
|
#define _POSIX2_BC_BASE_MAX 99
|
|
#define _POSIX2_BC_DIM_MAX 2048
|
|
#define _POSIX2_BC_SCALE_MAX 99
|
|
#define _POSIX2_BC_STRING_MAX 1000
|
|
#define _POSIX2_CHARCLASS_NAME_MAX 14
|
|
#define _POSIX2_COLL_WEIGHTS_MAX 2
|
|
#define _POSIX2_EXPR_NEST_MAX 32
|
|
#define _POSIX2_LINE_MAX 2048
|
|
#define _POSIX2_RE_DUP_MAX 255
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS__POSIX_H_ */
|