summaryrefslogtreecommitdiffstats
path: root/doc/posix1003.1/ch02.t
blob: 6643b89392ea2907a619819ceb878a7835b59d45 (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
@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

@subsection POSIX.1 Symbols

@example
_POSIX_C_SOURCE, Feature Flag, 
@end example

@section Numerical Limits

@section C Language Limits

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

@subsection Minimum Values

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

@subsection Run-Time Increasable Values

@example
_POSIX_NGROUPS_MAX
@end example

@subsection Run-Time Invariant Values (Possible Indeterminate)

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

@subsection Pathname Variable Values

@example
LINK_MAX
MAX_CANON
MAX_INPUT
NAME_MAX
PATH_MAX
PIPE_BUF
@end example

@subsection Invariant Values

@example
SSIZE_MAX
@end example

@subsection Maximum Values

@example
_POSIX_CLOCKRES_MIN
@end example

@section Symbolic Constants

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

@example
R_OK
W_OK
X_OK
F_OK
@end example

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

@example
SEEK_SET
SEEK_CUR
SEEK_END
@end example

@subsection Compile-Time Symbolic Constants for Portability Specifications

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

@subsection Execution-Time Symbolic Constants for Portability Specifications

@example
@end example