Skip to content

Commit 608ad4a

Browse files
authored
Add net/if header documentation and update CMake configuration and include it in index
1 parent 17912f3 commit 608ad4a

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

libc/docs/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if (SPHINX_FOUND)
1919
file(MAKE_DIRECTORY
2020
"${CMAKE_CURRENT_BINARY_DIR}/headers/arpa/"
2121
"${CMAKE_CURRENT_BINARY_DIR}/headers/sys/"
22+
"${CMAKE_CURRENT_BINARY_DIR}/headers/net/"
2223
)
2324

2425
# Change sphinx to build from $build_dir/libc/docs/ rather than
@@ -40,6 +41,7 @@ if (SPHINX_FOUND)
4041
float
4142
inttypes
4243
locale
44+
net/if
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+
net/if
1718
search
1819
setjmp
1920
signal

libc/utils/docgen/net/if.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
functions:
2+
if_freenameindex:
3+
in-latest-posix: ''
4+
if_indextoname:
5+
in-latest-posix: ''
6+
if_nameindex:
7+
in-latest-posix: ''
8+
if_nametoindex:
9+
in-latest-posix: ''
10+
11+
macros:
12+
IF_NAMESIZE:
13+
in-latest-posix: ''

0 commit comments

Comments
 (0)