Skip to content

Commit e2b44f1

Browse files
authored
[libc][docs] Add fcntl.h POSIX header documentation (llvm#188822)
Add YAML documentation for `fcntl.h` listing all functions and macros as defined in POSIX.1-2024 (IEEE Std 1003.1-2024). **Functions (6):** creat, fcntl, open, openat, posix_fadvise, posix_fallocate **Macros (51):** O_RDONLY, O_WRONLY, O_RDWR, O_APPEND, O_CREAT, O_EXCL, O_TRUNC, F_DUPFD, F_GETFD, F_SETFD, F_GETFL, F_SETFL, AT_FDCWD, POSIX_FADV_*, and more. Part of llvm#122006
1 parent 7c1805d commit e2b44f1

File tree

3 files changed

+123
-0
lines changed

3 files changed

+123
-0
lines changed

libc/docs/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ if (SPHINX_FOUND)
4747
dirent
4848
endian
4949
errno
50+
fcntl
5051
fenv
5152
float
5253
glob

libc/docs/headers/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Implementation Status
1313
dirent
1414
endian
1515
errno
16+
fcntl
1617
fenv
1718
float
1819
glob

libc/utils/docgen/fcntl.yaml

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
functions:
2+
creat:
3+
in-latest-posix: ''
4+
fcntl:
5+
in-latest-posix: ''
6+
open:
7+
in-latest-posix: ''
8+
openat:
9+
in-latest-posix: ''
10+
posix_fadvise:
11+
in-latest-posix: ''
12+
posix_fallocate:
13+
in-latest-posix: ''
14+
15+
macros:
16+
AT_EACCESS:
17+
in-latest-posix: ''
18+
AT_FDCWD:
19+
in-latest-posix: ''
20+
AT_REMOVEDIR:
21+
in-latest-posix: ''
22+
AT_SYMLINK_FOLLOW:
23+
in-latest-posix: ''
24+
AT_SYMLINK_NOFOLLOW:
25+
in-latest-posix: ''
26+
FD_CLOEXEC:
27+
in-latest-posix: ''
28+
FD_CLOFORK:
29+
in-latest-posix: ''
30+
F_DUPFD:
31+
in-latest-posix: ''
32+
F_DUPFD_CLOEXEC:
33+
in-latest-posix: ''
34+
F_DUPFD_CLOFORK:
35+
in-latest-posix: ''
36+
F_GETFD:
37+
in-latest-posix: ''
38+
F_GETFL:
39+
in-latest-posix: ''
40+
F_GETLK:
41+
in-latest-posix: ''
42+
F_GETOWN:
43+
in-latest-posix: ''
44+
F_OFD_GETLK:
45+
in-latest-posix: ''
46+
F_OFD_SETLK:
47+
in-latest-posix: ''
48+
F_OFD_SETLKW:
49+
in-latest-posix: ''
50+
F_OWNER_PGRP:
51+
in-latest-posix: ''
52+
F_OWNER_PID:
53+
in-latest-posix: ''
54+
F_RDLCK:
55+
in-latest-posix: ''
56+
F_SETFD:
57+
in-latest-posix: ''
58+
F_SETFL:
59+
in-latest-posix: ''
60+
F_SETLK:
61+
in-latest-posix: ''
62+
F_SETLKW:
63+
in-latest-posix: ''
64+
F_SETOWN:
65+
in-latest-posix: ''
66+
F_UNLCK:
67+
in-latest-posix: ''
68+
F_WRLCK:
69+
in-latest-posix: ''
70+
O_ACCMODE:
71+
in-latest-posix: ''
72+
O_APPEND:
73+
in-latest-posix: ''
74+
O_CLOEXEC:
75+
in-latest-posix: ''
76+
O_CLOFORK:
77+
in-latest-posix: ''
78+
O_CREAT:
79+
in-latest-posix: ''
80+
O_DIRECTORY:
81+
in-latest-posix: ''
82+
O_DSYNC:
83+
in-latest-posix: ''
84+
O_EXCL:
85+
in-latest-posix: ''
86+
O_EXEC:
87+
in-latest-posix: ''
88+
O_NOCTTY:
89+
in-latest-posix: ''
90+
O_NOFOLLOW:
91+
in-latest-posix: ''
92+
O_NONBLOCK:
93+
in-latest-posix: ''
94+
O_RDONLY:
95+
in-latest-posix: ''
96+
O_RDWR:
97+
in-latest-posix: ''
98+
O_RSYNC:
99+
in-latest-posix: ''
100+
O_SEARCH:
101+
in-latest-posix: ''
102+
O_SYNC:
103+
in-latest-posix: ''
104+
O_TRUNC:
105+
in-latest-posix: ''
106+
O_TTY_INIT:
107+
in-latest-posix: ''
108+
O_WRONLY:
109+
in-latest-posix: ''
110+
POSIX_FADV_DONTNEED:
111+
in-latest-posix: ''
112+
POSIX_FADV_NORMAL:
113+
in-latest-posix: ''
114+
POSIX_FADV_NOREUSE:
115+
in-latest-posix: ''
116+
POSIX_FADV_RANDOM:
117+
in-latest-posix: ''
118+
POSIX_FADV_SEQUENTIAL:
119+
in-latest-posix: ''
120+
POSIX_FADV_WILLNEED:
121+
in-latest-posix: ''

0 commit comments

Comments
 (0)