Changeset 3927
- Timestamp:
- Oct 26, 2014, 3:15:37 AM (11 years ago)
- Location:
- trunk/libc/include/sys
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libc/include/sys/param.h
r3897 r3927 81 81 #ifndef NCARGS 82 82 /** Max argument size for an exec function. 83 * OS2: Assuming at least 4KB of environment gives us 0xf000 at the very best. 84 * However we set it to 32KB which should be a safe max. */ 83 * OS2: DosExecPgm does not accept more than 32KB of command line arguments 84 * (ditto for environment). So, we keep the limit a few bytes short of 85 * this to avoid rounding errors on the user side. */ 85 86 #define NCARGS ARG_MAX 86 87 #endif -
trunk/libc/include/sys/syslimits.h
r3897 r3927 15 15 #ifndef ARG_MAX 16 16 /** Max argument size for an exec function. 17 * OS2: Assuming at least 4KB of environment gives us 0xf000 at the very best. 18 * However we set it to 32KB which should be a safe max. */ 19 #define ARG_MAX 0x8000 17 * OS2: DosExecPgm does not accept more than 32KB of command line arguments 18 * (ditto for environment). So, we keep the limit a few bytes short of 19 * this to avoid rounding errors on the user side. */ 20 #define ARG_MAX 0x7fe0 20 21 #endif 21 22
Note:
See TracChangeset
for help on using the changeset viewer.