Don't try to setup and use X11 shared memory if
[tangerine.git] / compiler / clib / include / sys / param.h
bloba5e39819b0bccafec451a4b067830e163beba6c9
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>
17 #include <limits.h>
19 #define MAXCOMLEN 19 /* max command name remembered */
20 #define MAXINTERP 32 /* max interpreter file name length */
21 #define MAXLOGNAME 17 /* max login name length */
22 #define NGROUPS 16 /* max number groups */
23 #define NOFILE 64 /* max open files per process */
24 #define MAXHOSTNAMELEN 256 /* max hostname size */
26 /* Others:
27 MAXUPRC, NCARGS, NOGROUP, SPECNAMELEN
30 #define MAXPATHLEN PATH_MAX /* max path after symlink deref */
31 #define MAXSYMLINKS 32 /* max no of symlinks */
33 /* Others:
34 ARG_MAX, CHILD_MAX, LINK_MAX, MAX_CANON, MAX_INPUT,
35 PIPE_BUF, COLL_WEIGHTS_MAX, EXPR_NEST_MAX, RE_DUP_MAX
37 For bc(1):
38 BC_BASE_MAX, BC_DIM_MAX, BC_SCALE_MAX, BC_STRING_MAX
41 /* From <machine/param.h>:
43 Most of these have a problem in that we have no useful way of
44 defining them. Although, since most of these are too Unix specific
45 for most well behaved AROS software, I will leave them undefined until
46 somebody really needs them.
48 MACHINE, MACHINE_ARCH, MAXCPU,
50 PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NPTEPG, NPDEPG, PDRSHIFT,
51 NBPDR, PDRMASK,
53 DEV_BSHIFT, DEV_BSIZE,
55 BLKDEV_IOSIZE, DFLTPHYS, MAXPHYS, MAXDUMPPGS
57 IOPAGES, KSTACK_PAGES, UAREA_PAGES, KSTACK_GUARD
59 MBSIZE, MCLSHIFT, MCLBYTES
61 ctob(), btoc(), trunc_page(), round_page(), atop(), ptoa(),
62 btop(), ptob(), pgtok()
65 /* BSD typically includes <machine/limits.h> here, which is <limits.h> */
67 /* Back to <sys/param.h> */
68 #define NBPW sizeof (int) /* number of bytes per word (integer) */
69 #define CMASK 022 /* default file mask: S_IWGRP|S_OWOTH */
70 #define NODEV (dev_t)(-1) /* non-existent device */
72 /* Others:
73 PRIMASK, PCATCH, PDROP, NZERO, CBLOCK, CBQSIZE, CBSIZE, CROUND
74 MAXBSIZE, BKVASIZE, BKVAMASK, MAXFRAG,
76 setbit(), clrbit(), isset(), isclr(),
77 howmany(), rounddown(), roundup(), roundup2(), powerof2()
79 <sys/param.h> unconditionally defines MIN(), MAX().
82 /* Macros for counting and rounding. */
83 #ifndef howmany
84 #define howmany(x, y) (((x)+((y)-1))/(y))
85 #endif
86 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
87 #define powerof2(x) ((((x)-1)&(x))==0)
89 #ifndef MIN
90 #define MIN(x,y) ((x) < (y) ? (x) : (y))
91 #endif
92 #ifndef MAX
93 #define MAX(x,y) ((x) > (y) ? (x) : (y))
94 #endif
96 /* Others:
97 MINBUCKET, MAXALLOCSAVE, FSHIFT, FSCALE, dbtoc(), ctodb()
100 #endif /* _SYS_PARAM_H_ */