Skip to content

Commit 9e75b3e

Browse files
siyasiya
authored andcommitted
Document POSIX header cpio.h
1 parent b207e43 commit 9e75b3e

File tree

1 file changed

+92
-16
lines changed

1 file changed

+92
-16
lines changed

libc/utils/docgen/cpio.yaml

Lines changed: 92 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,107 @@
1-
functions:
2-
cpio_open:
1+
macros:
2+
C_IRUSR:
3+
c-definition: "Read by owner."
4+
in-latest-posix: ''
5+
value: "0000400"
6+
7+
C_IWUSR:
8+
c-definition: "Write by owner."
39
in-latest-posix: ''
4-
cpio_create:
10+
value: "0000200"
11+
12+
C_IXUSR:
13+
c-definition: "Execute by owner."
514
in-latest-posix: ''
6-
cpio_read:
15+
value: "0000100"
16+
17+
C_IRGRP:
18+
c-definition: "Read by group."
719
in-latest-posix: ''
8-
cpio_write:
20+
value: "0000040"
21+
22+
C_IWGRP:
23+
c-definition: "Write by group."
924
in-latest-posix: ''
10-
cpio_close:
25+
value: "0000020"
26+
27+
C_IXGRP:
28+
c-definition: "Execute by group."
1129
in-latest-posix: ''
12-
macros:
13-
CPIO_ACCESS:
30+
value: "0000010"
31+
32+
C_IROTH:
33+
c-definition: "Read by others."
34+
in-latest-posix: ''
35+
value: "0000004"
36+
37+
C_IWOTH:
38+
c-definition: "Write by others."
39+
in-latest-posix: ''
40+
value: "0000002"
41+
42+
C_IXOTH:
43+
c-definition: "Execute by others."
44+
in-latest-posix: ''
45+
value: "0000001"
46+
47+
C_ISUID:
48+
c-definition: "Set user ID."
1449
in-latest-posix: ''
15-
CPIO_CREATE:
50+
value: "0004000"
51+
52+
C_ISGID:
53+
c-definition: "Set group ID."
1654
in-latest-posix: ''
17-
CPIO_EXTRACT:
55+
value: "0002000"
56+
57+
C_ISVTX:
58+
c-definition: "Restricted deletion flag on directories."
1859
in-latest-posix: ''
19-
CPIO_LINK:
60+
value: "0001000"
61+
62+
C_ISDIR:
63+
c-definition: "Directory."
2064
in-latest-posix: ''
21-
CPIO_RENAME:
65+
value: "0040000"
66+
67+
C_ISFIFO:
68+
c-definition: "FIFO."
2269
in-latest-posix: ''
23-
CPIO_SYMLINK:
70+
value: "0010000"
71+
72+
C_ISREG:
73+
c-definition: "Regular file."
2474
in-latest-posix: ''
25-
CPIO_DELETE:
75+
value: "0100000"
76+
77+
C_ISBLK:
78+
c-definition: "Block special."
2679
in-latest-posix: ''
27-
CPIO_TRUNCATE:
80+
value: "0060000"
81+
82+
C_ISCHR:
83+
c-definition: "Character special."
2884
in-latest-posix: ''
29-
CPIO_UNLINK:
85+
value: "0020000"
86+
87+
C_ISCTG:
88+
c-definition: "Reserved."
3089
in-latest-posix: ''
90+
value: "0110000"
91+
92+
C_ISLNK:
93+
c-definition: "Symbolic link."
94+
in-latest-posix: ''
95+
value: "0120000"
96+
97+
C_ISSOCK:
98+
c-definition: "Socket."
99+
in-latest-posix: ''
100+
value: "0140000"
101+
102+
MAGIC:
103+
c-definition: "The magic string for cpio files."
104+
in-latest-posix: ''
105+
value: '"070707"'
106+
31107

0 commit comments

Comments
 (0)