| 1 | /** @file sys/syslimits.h
|
|---|
| 2 | * BSD like sys/syslimits.h file.
|
|---|
| 3 | *
|
|---|
| 4 | * TCPV40HDRS does include this file, but as we don't need to be
|
|---|
| 5 | * 100% compatible we don't care.
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef _SYS_SYSLIMITS_H_
|
|---|
| 9 | #define _SYS_SYSLIMITS_H_
|
|---|
| 10 |
|
|---|
| 11 | /** @group syslimits parameters.
|
|---|
| 12 | * These are in sys/syslimits.h on BSD.
|
|---|
| 13 | * @{
|
|---|
| 14 | */
|
|---|
| 15 | #ifndef ARG_MAX
|
|---|
| 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
|
|---|
| 20 | #endif
|
|---|
| 21 |
|
|---|
| 22 | #ifndef CHILD_MAX
|
|---|
| 23 | /** Maximum simultaneous processes.
|
|---|
| 24 | * OS2: Max threads config.sys param is the (theoretical) limit. */
|
|---|
| 25 | #define CHILD_MAX 4096
|
|---|
| 26 | #endif
|
|---|
| 27 |
|
|---|
| 28 | #ifndef LINK_MAX
|
|---|
| 29 | /** Max file link count.
|
|---|
| 30 | * OS2: Doesn't mean anything on OS/2. */
|
|---|
| 31 | #define LINK_MAX 0x7fff
|
|---|
| 32 | #endif
|
|---|
| 33 |
|
|---|
| 34 | #ifndef LOGIN_NAME_MAX
|
|---|
| 35 | /** Max login name length including terminating NULL. */
|
|---|
| 36 | #define LOGIN_NAME_MAX MAXLOGNAME
|
|---|
| 37 | #endif
|
|---|
| 38 |
|
|---|
| 39 | #ifndef MAX_CANON
|
|---|
| 40 | /** Max bytes in term canon input line.
|
|---|
| 41 | * OS2: what's this? */
|
|---|
| 42 | #define MAX_CANON 255
|
|---|
| 43 | #endif
|
|---|
| 44 |
|
|---|
| 45 | #ifndef MAX_INPUT
|
|---|
| 46 | /** Max bytes in term canon input line.
|
|---|
| 47 | * OS2: what's this? */
|
|---|
| 48 | #define MAX_INPUT 255
|
|---|
| 49 | #endif
|
|---|
| 50 |
|
|---|
| 51 | #ifndef NAME_MAX
|
|---|
| 52 | /** Max chars in a filename.
|
|---|
| 53 | * Filename no path. (POSIX) */
|
|---|
| 54 | #define NAME_MAX 256
|
|---|
| 55 | #endif
|
|---|
|
|---|