source: trunk/src/emx/include/sys/syslimits.h@ 339

Last change on this file since 339 was 183, checked in by bird, 23 years ago

#434: Initial tcpip header merges.

  • Property cvs2svn:cvs-rev set to 1.2
  • 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: 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
56
57#ifndef NGROUPS_MAX
58/** Max supplemental group id's.
59 * OS2: doesn't make much sense. Redefined in limits.h btw. */
60#define NGROUPS_MAX 0
61#endif
62
63#ifndef OPEN_MAX
64/** Max number of open files per process.
65 * OS2: Using DosSetMaxFH the theoretical maximum should be 0xfff0 I believe.
66 */
67#define OPEN_MAX 0xfff0
68#endif
69
70#ifndef PATH_MAX
71/** Max number of bytes in a pathname. */
72#define PATH_MAX 260
73#endif
74
75#ifndef PIPE_BUF
76/** Max number of bytes for atomic pipe writes.
77 * OS2: doesn't make sense. */
78#define PIPE_BUF 0x200
79#endif
80
81#ifndef IOV_MAX
82/** Max elements in i/o vector.
83 * OS2: eeeh what's this? */
84#define IOV_MAX 0x400
85#endif
86/** @} */
87
88#endif
Note: See TracBrowser for help on using the repository browser.