Don't call ReadArgs() if started from WB.
[tangerine.git] / compiler / clib / include / sys / param.h
blob7fa4f45abc80de43dd9adce79d238f47ae54d478
1 #ifndef _SYS_PARAM_H_
2 #define _SYS_PARAM_H_
3 /*
4 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
5 $Id$
7 sys/param.h header file.
9 Derived from FreeBSD since it is a BSD header, and SUSv2 doesn't
10 mention it at all.
12 Many of these things are Unix kernel or just plain BSD specific, and as
13 such have been left out.
16 #include <sys/types.h>
18 /* Apparently we look a bit like a BSD system. */
19 #define BSD 199506L
20 #define BSD4_3 1
21 #define BSD4_4 1
23 #define MAXCOMLEN 19 /* max command name remembered */
24 #define MAXINTERP 32 /* max interpreter file name length */
25 #define MAXLOGNAME 17 /* max login name length */
26 #define NGROUPS 16 /* max number groups */
27 #define NOFILE 64 /* max open files per process */
28 #define MAXHOSTNAMELEN 256 /* max hostname size */
30 /* Others:
31 MAXUPRC, NCARGS, NOGROUP, SPECNAMELEN
34 /* From <sys/syslimits.h> */
35 #define NAME_MAX 32 /* max bytes in a file name */
36 #ifndef PATH_MAX
37 # define PATH_MAX 4095 /* max bytes in a pathname */
38 #endif
39 #define IOV_MAX 1024 /* max elements in i/o vector */
40 #define LINE_MAX 2048 /* max bytes in an input line */
41 #define MAXPATHLEN PATH_MAX /* max path after symlink deref */
42 #define MAXSYMLINKS 32 /* max no of symlinks */
44 /* Others:
45 ARG_MAX, CHILD_MAX, LINK_MAX, MAX_CANON, MAX_INPUT,
46 PIPE_BUF, COLL_WEIGHTS_MAX, EXPR_NEST_MAX, RE_DUP_MAX
48 For bc(1):
49 BC_BASE_MAX, BC_DIM_MAX, BC_SCALE_MAX, BC_STRING_MAX
52 /* From <machine/param.h>:
54 Most of these have a problem in that we have no useful way of
55 defining them. Although, since most of these are too Unix specific
56 for most well behaved AROS software, I will leave them undefined until
57 somebody really needs them.
59 MACHINE, MACHINE_ARCH, MAXCPU,
61 PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NPTEPG, NPDEPG, PDRSHIFT,
62 NBPDR, PDRMASK,
64 DEV_BSHIFT, DEV_BSIZE,
66 BLKDEV_IOSIZE, DFLTPHYS, MAXPHYS, MAXDUMPPGS
68 IOPAGES, KSTACK_PAGES, UAREA_PAGES, KSTACK_GUARD
70 MBSIZE, MCLSHIFT, MCLBYTES
72 ctob(), btoc(), trunc_page(), round_page(), atop(), ptoa(),
73 btop(), ptob(), pgtok()
76 /* BSD typically includes <machine/limits.h> here, which is <limits.h> */
78 /* Back to <sys/param.h> */
79 #define NBPW sizeof (int) /* number of bytes per word (integer) */
80 #define CMASK 022 /* default file mask: S_IWGRP|S_OWOTH */
81 #define NODEV (dev_t)(-1) /* non-existent device */
83 /* Others:
84 PRIMASK, PCATCH, PDROP, NZERO, CBLOCK, CBQSIZE, CBSIZE, CROUND
85 MAXBSIZE, BKVASIZE, BKVAMASK, MAXFRAG,
87 setbit(), clrbit(), isset(), isclr(),
88 howmany(), rounddown(), roundup(), roundup2(), powerof2()
90 <sys/param.h> unconditionally defines MIN(), MAX().
92 #define MIN(a,b) (((a)<(b))?(a):(b))
93 #define MAX(a,b) (((a)>(b))?(a):(b))
95 /* Others:
96 MINBUCKET, MAXALLOCSAVE, FSHIFT, FSCALE, dbtoc(), ctodb()
99 #endif /* _SYS_PARAM_H_ */