summaryrefslogtreecommitdiffstats
path: root/doc/posix1003.1/ch02.t
blob: df18b5f2cefedec2af36c1bf9ab09a90c488feec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
@c
@c  COPYRIGHT (c) 1988-1998.
@c  On-Line Applications Research Corporation (OAR).
@c  All rights reserved.
@c
@c  $Id$
@c

@chapter Terminology and General Requirements

@section Conventions

@section Definitions

@section General Concepts

@section Error Numbers

@example
E2BIG, Constant, 
EACCES, Constant, 
EAGAIN, Constant, 
EBADF, Constant, 
EBADMSG, Constant, 
EBUSY, Constant, 
ECANCELED, Constant, 
ECHILD, Constant, 
EDEADLK, Constant, 
EDOM, Constant, 
EEXIST, Constant, 
EFAULT, Constant, 
EFBIG, Constant, 
EINPROGRESS, Constant, 
EINTR, Constant, 
EINVAL, Constant, 
EIO, Constant, 
EISDIR, Constant, 
EMFILE, Constant, 
EMLINK, Constant, 
EMSGSIZE, Constant, 
ENAMETOOLONG, Constant, 
ENFILE, Constant, 
ENODEV, Constant, 
ENOENT, Constant, 
ENOEXEC, Constant, 
ENOLCK, Constant, 
ENOMEM, Constant, 
ENOSPC, Constant, 
ENOSYS, Constant, 
ENOTDIR, Constant, 
ENOTEMPTY, Constant, 
ENOTSUP, Constant, 
ENOTTY, Constant, 
ENXIO, Constant, 
EPERM, Constant, 
EPIPE, Constant, 
ERANGE, Constant, 
EROFS, Constant, 
ESPIPE, Constant, 
ESRCH, Constant, 
ETIMEDOUT, Constant, 
EXDEV, Constant, 
@end example

@section Primitive System Types

@example
dev_t, Type, Implemented
gid_t, Type, Implemented
ino_t, Type, Implemented
mode_t, Type, Implemented
nlink_t, Type, Implemented
off_t, Type, Implemented
pid_t, Type, Implemented
pthread_t, Type, Implemented
pthread_attr_t, Type, Implemented
pthread_mutex_t, Type, Implemented
pthread_mutex_attr_t, Type, Implemented
pthread_cond_t, Type, Implemented
pthread_cond_attr_t, Type, Implemented
pthread_key_t, Type, Implemented
pthread_once_t, Type, Implemented
size_t, Type, Implemented
ssize_t, Type, Implemented
time_t, Type, Implemented
uid_t, Type, Implemented
@end example

NOTE: time_t is not listed in this section but is used by many functions.

@section Environment Description

@section C Language Definitions

@subsection Symbols From the C Standard

@example
NULL, Constant, 
@end example

@subsection POSIX.1 Symbols

@example
_POSIX_C_SOURCE, Feature Flag, 
@end example

@section Numerical Limits

@section C Language Limits

@example
CHAR_BIT, Constant, 
CHAR_MAX, Constant, 
CHAR_MIN, Constant, 
INT_MAX, Constant, 
INT_MIN, Constant, 
LONG_MAX, Constant, 
LONG_MIN, Constant, 
MB_LEN_MAX, Constant, 
SCHAR_MAX, Constant, 
SCHAR_MIN, Constant, 
SHRT_MAX, Constant, 
SHRT_MIN, Constant, 
UCHAR_MAX, Constant, 
UINT_MAX, Constant, 
ULONG_MAX, Constant, 
USHRT_MAX, Constant, 
@end example

@subsection Minimum Values

@example
_POSIX_AIO_LISTIO_MAX, Constant, 
_POSIX_AIO_MAX, Constant, 
_POSIX_ARG_MAX, Constant, 
_POSIX_CHILD_MAX, Constant, 
_POSIX_DELAYTIMER_MAX, Constant, 
_POSIX_LINK_MAX, Constant, 
_POSIX_LOGIN_NAME_MAX, Constant, 
_POSIX_MAX_CANON, Constant, 
_POSIX_MAX_INPUT, Constant, 
_POSIX_MQ_OPEN_MAX, Constant, 
_POSIX_MQ_PRIO_MAX, Constant, 
_POSIX_NAME_MAX, Constant, 
_POSIX_NGROUPS_MAX, Constant, 
_POSIX_OPEN_MAX, Constant, 
_POSIX_PATH_MAX, Constant, 
_POSIX_PIPE_BUF, Constant, 
_POSIX_RTSIG_MAX, Constant, 
_POSIX_SEM_NSEMS_MAX, Constant, 
_POSIX_SEM_VALUE_MAX, Constant, 
_POSIX_SIGQUEUE_MAX, Constant, 
_POSIX_SSIZE_MAX, Constant, 
_POSIX_STREAM_MAX, Constant, 
_POSIX_THREAD_DESTRUCTOR_ITERATIONS, Constant, 
_POSIX_THREAD_KEYS_MAX, Constant, 
_POSIX_THREAD_THREADS_MAX, Constant, 
_POSIX_TTY_NAME_MAX, Constant, 
_POSIX_TIME_MAX, Constant, 
_POSIX_TZNAME_MAX, Constant, 
@end example

