source: branches/libc-0.6/src/emx/include/sys/syslimits.h

Last change on this file was 3929, checked in by bird, 11 years ago

trunk,0.6: syslimits.h,param.h: Lowered ARG_MAX/NCARGS by 32-bytes just to be on the safe side of the 32KB limit imposed by DosExecPgm. Corrected the comments.

  • Property cvs2svn:cvs-rev set to 1.4
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
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: 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
21#endif
22
23#ifndef CHILD_MAX
24/** Maximum simultaneous processes.
25 * OS2: Max threads config.sys param is the (theoretical) limit. */
26#define CHILD_MAX 4096
27#endif
28
29#ifndef LINK_MAX
30/** Max file link count.
31 * OS2: Doesn't mean anything on OS/2. */
32#define LINK_MAX 0x7fff
33#endif
34
35#ifndef LOGIN_NAME_MAX
36/** Max login name length including terminating NULL. */
37#define LOGIN_NAME_MAX 17
38#endif
39
40#ifndef MAX_CANON
41/** Max bytes in term canon input line.
42 * OS2: what's this? */
43#define MAX_CANON 255
44#endif
45
46#ifndef MAX_INPUT
47/** Max bytes in term canon input line.
48 * OS2: what's this? */
49#define MAX_INPUT 255
50#endif
51
52#ifndef NAME_MAX
53/** Max chars in a filename.
54 * Filename no path. (POSIX) */
55#define NAME_MAX 256
56#endif
57
58#ifndef NGROUPS_MAX
59/** Max supplemental group id's.
60 * OS2: doesn't make much sense yet. */
61#define NGROUPS_MAX 16
62#endif
63
64#ifndef OPEN_MAX
65/** Max number of open files per process.
66 * OS2: Using DosSetMaxFH the theoretical maximum should be 0xfff0 I believe.
67 */
68#define OPEN_MAX 0xfff0
69#endif
70
71#ifndef PATH_MAX
72/** Max number of bytes in a pathname. */
73#define PATH_MAX 260
74#endif
75
76#ifndef PIPE_BUF
77/** Max number of bytes for atomic pipe writes.
78 * OS2: doesn't make sense. */
79#define PIPE_BUF 0x200
80#endif
81
82#ifndef IOV_MAX
83/** Max elements in i/o vector.
84 * OS2: eeeh what's this? */
85#define IOV_MAX 0x400
86#endif
87/** @} */
88
89#endif
Note: See TracBrowser for help on using the repository browser.