mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-24 11:30:29 +00:00
Improve open source compatibility
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.
This commit is contained in:
parent
0e2b1bfeed
commit
b73e35c6fa
13 changed files with 50 additions and 26 deletions
|
@ -38,7 +38,6 @@ extern const int AF_NFC;
|
|||
extern const int AF_PACKET;
|
||||
extern const int AF_PHONET;
|
||||
extern const int AF_PPPOX;
|
||||
extern const int AF_RDS;
|
||||
extern const int AF_ROSE;
|
||||
extern const int AF_ROUTE;
|
||||
extern const int AF_RXRPC;
|
||||
|
@ -88,7 +87,6 @@ COSMOPOLITAN_C_END_
|
|||
#define AF_PACKET SYMBOLIC(AF_PACKET)
|
||||
#define AF_PHONET SYMBOLIC(AF_PHONET)
|
||||
#define AF_PPPOX SYMBOLIC(AF_PPPOX)
|
||||
#define AF_RDS SYMBOLIC(AF_RDS)
|
||||
#define AF_ROSE SYMBOLIC(AF_ROSE)
|
||||
#define AF_ROUTE SYMBOLIC(AF_ROUTE)
|
||||
#define AF_RXRPC SYMBOLIC(AF_RXRPC)
|
||||
|
|
|
@ -46,6 +46,7 @@ COSMOPOLITAN_C_END_
|
|||
#define IPPROTO_TCP LITERALLY(6)
|
||||
#define IPPROTO_UDP LITERALLY(17)
|
||||
#define IPPROTO_RAW LITERALLY(255)
|
||||
#define IPPROTO_MAX LITERALLY(263) /* xxx */
|
||||
|
||||
#define IPPROTO_AH SYMBOLIC(IPPROTO_AH)
|
||||
#define IPPROTO_BEETPH SYMBOLIC(IPPROTO_BEETPH)
|
||||
|
@ -63,7 +64,6 @@ COSMOPOLITAN_C_END_
|
|||
#define IPPROTO_IGMP SYMBOLIC(IPPROTO_IGMP)
|
||||
#define IPPROTO_IPIP SYMBOLIC(IPPROTO_IPIP)
|
||||
#define IPPROTO_IPV6 SYMBOLIC(IPPROTO_IPV6)
|
||||
#define IPPROTO_MAX SYMBOLIC(IPPROTO_MAX)
|
||||
#define IPPROTO_MH SYMBOLIC(IPPROTO_MH)
|
||||
#define IPPROTO_MPLS SYMBOLIC(IPPROTO_MPLS)
|
||||
#define IPPROTO_MTP SYMBOLIC(IPPROTO_MTP)
|
||||
|
|
|
@ -6,6 +6,7 @@ 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;
|
||||
|
@ -16,6 +17,7 @@ COSMOPOLITAN_C_END_
|
|||
|
||||
#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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue