mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 08:18:30 +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
|
@ -66,8 +66,16 @@
|
|||
#define __BIGGEST_ALIGNMENT__ 16
|
||||
#endif
|
||||
|
||||
/* TODO(jart): Remove this in favor of GetStackSize() */
|
||||
#if defined(COSMO) && defined(MODE_DBG)
|
||||
#define STACKSIZE 0x20000 /* 128kb stack */
|
||||
#elif defined(COSMO)
|
||||
#define STACKSIZE 0x10000 /* 64kb stack */
|
||||
#else
|
||||
#define STACKSIZE 0x800000 /* 8mb stack */
|
||||
#endif
|
||||
|
||||
#define BIGPAGESIZE 0x200000
|
||||
#define STACKSIZE 0x20000
|
||||
#define FRAMESIZE 0x10000 /* 8086 */
|
||||
#define PAGESIZE 0x1000 /* i386+ */
|
||||
#define BUFSIZ 0x1000 /* best stdio default */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue