[libc-commits] [libc] 6a8439b - [libc][docs] Add sys/statvfs to documentation and YAML definitions (#126413)

via libc-commits libc-commits at lists.llvm.org
Mon Feb 10 08:58:51 PST 2025


Author: Prashanth
Date: 2025-02-10T08:58:46-08:00
New Revision: 6a8439b5933e71d6dc93d5bdc921340efaa9522f

URL: https://github.com/llvm/llvm-project/commit/6a8439b5933e71d6dc93d5bdc921340efaa9522f
DIFF: https://github.com/llvm/llvm-project/commit/6a8439b5933e71d6dc93d5bdc921340efaa9522f.diff

LOG: [libc][docs] Add sys/statvfs to documentation and YAML definitions (#126413)

These changes ensure that the sys/statvfs header is documented properly
with respect to the issue (
https://github.com/llvm/llvm-project/issues/122006 ) .

Added: 
    libc/utils/docgen/sys/statvfs.yaml

Modified: 
    libc/docs/CMakeLists.txt
    libc/docs/headers/index.rst

Removed: 
    


################################################################################
diff  --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index 97f27fe6a6e0c6b..4ef0e920de683d3 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -59,6 +59,7 @@ if (SPHINX_FOUND)
       sys/mman
       sys/resource
       sys/stat
+      sys/statvfs
       sys/time
       sys/wait
       termios

diff  --git a/libc/docs/headers/index.rst b/libc/docs/headers/index.rst
index 745b6f44750dbcf..3dc30ef90a8e4cb 100644
--- a/libc/docs/headers/index.rst
+++ b/libc/docs/headers/index.rst
@@ -30,6 +30,7 @@ Implementation Status
    sys/mman
    sys/resource
    sys/stat
+   sys/statvfs
    sys/time
    sys/wait
    termios

diff  --git a/libc/utils/docgen/sys/statvfs.yaml b/libc/utils/docgen/sys/statvfs.yaml
new file mode 100644
index 000000000000000..b13c3cb7203e5ad
--- /dev/null
+++ b/libc/utils/docgen/sys/statvfs.yaml
@@ -0,0 +1,11 @@
+functions:
+  fstatvfs:
+    in-latest-posix: ''
+  statvfs:
+    in-latest-posix: ''
+
+macros:
+  ST_RDONLY:
+    in-latest-posix: ''
+  ST_NOSUID:
+    in-latest-posix: ''


        


More information about the libc-commits mailing list