mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 18:58:30 +00:00
Make more compatibility improvements
This commit is contained in:
parent
11ec60d5fc
commit
dbf12c30b0
32 changed files with 158 additions and 16 deletions
|
@ -1229,6 +1229,7 @@ syscon mount MNT_SNAPSHOT 0 0x40000000 0x01000000 0 0 0 # confusing
|
|||
#
|
||||
# group name GNU/Systemd XNU's Not UNIX! FreeBSD OpenBSD NetBSD The New Technology Commentary
|
||||
syscon limits PIPE_BUF 4096 512 512 512 512 4096 # bsd consensus
|
||||
syscon limits NGROUPS_MAX 65536 16 1023 16 16 0 #
|
||||
syscon limits _ARG_MAX 128*1024 1024*1024 512*1024 512*1024 256*1024 32767*2 # bsd consensus
|
||||
syscon limits _NAME_MAX 255 255 255 255 511 255 # probably higher on windows?
|
||||
syscon limits _PATH_MAX 4096 1024 1024 1024 1024 512 # cosmopolitan libc imposes a lower 512 limit; nt theoretically goes up to 32767
|
||||
|
|
2
libc/sysv/consts/NGROUPS_MAX.s
Normal file
2
libc/sysv/consts/NGROUPS_MAX.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.include "o/libc/sysv/consts/syscon.internal.inc"
|
||||
.syscon limits,NGROUPS_MAX,65536,16,1023,16,16,0
|
|
@ -4,19 +4,21 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const int NGROUPS_MAX;
|
||||
extern const int PIPE_BUF;
|
||||
extern const int _ARG_MAX;
|
||||
extern const int _NAME_MAX;
|
||||
extern const int _PATH_MAX;
|
||||
extern const int _NSIG;
|
||||
extern const int _PATH_MAX;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
||||
#define PIPE_BUF SYMBOLIC(PIPE_BUF)
|
||||
#define _ARG_MAX SYMBOLIC(_ARG_MAX)
|
||||
#define _NAME_MAX SYMBOLIC(_NAME_MAX)
|
||||
#define _PATH_MAX SYMBOLIC(_PATH_MAX)
|
||||
#define _NSIG SYMBOLIC(_NSIG)
|
||||
#define NGROUPS_MAX SYMBOLIC(NGROUPS_MAX)
|
||||
#define PIPE_BUF SYMBOLIC(PIPE_BUF)
|
||||
#define _ARG_MAX SYMBOLIC(_ARG_MAX)
|
||||
#define _NAME_MAX SYMBOLIC(_NAME_MAX)
|
||||
#define _NSIG SYMBOLIC(_NSIG)
|
||||
#define _PATH_MAX SYMBOLIC(_PATH_MAX)
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_LIMITS_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue