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

via libc-commits libc-commits at lists.llvm.org
Sun Feb 9 02:43:21 PST 2025


https://github.com/StarOne01 created https://github.com/llvm/llvm-project/pull/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 ) .

cc @nickdesaulniers

>From 00ec8488c35eab427c75c249e926855f33ece6da Mon Sep 17 00:00:00 2001
From: Prashanth <TheStarOne01 at proton.me>
Date: Sun, 9 Feb 2025 16:10:13 +0530
Subject: [PATCH] [libc][docs] Add sys/statvfs to documentation and YAML
 definitions

---
 libc/docs/CMakeLists.txt           |  1 +
 libc/docs/headers/index.rst        |  1 +
 libc/utils/docgen/sys/statvfs.yaml | 11 +++++++++++
 3 files changed, 13 insertions(+)
 create mode 100644 libc/utils/docgen/sys/statvfs.yaml

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..43fb92166f8a02c
--- /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: ''
\ No newline at end of file



More information about the libc-commits mailing list