Skip to content

Commit d6c1a37

Browse files
authored
[libc][docs] Add netinet/in header documentation by YAML definitions and include it in cmake and index.rst file for html page generation
1 parent 369c617 commit d6c1a37

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

libc/docs/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ if (SPHINX_FOUND)
1818
# shell.
1919
file(MAKE_DIRECTORY
2020
"${CMAKE_CURRENT_BINARY_DIR}/headers/arpa/"
21+
"${CMAKE_CURRENT_BINARY_DIR}/headers/netinet/"
2122
"${CMAKE_CURRENT_BINARY_DIR}/headers/sys/"
2223
)
2324

@@ -40,6 +41,7 @@ if (SPHINX_FOUND)
4041
float
4142
inttypes
4243
locale
44+
netinet/in
4345
setjmp
4446
signal
4547
stdbit

libc/docs/headers/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Implementation Status
1414
inttypes
1515
locale
1616
math/index.rst
17+
netinet/in
1718
search
1819
setjmp
1920
signal

libc/utils/docgen/netinet/in.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
macros:
2+
IPPROTO_IP:
3+
in-latest-posix: ''
4+
IPPROTO_IPV6:
5+
in-latest-posix: ''
6+
IPPROTO_ICMP:
7+
in-latest-posix: ''
8+
IPPROTO_RAW:
9+
in-latest-posix: ''
10+
IPPROTO_TCP:
11+
in-latest-posix: ''
12+
IPPROTO_UDP:
13+
in-latest-posix: ''
14+
INADDR_ANY:
15+
in-latest-posix: ''
16+
INADDR_BROADCAST:
17+
in-latest-posix: ''
18+
INET_ADDRSTRLEN:
19+
in-latest-posix: ''
20+
IPV6_JOIN_GROUP:
21+
in-latest-posix: ''
22+
IPV6_LEAVE_GROUP:
23+
in-latest-posix: ''
24+
IPV6_MULTICAST_HOPS:
25+
in-latest-posix: ''
26+
IPV6_MULTICAST_IF:
27+
in-latest-posix: ''
28+
IPV6_MULTICAST_LOOP:
29+
in-latest-posix: ''
30+
IPV6_UNICAST_HOPS:
31+
in-latest-posix: ''
32+
IPV6_V6ONLY:
33+
in-latest-posix: ''
34+
IN6_IS_ADDR_UNSPECIFIED:
35+
in-latest-posix: ''
36+
IN6_IS_ADDR_LOOPBACK:
37+
in-latest-posix: ''
38+
IN6_IS_ADDR_MULTICAST:
39+
in-latest-posix: ''
40+
IN6_IS_ADDR_LINKLOCAL:
41+
in-latest-posix: ''
42+
IN6_IS_ADDR_SITELOCAL:
43+
in-latest-posix: ''
44+
IN6_IS_ADDR_V4MAPPED:
45+
in-latest-posix: ''
46+
IN6_IS_ADDR_V4COMPAT:
47+
in-latest-posix: ''
48+
IN6_IS_ADDR_MC_NODELOCAL:
49+
in-latest-posix: ''
50+
IN6_IS_ADDR_MC_LINKLOCAL:
51+
in-latest-posix: ''
52+
IN6_IS_ADDR_MC_SITELOCAL:
53+
in-latest-posix: ''
54+
IN6_IS_ADDR_MC_ORGLOCAL:
55+
in-latest-posix: ''
56+
IN6_IS_ADDR_MC_GLOBAL:
57+
in-latest-posix: ''

0 commit comments

Comments
 (0)