Skip to content

Commit 3671109

Browse files
authored
Add unistd header support and document related POSIX functions
1 parent 06c6bae commit 3671109

File tree

3 files changed

+267
-0
lines changed

3 files changed

+267
-0
lines changed

libc/docs/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ if (SPHINX_FOUND)
5757
sys/resource
5858
threads
5959
uchar
60+
unistd
6061
wchar
6162
wctype
6263
)

libc/docs/headers/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ Implementation Status
3131
threads
3232
time
3333
uchar
34+
unistd
3435
wchar
3536
wctype

libc/utils/docgen/unistd.yaml

Lines changed: 265 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,265 @@
1+
macros:
2+
_POSIX_VERSION:
3+
in-latest-posix: ''
4+
_POSIX2_VERSION:
5+
in-latest-posix: ''
6+
_POSIX_SUBPROFILE:
7+
in-latest-posix: ''
8+
_XOPEN_VERSION:
9+
in-latest-posix: ''
10+
11+
12+
_POSIX_ADVISORY_INFO:
13+
in-latest-posix: ''
14+
_POSIX_ASYNCHRONOUS_IO:
15+
in-latest-posix: ''
16+
_POSIX_BARRIERS:
17+
in-latest-posix: ''
18+
_POSIX_CHOWN_RESTRICTED:
19+
in-latest-posix: ''
20+
_POSIX_CLOCK_SELECTION:
21+
in-latest-posix: ''
22+
_POSIX_CPUTIME:
23+
in-latest-posix: ''
24+
_POSIX_DEVICE_CONTROL:
25+
in-latest-posix: ''
26+
_POSIX_FSYNC:
27+
in-latest-posix: ''
28+
_POSIX_IPV6:
29+
in-latest-posix: ''
30+
_POSIX_JOB_CONTROL:
31+
in-latest-posix: ''
32+
_POSIX_MAPPED_FILES:
33+
in-latest-posix: ''
34+
_POSIX_MEMLOCK:
35+
in-latest-posix: ''
36+
_POSIX_MEMLOCK_RANGE:
37+
in-latest-posix: ''
38+
_POSIX_MEMORY_PROTECTION:
39+
in-latest-posix: ''
40+
_POSIX_MESSAGE_PASSING:
41+
in-latest-posix: ''
42+
_POSIX_MONOTONIC_CLOCK:
43+
in-latest-posix: ''
44+
_POSIX_NO_TRUNC:
45+
in-latest-posix: ''
46+
_POSIX_PRIORITIZED_IO:
47+
in-latest-posix: ''
48+
_POSIX_PRIORITY_SCHEDULING:
49+
in-latest-posix: ''
50+
_POSIX_RAW_SOCKETS:
51+
in-latest-posix: ''
52+
_POSIX_READER_WRITER_LOCKS:
53+
in-latest-posix: ''
54+
_POSIX_REALTIME_SIGNALS:
55+
in-latest-posix: ''
56+
_POSIX_REGEXP:
57+
in-latest-posix: ''
58+
_POSIX_SAVED_IDS:
59+
in-latest-posix: ''
60+
_POSIX_SEMAPHORES:
61+
in-latest-posix: ''
62+
_POSIX_SHARED_MEMORY_OBJECTS:
63+
in-latest-posix: ''
64+
_POSIX_SHELL:
65+
in-latest-posix: ''
66+
_POSIX_SPAWN:
67+
in-latest-posix: ''
68+
_POSIX_SPIN_LOCKS:
69+
in-latest-posix: ''
70+
_POSIX_SPORADIC_SERVER:
71+
in-latest-posix: ''
72+
_POSIX_SYNCHRONIZED_IO:
73+
in-latest-posix: ''
74+
_POSIX_THREAD_ATTR_STACKADDR:
75+
in-latest-posix: ''
76+
_POSIX_THREAD_ATTR_STACKSIZE:
77+
in-latest-posix: ''
78+
_POSIX_THREAD_CPUTIME:
79+
in-latest-posix: ''
80+
_POSIX_THREAD_PRIO_INHERIT:
81+
in-latest-posix: ''
82+
_POSIX_THREAD_PRIO_PROTECT:
83+
in-latest-posix: ''
84+
_POSIX_THREAD_PRIORITY_SCHEDULING:
85+
in-latest-posix: ''
86+
_POSIX_THREAD_PROCESS_SHARED:
87+
in-latest-posix: ''
88+
_POSIX_THREAD_ROBUST_PRIO_INHERIT:
89+
in-latest-posix: ''
90+
_POSIX_THREAD_ROBUST_PRIO_PROTECT:
91+
in-latest-posix: ''
92+
_POSIX_THREAD_SAFE_FUNCTIONS:
93+
in-latest-posix: ''
94+
_POSIX_THREAD_SPORADIC_SERVER:
95+
in-latest-posix: ''
96+
_POSIX_THREADS:
97+
in-latest-posix: ''
98+
_POSIX_TIMEOUTS:
99+
in-latest-posix: ''
100+
_POSIX_TIMERS:
101+
in-latest-posix: ''
102+
_POSIX_TYPED_MEMORY_OBJECTS:
103+
in-latest-posix: ''
104+
_POSIX_V7_ILP32_OFF32:
105+
in-latest-posix: ''
106+
_POSIX_V7_ILP32_OFFBIG:
107+
in-latest-posix: ''
108+
_POSIX_V7_LP64_OFF64:
109+
in-latest-posix: ''
110+
_POSIX_V7_LPBIG_OFFBIG:
111+
in-latest-posix: ''
112+
_POSIX_V8_ILP32_OFF32:
113+
in-latest-posix: ''
114+
_POSIX_V8_ILP32_OFFBIG:
115+
in-latest-posix: ''
116+
_POSIX_V8_LP64_OFF64:
117+
in-latest-posix: ''
118+
_POSIX_V8_LPBIG_OFFBIG:
119+
in-latest-posix: ''
120+
121+
_POSIX2_C_BIND:
122+
in-latest-posix: ''
123+
_POSIX2_C_DEV:
124+
in-latest-posix: ''
125+
_POSIX2_CHAR_TERM:
126+
in-latest-posix: ''
127+
_POSIX2_FORT_RUN:
128+
in-latest-posix: ''
129+
_POSIX2_LOCALEDEF:
130+
in-latest-posix: ''
131+
_POSIX2_SW_DEV:
132+
in-latest-posix: ''
133+
_POSIX2_UPE:
134+
in-latest-posix: ''
135+
_XOPEN_CRYPT:
136+
in-latest-posix: ''
137+
_XOPEN_ENH_I18N:
138+
in-latest-posix: ''
139+
_XOPEN_REALTIME:
140+
in-latest-posix: ''
141+
_XOPEN_REALTIME_THREADS:
142+
in-latest-posix: ''
143+
_XOPEN_SHM:
144+
in-latest-posix: ''
145+
_XOPEN_UNIX:
146+
in-latest-posix: ''
147+
_XOPEN_UUCP:
148+
in-latest-posix: ''
149+
150+
_POSIX_ASYNC_IO:
151+
in-latest-posix: ''
152+
_POSIX_FALLOC:
153+
in-latest-posix: ''
154+
_POSIX_PRIO_IO:
155+
in-latest-posix: ''
156+
_POSIX_SYNC_IO:
157+
in-latest-posix: ''
158+
_POSIX_TIMESTAMP_RESOLUTION:
159+
in-latest-posix: ''
160+
_POSIX2_SYMLINKS:
161+
in-latest-posix: ''
162+
163+
164+
NULL:
165+
in-latest-posix: ''
166+
O_CLOEXEC:
167+
in-latest-posix: ''
168+
O_CLOFORK:
169+
in-latest-posix: ''
170+
F_OK:
171+
in-latest-posix: ''
172+
R_OK:
173+
in-latest-posix: ''
174+
W_OK:
175+
in-latest-posix: ''
176+
X_OK:
177+
in-latest-posix: ''
178+
179+
_CS_PATH:
180+
in-latest-posix: ''
181+
_CS_POSIX_V8_ILP32_OFF32_CFLAGS:
182+
in-latest-posix: ''
183+
_CS_POSIX_V8_ILP32_OFF32_LDFLAGS:
184+
in-latest-posix: ''
185+
_CS_POSIX_V8_ILP32_OFF32_LIBS:
186+
in-latest-posix: ''
187+
_CS_POSIX_V8_ILP32_OFFBIG_CFLAGS:
188+
in-latest-posix: ''
189+
_CS_POSIX_V8_ILP32_OFFBIG_LDFLAGS:
190+
in-latest-posix: ''
191+
_CS_POSIX_V8_ILP32_OFFBIG_LIBS:
192+
in-latest-posix: ''
193+
_CS_POSIX_V8_LP64_OFF64_CFLAGS:
194+
in-latest-posix: ''
195+
_CS_POSIX_V8_LP64_OFF64_LDFLAGS:
196+
in-latest-posix: ''
197+
_CS_POSIX_V8_LP64_OFF64_LIBS:
198+
in-latest-posix: ''
199+
_CS_POSIX_V8_LPBIG_OFFBIG_CFLAGS:
200+
in-latest-posix: ''
201+
_CS_POSIX_V8_LPBIG_OFFBIG_LDFLAGS:
202+
in-latest-posix: ''
203+
_CS_POSIX_V8_LPBIG_OFFBIG_LIBS:
204+
in-latest-posix: ''
205+
_CS_POSIX_V8_THREADS_CFLAGS:
206+
in-latest-posix: ''
207+
_CS_POSIX_V8_THREADS_LDFLAGS:
208+
in-latest-posix: ''
209+
_CS_POSIX_V8_WIDTH_RESTRICTED_ENVS:
210+
in-latest-posix: ''
211+
_CS_V8_ENV:
212+
in-latest-posix: ''
213+
214+
215+
216+
217+
functions:
218+
access:
219+
in-latest-posix: ''
220+
alarm:
221+
in-latest-posix: ''
222+
chdir:
223+
in-latest-posix: ''
224+
chown:
225+
in-latest-posix: ''
226+
close:
227+
in-latest-posix: ''
228+
confstr:
229+
in-latest-posix: ''
230+
crypt:
231+
in-latest-posix: ''
232+
dup:
233+
in-latest-posix: ''
234+
dup2:
235+
in-latest-posix: ''
236+
dup3:
237+
in-latest-posix: ''
238+
_exit:
239+
in-latest-posix: ''
240+
encrypt:
241+
in-latest-posix: ''
242+
execl:
243+
in-latest-posix: ''
244+
execle:
245+
in-latest-posix: ''
246+
execlp:
247+
in-latest-posix: ''
248+
execv:
249+
in-latest-posix: ''
250+
execve:
251+
in-latest-posix: ''
252+
execvp:
253+
in-latest-posix: ''
254+
fchdir:
255+
in-latest-posix: ''
256+
fchown:
257+
in-latest-posix: ''
258+
fdatasync:
259+
in-latest-posix: ''
260+
fork:
261+
in-latest-posix: ''
262+
fpathconf:
263+
in-latest-posix: ''
264+
fsync:
265+
in-latest-posix: ''

0 commit comments

Comments
 (0)