54 /*
55 * Fundamental variables; don't change too often.
56 */
57
58 /*
59 * _POSIX_VDISABLE has historically been defined in <sys/param.h> since
60 * an early merge with AT&T source. It has also historically been defined
61 * in <sys/termios.h>. The POSIX standard, IEEE Std. 1003.1-1988 initially
62 * required the existence of _POSIX_VDISABLE in <sys/termios.h>.
63 * Subsequent versions of the IEEE Standard as well as the X/Open
64 * specifications required that _POSIX_VDISABLE be defined in <unistd.h>
65 * while still allowing for it's existence in other headers. With the
66 * introduction of XPG6, _POSIX_VDISABLE can only be defined in <unistd.h>.
67 */
68 #if !defined(_XPG6) || defined(__EXTENSIONS__)
69 #ifndef _POSIX_VDISABLE
70 #define _POSIX_VDISABLE 0 /* Disable special character functions */
71 #endif
72 #endif /* !defined(_XPG6) || defined(__EXTENSIONS__) */
73
74 #ifndef MAX_INPUT
75 #define MAX_INPUT 512 /* Maximum bytes stored in the input queue */
76 #endif
77
78 #ifndef MAX_CANON
79 #define MAX_CANON 256 /* Maximum bytes for canonical processing */
80 #endif
81
82 #define UID_NOBODY 60001 /* user ID no body */
83 #define GID_NOBODY UID_NOBODY
84 #define UID_UNKNOWN 96
85 #define GID_UNKNOWN UID_UNKNOWN
86 #define UID_DLADM 15
87 #define UID_NETADM 16
88 #define GID_NETADM 65
89 #define UID_NOACCESS 60002 /* user ID no access */
90
91 #ifdef _KERNEL
92 #define MAX_TASKID 999999
93 #define MAX_MAXPID 999999
94 #define MAXEPHUID 0xfffffffcu /* max ephemeral user id */
95
96 #define FAMOUS_PID_SCHED 0
97 #define FAMOUS_PID_INIT 1
98 #define FAMOUS_PID_PAGEOUT 2
99 #define FAMOUS_PID_FSFLUSH 3
100 #define FAMOUS_PIDS 4
101 #endif
102
103 #ifdef DEBUG
104 #define DEFAULT_MAXPID 999999
105 #define DEFAULT_JUMPPID 100000
106 #else
107 #define DEFAULT_MAXPID 30000
108 #define DEFAULT_JUMPPID 0
109 #endif
110
111 #define MAXUID 2147483647 /* max user id */
112
113 #define MAXPROJID MAXUID /* max project id */
114 #define MAXLINK 32767 /* max links */
115
116 #define MINEPHUID 0x80000000u /* min ephemeral user id */
117
118 #define NMOUNT 40 /* est. of # mountable fs for quota calc */
119
120 #define CANBSIZ 256 /* max size of typewriter line */
121
122 #define NOFILE 20 /* this define is here for */
123 /* compatibility purposes only */
124 /* and will be removed in a */
125 /* later release */
126
127 /*
128 * These define the maximum and minimum allowable values of the
129 * configurable parameter NGROUPS_MAX.
130 */
131 #define NGROUPS_UMIN 0
132 #define NGROUPS_UMAX 1024
133 #define NGROUPS_OLDMAX 32
134
135 /*
136 * NGROUPS_MAX_DEFAULT: *MUST* match NGROUPS_MAX value in limits.h.
137 */
138 #define NGROUPS_MAX_DEFAULT 16
139
140 /*
141 * Default process priority. Keep it in sync with limits.h.
|
54 /*
55 * Fundamental variables; don't change too often.
56 */
57
58 /*
59 * _POSIX_VDISABLE has historically been defined in <sys/param.h> since
60 * an early merge with AT&T source. It has also historically been defined
61 * in <sys/termios.h>. The POSIX standard, IEEE Std. 1003.1-1988 initially
62 * required the existence of _POSIX_VDISABLE in <sys/termios.h>.
63 * Subsequent versions of the IEEE Standard as well as the X/Open
64 * specifications required that _POSIX_VDISABLE be defined in <unistd.h>
65 * while still allowing for it's existence in other headers. With the
66 * introduction of XPG6, _POSIX_VDISABLE can only be defined in <unistd.h>.
67 */
68 #if !defined(_XPG6) || defined(__EXTENSIONS__)
69 #ifndef _POSIX_VDISABLE
70 #define _POSIX_VDISABLE 0 /* Disable special character functions */
71 #endif
72 #endif /* !defined(_XPG6) || defined(__EXTENSIONS__) */
73
74 /* The actual size of the TTY input queue */
75 #define _TTY_BUFSIZ 2048
76
77 /*
78 * These defines all have their historical value. The actual size of the tty
79 * buffer both for the line-editor in ldterm, and in general, is above as
80 * _TTY_BUFSIZ.
81 *
82 * We leave these defines at their historical value to match the behaviour of
83 * BSD and Linux.
84 */
85 #ifndef MAX_INPUT
86 #define MAX_INPUT 512 /* Maximum bytes stored in the input queue */
87 #endif
88 #ifndef MAX_CANON
89 #define MAX_CANON 256 /* Maximum bytes for canonical processing */
90 #endif
91 #define CANBSIZ 256 /* max size of typewriter line */
92
93
94 #define UID_NOBODY 60001 /* user ID no body */
95 #define GID_NOBODY UID_NOBODY
96 #define UID_UNKNOWN 96
97 #define GID_UNKNOWN UID_UNKNOWN
98 #define UID_DLADM 15
99 #define UID_NETADM 16
100 #define GID_NETADM 65
101 #define UID_NOACCESS 60002 /* user ID no access */
102
103 #ifdef _KERNEL
104 #define MAX_TASKID 999999
105 #define MAX_MAXPID 999999
106 #define MAXEPHUID 0xfffffffcu /* max ephemeral user id */
107
108 #define FAMOUS_PID_SCHED 0
109 #define FAMOUS_PID_INIT 1
110 #define FAMOUS_PID_PAGEOUT 2
111 #define FAMOUS_PID_FSFLUSH 3
112 #define FAMOUS_PIDS 4
113 #endif
114
115 #ifdef DEBUG
116 #define DEFAULT_MAXPID 999999
117 #define DEFAULT_JUMPPID 100000
118 #else
119 #define DEFAULT_MAXPID 30000
120 #define DEFAULT_JUMPPID 0
121 #endif
122
123 #define MAXUID 2147483647 /* max user id */
124
125 #define MAXPROJID MAXUID /* max project id */
126 #define MAXLINK 32767 /* max links */
127
128 #define MINEPHUID 0x80000000u /* min ephemeral user id */
129
130 #define NMOUNT 40 /* est. of # mountable fs for quota calc */
131
132 #define NOFILE 20 /* this define is here for */
133 /* compatibility purposes only */
134 /* and will be removed in a */
135 /* later release */
136
137 /*
138 * These define the maximum and minimum allowable values of the
139 * configurable parameter NGROUPS_MAX.
140 */
141 #define NGROUPS_UMIN 0
142 #define NGROUPS_UMAX 1024
143 #define NGROUPS_OLDMAX 32
144
145 /*
146 * NGROUPS_MAX_DEFAULT: *MUST* match NGROUPS_MAX value in limits.h.
147 */
148 #define NGROUPS_MAX_DEFAULT 16
149
150 /*
151 * Default process priority. Keep it in sync with limits.h.
|