Lines Matching +full:max +full:- +full:by +full:- +full:define

17  * fields enclosed by brackets "[]" replaced with your own identifying
31 * University Copyright- Copyright (c) 1982, 1986, 1988
35 * University Acknowledgment- Portions of this document are derived from
36 * software developed by the University of California, Berkeley, and its
41 #define _SYS_PARAM_H
49 * define in the SunOS version of this file.
61 #define MAX_INPUT 512 /* Maximum bytes stored in the input queue */
65 #define MAX_CANON 256 /* Maximum bytes for canoical processing */
68 #define UID_NOBODY 60001
69 #define GID_NOBODY 60001
71 #define UID_NOACCESS 60002 /* user ID no access */
73 #define MAXPID ((pid_t)sysconf(_SC_MAXPID)) /* max process id */
74 #define MAXUID 2147483647 /* max user id */
75 #define MAXLINK 32767 /* max links */
77 #define NMOUNT 40 /* est. of # mountable fs for quota calc */
80 #define NOFILE OPEN_MAX /* max open files per process */
82 #define CANBSIZ 256 /* max size of typewriter line */
83 #define HZ ((int)sysconf(_SC_CLK_TCK)) /* ticks/second of the clock */
84 #define TICK (1000000000/((int)sysconf(_SC_CLK_TCK)))
86 #define NCARGS 0x100000 /* # characters in exec arglist */
89 * These define the maximum and minimum allowable values of the
92 #define NGROUPS_UMAX 32
93 #define NGROUPS_UMIN 8
95 #define NGROUPS NGROUPS_MAX /* max number groups, from limits.h */
96 #define NOGROUP -1 /* marker for empty group set member */
102 #define PMASK 0177
103 #define PCATCH 0400
104 #define PNOSTOP 01000
105 #define PSWP 0
106 #define PINOD 10
107 #define PSNDD PINOD
108 #define PAMAP PINOD
109 #define PPMAP PINOD
110 #define PRIBIO 20
111 #define PZERO 25
112 #define PMEM 0
113 #define NZERO 20
114 #define PPIPE 26
115 #define PVFS 27
116 #define PWAIT 30
117 #define PLOCK 35
118 #define PSLEP 39
119 #define PUSER 60
120 #define PIDLE 127
123 * Fundamental constants of the implementation--cannot be changed easily.
126 #define NBPS 0x20000 /* Number of bytes per segment */
127 #define NBPW sizeof (int) /* number of bytes in an integer */
129 #define CMASK 0 /* default mask for file creation */
130 #define CDLIMIT (1L<<11) /* default max write address */
131 #define NODEV (dev_t)(-1)
132 #define NBPSCTR 512 /* Bytes per disk sector. */
133 #define UBSIZE 512 /* unix block size. */
134 #define SCTRSHFT 9 /* Shift for BPSECT. */
136 #define lobyte(X) (((unsigned char *)&(X))[1])
137 #define hibyte(X) (((unsigned char *)&(X))[0])
138 #define loword(X) (((ushort_t *)&(X))[1])
139 #define hiword(X) (((ushort_t *)&(X))[0])
141 /* REMOTE -- whether machine is primary, secondary, or regular */
142 #define SYSNAME 9 /* # chars in system name */
143 #define PREMOTE 39
155 #define MAXPATHLEN 1024
156 #define MAXSYMLINKS 20
157 #define MAXNAMELEN 256
160 #define NADDR 13
168 #ifndef PIPE_BUF /* max # bytes atomic in write to a pipe */
169 #define PIPE_BUF 5120
172 #ifndef PIPE_MAX /* max # bytes written to a pipe in a write */
173 #define PIPE_MAX 5120
176 #define PIPEBUF PIPE_BUF /* pipe buffer size */
179 #define NBBY 8 /* number of bits per byte */
183 #define dkblock(bp) ((bp)->b_blkno)
184 #define dkunit(bp) (minor((bp)->b_dev) >> 3)
199 #define MAXBSIZE 8192
200 #define DEV_BSIZE 512
201 #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
202 #define MAXFRAG 8
205 #define MAXOFF_T 0x7fffffffffffffffl
206 #define MAXOFFSET_T 0x7fffffffffffffffll
208 #define MAXOFF_T 0x7fffffff
210 #define MAXOFFSET_T 0x7fffffff
212 #define MAXOFFSET_T 0x7fffffffffffffffLL
216 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \
218 #define dbtob(db) /* calculates (db * DEV_BSIZE) */ \
222 * PAGES* describes the logical page size used by the system.
225 #define PAGESIZE (sysconf(_SC_PAGESIZE)) /* All the above, for logical */
226 #define PAGEOFFSET (PAGESIZE - 1)
227 #define PAGEMASK (~PAGEOFFSET)
236 #define ptob(x) ((x) * PAGESIZE)
237 #define btop(x) (((unsigned)(x)) / PAGESIZE)
238 #define btopr(x) ((((unsigned)(x) + PAGEOFFSET) / PAGESIZE))
250 #define setbit(a, i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY))
251 #define clrbit(a, i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY)))
252 #define isset(a, i) ((a)[(i)/NBBY] & (1<<((i)%NBBY)))
253 #define isclr(a, i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
256 * Macros for fast min/max.
259 #define MIN(a, b) (((a) < (b))?(a):(b))
261 #ifndef MAX
262 #define MAX(a, b) (((a) > (b))?(a):(b)) macro
265 #define howmany(x, y) (((x)+((y)-1))/(y))
266 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
272 #define FSHIFT 8 /* bits to right of fixed binary point */
273 #define FSCALE (1<<FSHIFT)
280 #define MAXHOSTNAMELEN 256