1 | @c |
---|
2 | @c COPYRIGHT (c) 1988-1998. |
---|
3 | @c On-Line Applications Research Corporation (OAR). |
---|
4 | @c All rights reserved. |
---|
5 | @c |
---|
6 | @c $Id$ |
---|
7 | @c |
---|
8 | |
---|
9 | @chapter Terminology and General Requirements |
---|
10 | |
---|
11 | @section Conventions |
---|
12 | |
---|
13 | @section Definitions |
---|
14 | |
---|
15 | @section General Concepts |
---|
16 | |
---|
17 | @section Error Numbers |
---|
18 | |
---|
19 | @example |
---|
20 | E2BIG, Constant, |
---|
21 | EACCES, Constant, |
---|
22 | EAGAIN, Constant, |
---|
23 | EBADF, Constant, |
---|
24 | EBADMSG, Constant, |
---|
25 | EBUSY, Constant, |
---|
26 | ECANCELED, Constant, |
---|
27 | ECHILD, Constant, |
---|
28 | EDEADLK, Constant, |
---|
29 | EDOM, Constant, |
---|
30 | EEXIST, Constant, |
---|
31 | EFAULT, Constant, |
---|
32 | EFBIG, Constant, |
---|
33 | EINPROGRESS, Constant, |
---|
34 | EINTR, Constant, |
---|
35 | EINVAL, Constant, |
---|
36 | EIO, Constant, |
---|
37 | EISDIR, Constant, |
---|
38 | EMFILE, Constant, |
---|
39 | EMLINK, Constant, |
---|
40 | EMSGSIZE, Constant, |
---|
41 | ENAMETOOLONG, Constant, |
---|
42 | ENFILE, Constant, |
---|
43 | ENODEV, Constant, |
---|
44 | ENOENT, Constant, |
---|
45 | ENOEXEC, Constant, |
---|
46 | ENOLCK, Constant, |
---|
47 | ENOMEM, Constant, |
---|
48 | ENOSPC, Constant, |
---|
49 | ENOSYS, Constant, |
---|
50 | ENOTDIR, Constant, |
---|
51 | ENOTEMPTY, Constant, |
---|
52 | ENOTSUP, Constant, |
---|
53 | ENOTTY, Constant, |
---|
54 | ENXIO, Constant, |
---|
55 | EPERM, Constant, |
---|
56 | EPIPE, Constant, |
---|
57 | ERANGE, Constant, |
---|
58 | EROFS, Constant, |
---|
59 | ESPIPE, Constant, |
---|
60 | ESRCH, Constant, |
---|
61 | ETIMEDOUT, Constant, |
---|
62 | EXDEV, Constant, |
---|
63 | @end example |
---|
64 | |
---|
65 | @section Primitive System Types |
---|
66 | |
---|
67 | @example |
---|
68 | dev_t, Type, Implemented |
---|
69 | gid_t, Type, Implemented |
---|
70 | ino_t, Type, Implemented |
---|
71 | mode_t, Type, Implemented |
---|
72 | nlink_t, Type, Implemented |
---|
73 | off_t, Type, Implemented |
---|
74 | pid_t, Type, Implemented |
---|
75 | pthread_t, Type, Implemented |
---|
76 | pthread_attr_t, Type, Implemented |
---|
77 | pthread_mutex_t, Type, Implemented |
---|
78 | pthread_mutex_attr_t, Type, Implemented |
---|
79 | pthread_cond_t, Type, Implemented |
---|
80 | pthread_cond_attr_t, Type, Implemented |
---|
81 | pthread_key_t, Type, Implemented |
---|
82 | pthread_once_t, Type, Implemented |
---|
83 | size_t, Type, Implemented |
---|
84 | ssize_t, Type, Implemented |
---|
85 | time_t, Type, Implemented |
---|
86 | uid_t, Type, Implemented |
---|
87 | @end example |
---|
88 | |
---|
89 | NOTE: time_t is not listed in this section but is used by many functions. |
---|
90 | |
---|
91 | @section Environment Description |
---|
92 | |
---|
93 | @section C Language Definitions |
---|
94 | |
---|
95 | @subsection Symbols From the C Standard |
---|
96 | |
---|
97 | @example |
---|
98 | NULL, Constant, |
---|
99 | @end example |
---|
100 | |
---|
101 | @subsection POSIX.1 Symbols |
---|
102 | |
---|
103 | @example |
---|
104 | _POSIX_C_SOURCE, Feature Flag, |
---|
105 | @end example |
---|
106 | |
---|
107 | @section Numerical Limits |
---|
108 | |
---|
109 | @section C Language Limits |
---|
110 | |
---|
111 | @example |
---|
112 | CHAR_BIT, Constant, |
---|
113 | CHAR_MAX, Constant, |
---|
114 | CHAR_MIN, Constant, |
---|
115 | INT_MAX, Constant, |
---|
116 | INT_MIN, Constant, |
---|
117 | LONG_MAX, Constant, |
---|
118 | LONG_MIN, Constant, |
---|
119 | MB_LEN_MAX, Constant, |
---|
120 | SCHAR_MAX, Constant, |
---|
121 | SCHAR_MIN, Constant, |
---|
122 | SHRT_MAX, Constant, |
---|
123 | SHRT_MIN, Constant, |
---|
124 | UCHAR_MAX, Constant, |
---|
125 | UINT_MAX, Constant, |
---|
126 | ULONG_MAX, Constant, |
---|
127 | USHRT_MAX, Constant, |
---|
128 | @end example |
---|
129 | |
---|
130 | @subsection Minimum Values |
---|
131 | |
---|
132 | @example |
---|
133 | _POSIX_AIO_LISTIO_MAX, Constant, |
---|
134 | _POSIX_AIO_MAX, Constant, |
---|
135 | _POSIX_ARG_MAX, Constant, |
---|
136 | _POSIX_CHILD_MAX, Constant, |
---|
137 | _POSIX_DELAYTIMER_MAX, Constant, |
---|
138 | _POSIX_LINK_MAX, Constant, |
---|
139 | _POSIX_LOGIN_NAME_MAX, Constant, |
---|
140 | _POSIX_MAX_CANON, Constant, |
---|
141 | _POSIX_MAX_INPUT, Constant, |
---|
142 | _POSIX_MQ_OPEN_MAX, Constant, |
---|
143 | _POSIX_MQ_PRIO_MAX, Constant, |
---|
144 | _POSIX_NAME_MAX, Constant, |
---|
145 | _POSIX_NGROUPS_MAX, Constant, |
---|
146 | _POSIX_OPEN_MAX, Constant, |
---|
147 | _POSIX_PATH_MAX, Constant, |
---|
148 | _POSIX_PIPE_BUF, Constant, |
---|
149 | _POSIX_RTSIG_MAX, Constant, |
---|
150 | _POSIX_SEM_NSEMS_MAX, Constant, |
---|
151 | _POSIX_SEM_VALUE_MAX, Constant, |
---|
152 | _POSIX_SIGQUEUE_MAX, Constant, |
---|
153 | _POSIX_SSIZE_MAX, Constant, |
---|
154 | _POSIX_STREAM_MAX, Constant, |
---|
155 | _POSIX_THREAD_DESTRUCTOR_ITERATIONS, Constant, |
---|
156 | _POSIX_THREAD_KEYS_MAX, Constant, |
---|
157 | _POSIX_THREAD_THREADS_MAX, Constant, |
---|
158 | _POSIX_TTY_NAME_MAX, Constant, |
---|
159 | _POSIX_TIME_MAX, Constant, |
---|
160 | _POSIX_TZNAME_MAX, Constant, |
---|
161 | @end example |
---|
162 | |
---|
163 | @subsection Run-Time Increasable Values |
---|
164 | |
---|
165 | @example |
---|
166 | _POSIX_NGROUPS_MAX, Constant, |
---|
167 | @end example |
---|
168 | |
---|
169 | @subsection Run-Time Invariant Values (Possible Indeterminate) |
---|
170 | |
---|
171 | @example |
---|
172 | AIO_LISTIO_MAX, Constant, |
---|
173 | AIO_MAX, Constant, |
---|
174 | AIO_PRIO_DELTA_MAX, Constant, |
---|
175 | ARG_MAX, Constant, |
---|
176 | CHILD_MAX, Constant, |
---|
177 | DELAYTIMER_MAX, Constant, |
---|
178 | LOGIN_NAME_MAX, Constant, |
---|
179 | MQ_OPEN_MAX, Constant, |
---|
180 | OPEN_MAX, Constant, |
---|
181 | PAGESIZE, Constant, |
---|
182 | PTHREAD_DESTRUCTOR_ITERATIONS, Constant, |
---|
183 | PTHREAD_KEYS_MAX, Constant, |
---|
184 | PTHREAD_STACK_MIN, Constant, |
---|
185 | PTHJREAD_THREADS_MAX, Constant, |
---|
186 | RTSIG_MAX, Constant, |
---|
187 | SEM_NSEMS_MAX, Constant, |
---|
188 | SEM_VALUE_MAX, Constant, |
---|
189 | SIGQUEUE_MAX, Constant, |
---|
190 | STREAM_MAX, Constant, |
---|
191 | TIMER_MAX, Constant, |
---|
192 | TTY_NAME_MAX, Constant, |
---|
193 | TZNAME_MAX, Constant, |
---|
194 | @end example |
---|
195 | |
---|
196 | @subsection Pathname Variable Values |
---|
197 | |
---|
198 | @example |
---|
199 | LINK_MAX, Constant, |
---|
200 | MAX_CANON, Constant, |
---|
201 | MAX_INPUT, Constant, |
---|
202 | NAME_MAX, Constant, |
---|
203 | PATH_MAX, Constant, |
---|
204 | PIPE_BUF, Constant, |
---|
205 | @end example |
---|
206 | |
---|
207 | @subsection Invariant Values |
---|
208 | |
---|
209 | @example |
---|
210 | SSIZE_MAX, Constant, |
---|
211 | @end example |
---|
212 | |
---|
213 | @subsection Maximum Values |
---|
214 | |
---|
215 | @example |
---|
216 | _POSIX_CLOCKRES_MIN, Constant, |
---|
217 | @end example |
---|
218 | |
---|
219 | @section Symbolic Constants |
---|
220 | |
---|
221 | @subsection Symbolic Constants for the @code{access} Function |
---|
222 | |
---|
223 | @example |
---|
224 | R_OK, Constant, |
---|
225 | W_OK, Constant, |
---|
226 | X_OK, Constant, |
---|
227 | F_OK, Constant, |
---|
228 | @end example |
---|
229 | |
---|
230 | @subsection Symbolic Constants for the @code{lseek} Function |
---|
231 | |
---|
232 | @example |
---|
233 | SEEK_SET, Constant, |
---|
234 | SEEK_CUR, Constant, |
---|
235 | SEEK_END, Constant, |
---|
236 | @end example |
---|
237 | |
---|
238 | @subsection Compile-Time Symbolic Constants for Portability Specifications |
---|
239 | |
---|
240 | @example |
---|
241 | _POSIX_ASYNCHRONOUS_IO, Feature Flag, |
---|
242 | _POSIX_FSYNC, Feature Flag, |
---|
243 | _POSIX_JOB_CONTROL, Feature Flag, |
---|
244 | _POSIX_MAPPED_FILES, Feature Flag, |
---|
245 | _POSIX_MEMLOCK, Feature Flag, |
---|
246 | _POSIX_MEMLOCK_RANGE, Feature Flag, |
---|
247 | _POSIX_MEMORY_PROTECTION, Feature Flag, |
---|
248 | _POSIX_MESSAGE_PASSING, Feature Flag, |
---|
249 | _POSIX_PRIORITIZED_IO, Feature Flag, |
---|
250 | _POSIX_PRIORITY_SCHEDULING, Feature Flag, |
---|
251 | _POSIX_REALTIME_SIGNALS, Feature Flag, |
---|
252 | _POSIX_SAVED_IDS, Feature Flag, |
---|
253 | _POSIX_SEMAPHORES, Feature Flag, |
---|
254 | _POSIX_SHARED_MEMORY_OBJECTS, Feature Flag, |
---|
255 | _POSIX_SYNCHRONIZED_IO, Feature Flag, |
---|
256 | _POSIX_THREADS, Feature Flag, |
---|
257 | _POSIX_THREAD_ATTR_STACKADDR, Feature Flag, |
---|
258 | _POSIX_THREAD_ATTR_STACKSIZE, Feature Flag, |
---|
259 | _POSIX_THREAD_PRIORITY_SCHEDULING, Feature Flag, |
---|
260 | _POSIX_THREAD_PRIO_INHERIT, Feature Flag, |
---|
261 | _POSIX_THREAD_PRIO_CEILING, Feature Flag, |
---|
262 | _POSIX_THREAD_PROCESS_SHARED, Feature Flag, |
---|
263 | _POSIX_THREAD_SAFE_FUNCTIONS, Feature Flag, |
---|
264 | _POSIX_TIMERS, Feature Flag, |
---|
265 | _POSIX_VERSION, Feature Flag, |
---|
266 | @end example |
---|
267 | |
---|
268 | @subsection Execution-Time Symbolic Constants for Portability Specifications |
---|
269 | |
---|
270 | @example |
---|
271 | _POSIX_ASYNC_IO, Feature Flag, |
---|
272 | _POSIX_CHOWN_RESTRICTED, Feature Flag, |
---|
273 | _POSIX_NO_TRUNC, Feature Flag, |
---|
274 | _POSIX_PRIO_IO, Feature Flag, |
---|
275 | _POSIX_SYNC_IO, Feature Flag, |
---|
276 | _POSIX_VDISABLE, Feature Flag, |
---|
277 | @end example |
---|