From 608ad4a1dabb4fa0c91645aa04cb29bec8d86c57 Mon Sep 17 00:00:00 2001 From: Prashanth Date: Fri, 10 Jan 2025 01:50:59 +0000 Subject: [PATCH] Add net/if header documentation and update CMake configuration and include it in index --- libc/docs/CMakeLists.txt | 2 ++ libc/docs/headers/index.rst | 1 + libc/utils/docgen/net/if.yaml | 13 +++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 libc/utils/docgen/net/if.yaml diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt index 5a3f8275bb932..a21d8e563626c 100644 --- a/libc/docs/CMakeLists.txt +++ b/libc/docs/CMakeLists.txt @@ -19,6 +19,7 @@ if (SPHINX_FOUND) file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/headers/arpa/" "${CMAKE_CURRENT_BINARY_DIR}/headers/sys/" + "${CMAKE_CURRENT_BINARY_DIR}/headers/net/" ) # Change sphinx to build from $build_dir/libc/docs/ rather than @@ -40,6 +41,7 @@ if (SPHINX_FOUND) float inttypes locale + net/if setjmp signal stdbit diff --git a/libc/docs/headers/index.rst b/libc/docs/headers/index.rst index 07ab6dd9b2674..b78ae86e968d9 100644 --- a/libc/docs/headers/index.rst +++ b/libc/docs/headers/index.rst @@ -14,6 +14,7 @@ Implementation Status inttypes locale math/index.rst + net/if search setjmp signal diff --git a/libc/utils/docgen/net/if.yaml b/libc/utils/docgen/net/if.yaml new file mode 100644 index 0000000000000..085d27b2bb94f --- /dev/null +++ b/libc/utils/docgen/net/if.yaml @@ -0,0 +1,13 @@ +functions: + if_freenameindex: + in-latest-posix: '' + if_indextoname: + in-latest-posix: '' + if_nameindex: + in-latest-posix: '' + if_nametoindex: + in-latest-posix: '' + +macros: + IF_NAMESIZE: + in-latest-posix: '' \ No newline at end of file