1 |
1026 |
ivang |
@c
|
2 |
|
|
@c COPYRIGHT (c) 1988-2002.
|
3 |
|
|
@c On-Line Applications Research Corporation (OAR).
|
4 |
|
|
@c All rights reserved.
|
5 |
|
|
@c
|
6 |
|
|
@c ch02.t,v 1.10 2002/01/17 21:47:45 joel Exp
|
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, Implemented
|
21 |
|
|
EACCES, Constant, Implemented
|
22 |
|
|
EAGAIN, Constant, Implemented
|
23 |
|
|
EBADF, Constant, Implemented
|
24 |
|
|
EBADMSG, Constant, Implemented
|
25 |
|
|
EBUSY, Constant, Implemented
|
26 |
|
|
ECANCELED, Constant, Unimplemented
|
27 |
|
|
ECHILD, Constant, Implemented
|
28 |
|
|
EDEADLK, Constant, Implemented
|
29 |
|
|
EDOM, Constant, Implemented
|
30 |
|
|
EEXIST, Constant, Implemented
|
31 |
|
|
EFAULT, Constant, Implemented
|
32 |
|
|
EFBIG, Constant, Implemented
|
33 |
|
|
EINPROGRESS, Constant, Implemented
|
34 |
|
|
EINTR, Constant, Implemented
|
35 |
|
|
EINVAL, Constant, Implemented
|
36 |
|
|
EIO, Constant, Implemented
|
37 |
|
|
EISDIR, Constant, Implemented
|
38 |
|
|
EMFILE, Constant, Implemented
|
39 |
|
|
EMLINK, Constant, Implemented
|
40 |
|
|
EMSGSIZE, Constant, Implemented
|
41 |
|
|
ENAMETOOLONG, Constant, Implemented
|
42 |
|
|
ENFILE, Constant, Implemented
|
43 |
|
|
ENODEV, Constant, Implemented
|
44 |
|
|
ENOENT, Constant, Implemented
|
45 |
|
|
ENOEXEC, Constant, Implemented
|
46 |
|
|
ENOLCK, Constant, Implemented
|
47 |
|
|
ENOMEM, Constant, Implemented
|
48 |
|
|
ENOSPC, Constant, Implemented
|
49 |
|
|
ENOSYS, Constant, Implemented
|
50 |
|
|
ENOTDIR, Constant, Implemented
|
51 |
|
|
ENOTEMPTY, Constant, Implemented
|
52 |
|
|
ENOTSUP, Constant, Implemented
|
53 |
|
|
ENOTTY, Constant, Implemented
|
54 |
|
|
ENXIO, Constant, Implemented
|
55 |
|
|
EPERM, Constant, Implemented
|
56 |
|
|
EPIPE, Constant, Implemented
|
57 |
|
|
ERANGE, Constant, Implemented
|
58 |
|
|
EROFS, Constant, Implemented
|
59 |
|
|
ESPIPE, Constant, Implemented
|
60 |
|
|
ESRCH, Constant, Implemented
|
61 |
|
|
ETIMEDOUT, Constant, Implemented
|
62 |
|
|
EXDEV, Constant, Implemented
|
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, Implemented
|
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, Implemented
|
113 |
|
|
CHAR_MAX, Constant, Implemented
|
114 |
|
|
CHAR_MIN, Constant, Implemented
|
115 |
|
|
INT_MAX, Constant, Implemented
|
116 |
|
|
INT_MIN, Constant, Implemented
|
117 |
|
|
LONG_MAX, Constant, Implemented
|
118 |
|
|
LONG_MIN, Constant, Implemented
|
119 |
|
|
MB_LEN_MAX, Constant, Implemented
|
120 |
|
|
SCHAR_MAX, Constant, Implemented
|
121 |
|
|
SCHAR_MIN, Constant, Implemented
|
122 |
|
|
SHRT_MAX, Constant, Implemented
|
123 |
|
|
SHRT_MIN, Constant, Implemented
|
124 |
|
|
UCHAR_MAX, Constant, Implemented
|
125 |
|
|
UINT_MAX, Constant, Implemented
|
126 |
|
|
ULONG_MAX, Constant, Implemented
|
127 |
|
|
USHRT_MAX, Constant, Implemented
|
128 |
|
|
@end example
|
129 |
|
|
|
130 |
|
|
NOTE: These are implemented in GCC's limits.h file.
|
131 |
|
|
|
132 |
|
|
@subsection Minimum Values
|
133 |
|
|
|
134 |
|
|
@example
|
135 |
|
|
_POSIX_AIO_LISTIO_MAX, Constant, Implemented
|
136 |
|
|
_POSIX_AIO_MAX, Constant, Implemented
|
137 |
|
|
_POSIX_ARG_MAX, Constant, Implemented
|
138 |
|
|
_POSIX_CHILD_MAX, Constant, Implemented
|
139 |
|
|
_POSIX_DELAYTIMER_MAX, Constant, Implemented
|
140 |
|
|
_POSIX_LINK_MAX, Constant, Implemented
|
141 |
|
|
_POSIX_LOGIN_NAME_MAX, Constant, Implemented
|
142 |
|
|
_POSIX_MAX_CANON, Constant, Implemented
|
143 |
|
|
_POSIX_MAX_INPUT, Constant, Implemented
|
144 |
|
|
_POSIX_MQ_OPEN_MAX, Constant, Implemented
|
145 |
|
|
_POSIX_MQ_PRIO_MAX, Constant, Implemented
|
146 |
|
|
_POSIX_NAME_MAX, Constant, Implemented
|
147 |
|
|
_POSIX_NGROUPS_MAX, Constant, Implemented
|
148 |
|
|
_POSIX_OPEN_MAX, Constant, Implemented
|
149 |
|
|
_POSIX_PATH_MAX, Constant, Implemented
|
150 |
|
|
_POSIX_PIPE_BUF, Constant, Implemented
|
151 |
|
|
_POSIX_RTSIG_MAX, Constant, Implemented
|
152 |
|
|
_POSIX_SEM_NSEMS_MAX, Constant, Implemented
|
153 |
|
|
_POSIX_SEM_VALUE_MAX, Constant, Implemented
|
154 |
|
|
_POSIX_SIGQUEUE_MAX, Constant, Implemented
|
155 |
|
|
_POSIX_SSIZE_MAX, Constant, Implemented
|
156 |
|
|
_POSIX_STREAM_MAX, Constant, Implemented
|
157 |
|
|
_POSIX_THREAD_DESTRUCTOR_ITERATIONS, Constant, Implemented
|
158 |
|
|
_POSIX_THREAD_KEYS_MAX, Constant, Implemented
|
159 |
|
|
_POSIX_THREAD_THREADS_MAX, Constant, Implemented
|
160 |
|
|
_POSIX_TTY_NAME_MAX, Constant, Implemented
|
161 |
|
|
_POSIX_TIME_MAX, Constant, Unimplemented
|
162 |
|
|
_POSIX_TZNAME_MAX, Constant, Implemented
|
163 |
|
|
@end example
|
164 |
|
|
|
165 |
|
|
@subsection Run-Time Increasable Values
|
166 |
|
|
|
167 |
|
|
@example
|
168 |
|
|
_POSIX_NGROUPS_MAX, Constant, Implemented
|
169 |
|
|
@end example
|
170 |
|
|
|
171 |
|
|
@subsection Run-Time Invariant Values (Possible Indeterminate)
|
172 |
|
|
|
173 |
|
|
@example
|
174 |
|
|
AIO_LISTIO_MAX, Constant, Implemented
|
175 |
|
|
AIO_MAX, Constant, Implemented
|
176 |
|
|
AIO_PRIO_DELTA_MAX, Constant, Implemented
|
177 |
|
|
ARG_MAX, Constant, Implemented
|
178 |
|
|
CHILD_MAX, Constant, Implemented
|
179 |
|
|
DELAYTIMER_MAX, Constant, Implemented
|
180 |
|
|
LOGIN_NAME_MAX, Constant, Implemented
|
181 |
|
|
MQ_OPEN_MAX, Constant, Implemented
|
182 |
|
|
OPEN_MAX, Constant, Implemented
|
183 |
|
|
PAGESIZE, Constant, Implemented
|
184 |
|
|
PTHREAD_DESTRUCTOR_ITERATIONS, Constant, Implemented
|
185 |
|
|
PTHREAD_KEYS_MAX, Constant, Implemented
|
186 |
|
|
PTHREAD_STACK_MIN, Constant, Implemented
|
187 |
|
|
PTHJREAD_THREADS_MAX, Constant, Implemented
|
188 |
|
|
RTSIG_MAX, Constant, Implemented
|
189 |
|
|
SEM_NSEMS_MAX, Constant, Implemented
|
190 |
|
|
SEM_VALUE_MAX, Constant, Implemented
|
191 |
|
|
SIGQUEUE_MAX, Constant, Implemented
|
192 |
|
|
STREAM_MAX, Constant, Implemented
|
193 |
|
|
TIMER_MAX, Constant, Implemented
|
194 |
|
|
TTY_NAME_MAX, Constant, Implemented
|
195 |
|
|
TZNAME_MAX, Constant, Implemented
|
196 |
|
|
@end example
|
197 |
|
|
|
198 |
|
|
@subsection Pathname Variable Values
|
199 |
|
|
|
200 |
|
|
@example
|
201 |
|
|
LINK_MAX, Constant, Implemented
|
202 |
|
|
MAX_CANON, Constant, Implemented
|
203 |
|
|
MAX_INPUT, Constant, Implemented
|
204 |
|
|
NAME_MAX, Constant, Implemented
|
205 |
|
|
PATH_MAX, Constant, Implemented
|
206 |
|
|
PIPE_BUF, Constant, Implemented
|
207 |
|
|
@end example
|
208 |
|
|
|
209 |
|
|
@subsection Invariant Values
|
210 |
|
|
|
211 |
|
|
@example
|
212 |
|
|
SSIZE_MAX, Constant, Implemented
|
213 |
|
|
@end example
|
214 |
|
|
|
215 |
|
|
@subsection Maximum Values
|
216 |
|
|
|
217 |
|
|
@example
|
218 |
|
|
_POSIX_CLOCKRES_MIN, Constant, Implemented
|
219 |
|
|
@end example
|
220 |
|
|
|
221 |
|
|
@section Symbolic Constants
|
222 |
|
|
|
223 |
|
|
@subsection Symbolic Constants for the access Function
|
224 |
|
|
|
225 |
|
|
@example
|
226 |
|
|
R_OK, Constant, Implemented
|
227 |
|
|
W_OK, Constant, Implemented
|
228 |
|
|
X_OK, Constant, Implemented
|
229 |
|
|
F_OK, Constant, Implemented
|
230 |
|
|
@end example
|
231 |
|
|
|
232 |
|
|
@subsection Symbolic Constants for the lseek Function
|
233 |
|
|
|
234 |
|
|
@example
|
235 |
|
|
SEEK_SET, Constant, Implemented
|
236 |
|
|
SEEK_CUR, Constant, Implemented
|
237 |
|
|
SEEK_END, Constant, Implemented
|
238 |
|
|
@end example
|
239 |
|
|
|
240 |
|
|
@subsection Compile-Time Symbolic Constants for Portability Specifications
|
241 |
|
|
|
242 |
|
|
@example
|
243 |
|
|
_POSIX_ASYNCHRONOUS_IO, Feature Flag,
|
244 |
|
|
_POSIX_FSYNC, Feature Flag,
|
245 |
|
|
_POSIX_JOB_CONTROL, Feature Flag,
|
246 |
|
|
_POSIX_MAPPED_FILES, Feature Flag,
|
247 |
|
|
_POSIX_MEMLOCK, Feature Flag,
|
248 |
|
|
_POSIX_MEMLOCK_RANGE, Feature Flag,
|
249 |
|
|
_POSIX_MEMORY_PROTECTION, Feature Flag,
|
250 |
|
|
_POSIX_MESSAGE_PASSING, Feature Flag,
|
251 |
|
|
_POSIX_PRIORITIZED_IO, Feature Flag,
|
252 |
|
|
_POSIX_PRIORITY_SCHEDULING, Feature Flag,
|
253 |
|
|
_POSIX_REALTIME_SIGNALS, Feature Flag,
|
254 |
|
|
_POSIX_SAVED_IDS, Feature Flag,
|
255 |
|
|
_POSIX_SEMAPHORES, Feature Flag,
|
256 |
|
|
_POSIX_SHARED_MEMORY_OBJECTS, Feature Flag,
|
257 |
|
|
_POSIX_SYNCHRONIZED_IO, Feature Flag,
|
258 |
|
|
_POSIX_THREADS, Feature Flag,
|
259 |
|
|
_POSIX_THREAD_ATTR_STACKADDR, Feature Flag,
|
260 |
|
|
_POSIX_THREAD_ATTR_STACKSIZE, Feature Flag,
|
261 |
|
|
_POSIX_THREAD_PRIORITY_SCHEDULING, Feature Flag,
|
262 |
|
|
_POSIX_THREAD_PRIO_INHERIT, Feature Flag,
|
263 |
|
|
_POSIX_THREAD_PRIO_CEILING, Feature Flag,
|
264 |
|
|
_POSIX_THREAD_PROCESS_SHARED, Feature Flag,
|
265 |
|
|
_POSIX_THREAD_SAFE_FUNCTIONS, Feature Flag,
|
266 |
|
|
_POSIX_TIMERS, Feature Flag,
|
267 |
|
|
_POSIX_VERSION, Feature Flag,
|
268 |
|
|
@end example
|
269 |
|
|
|
270 |
|
|
@subsection Execution-Time Symbolic Constants for Portability Specifications
|
271 |
|
|
|
272 |
|
|
@example
|
273 |
|
|
_POSIX_ASYNC_IO, Feature Flag,
|
274 |
|
|
_POSIX_CHOWN_RESTRICTED, Feature Flag,
|
275 |
|
|
_POSIX_NO_TRUNC, Feature Flag,
|
276 |
|
|
_POSIX_PRIO_IO, Feature Flag,
|
277 |
|
|
_POSIX_SYNC_IO, Feature Flag,
|
278 |
|
|
_POSIX_VDISABLE, Feature Flag,
|
279 |
|
|
@end example
|