@subsection Run-Time Increasable Values

@example
_POSIX_NGROUPS_MAX, Constant, 
@end example

@subsection Run-Time Invariant Values (Possible Indeterminate)

@example
AIO_LISTIO_MAX, Constant, 
AIO_MAX, Constant, 
AIO_PRIO_DELTA_MAX, Constant, 
ARG_MAX, Constant, 
CHILD_MAX, Constant, 
DELAYTIMER_MAX, Constant, 
LOGIN_NAME_MAX, Constant, 
MQ_OPEN_MAX, Constant, 
OPEN_MAX, Constant, 
PAGESIZE, Constant, 
PTHREAD_DESTRUCTOR_ITERATIONS, Constant, 
PTHREAD_KEYS_MAX, Constant, 
PTHREAD_STACK_MIN, Constant, 
PTHJREAD_THREADS_MAX, Constant, 
RTSIG_MAX, Constant, 
SEM_NSEMS_MAX, Constant, 
SEM_VALUE_MAX, Constant, 
SIGQUEUE_MAX, Constant, 
STREAM_MAX, Constant, 
TIMER_MAX, Constant, 
TTY_NAME_MAX, Constant, 
TZNAME_MAX, Constant, 
@end example

@subsection Pathname Variable Values

@example
LINK_MAX, Constant, 
MAX_CANON, Constant, 
MAX_INPUT, Constant, 
NAME_MAX, Constant, 
PATH_MAX, Constant, 
PIPE_BUF, Constant, 
@end example

@subsection Invariant Values

@example
SSIZE_MAX, Constant, 
@end example

@subsection Maximum Values

@example
_POSIX_CLOCKRES_MIN, Constant, 
@end example

@section Symbolic Constants

@subsection Symbolic Constants for the @code{access} Function

@example
R_OK, Constant, 
W_OK, Constant, 
X_OK, Constant, 
F_OK, Constant, 
@end example

@subsection Symbolic Constants for the @code{lseek} Function

@example
SEEK_SET, Constant, 
SEEK_CUR, Constant, 
SEEK_END, Constant, 
@end example

@subsection Compile-Time Symbolic Constants for Portability Specifications

@example
_POSIX_ASYNCHRONOUS_IO, Feature Flag, 
_POSIX_FSYNC, Feature Flag, 
_POSIX_JOB_CONTROL, Feature Flag, 
_POSIX_MAPPED_FILES, Feature Flag, 
_POSIX_MEMLOCK, Feature Flag, 
_POSIX_MEMLOCK_RANGE, Feature Flag, 
_POSIX_MEMORY_PROTECTION, Feature Flag, 
_POSIX_MESSAGE_PASSING, Feature Flag, 
_POSIX_PRIORITIZED_IO, Feature Flag, 
_POSIX_PRIORITY_SCHEDULING, Feature Flag, 
_POSIX_REALTIME_SIGNALS, Feature Flag, 
_POSIX_SAVED_IDS, Feature Flag, 
_POSIX_SEMAPHORES, Feature Flag, 
_POSIX_SHARED_MEMORY_OBJECTS, Feature Flag, 
_POSIX_SYNCHRONIZED_IO, Feature Flag, 
_POSIX_THREADS, Feature Flag, 
_POSIX_THREAD_ATTR_STACKADDR, Feature Flag, 
_POSIX_THREAD_ATTR_STACKSIZE, Feature Flag, 
_POSIX_THREAD_PRIORITY_SCHEDULING, Feature Flag, 
_POSIX_THREAD_PRIO_INHERIT, Feature Flag, 
_POSIX_THREAD_PRIO_CEILING, Feature Flag, 
_POSIX_THREAD_PROCESS_SHARED, Feature Flag, 
_POSIX_THREAD_SAFE_FUNCTIONS, Feature Flag, 
_POSIX_TIMERS, Feature Flag, 
_POSIX_VERSION, Feature Flag, 
@end example

@subsection Execution-Time Symbolic Constants for Portability Specifications

@example
_POSIX_ASYNC_IO, Feature Flag, 
_POSIX_CHOWN_RESTRICTED, Feature Flag, 
_POSIX_NO_TRUNC, Feature Flag, 
_POSIX_PRIO_IO, Feature Flag, 
_POSIX_SYNC_IO, Feature Flag, 
_POSIX_VDISABLE, Feature Flag, 
@end example