mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 20:13:31 +00:00
b73e35c6fa
This change tunes the default stack size for the outside world to 8mb while at the same time, reducing Cosmopolitan's default stack size to 64kb. You can override the stack size using STATIC_STACK_SIZE(). Your build scripts should point to o//ape/public/ape.lds This change also fixes the definition of SOMAXCONN and removes AF_RDS since it's not polyfilled and Python 3.11 complained.
26 lines
783 B
C
26 lines
783 B
C
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_LIMITS_H_
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_LIMITS_H_
|
|
#include "libc/runtime/symbolic.h"
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
extern const int NGROUPS_MAX;
|
|
extern const int PIPE_BUF;
|
|
extern const int SOMAXCONN;
|
|
extern const int _ARG_MAX;
|
|
extern const int _NAME_MAX;
|
|
extern const int _NSIG;
|
|
extern const int _PATH_MAX;
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#define NGROUPS_MAX SYMBOLIC(NGROUPS_MAX)
|
|
#define PIPE_BUF SYMBOLIC(PIPE_BUF)
|
|
#define SOMAXCONN SYMBOLIC(SOMAXCONN)
|
|
#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_ */
|