[libc-commits] [libc] [libc][docs] Add sys/statvfs to documentation and YAML definitions (PR #126413)
via libc-commits
libc-commits at lists.llvm.org
Mon Feb 10 08:53:59 PST 2025
https://github.com/StarOne01 updated https://github.com/llvm/llvm-project/pull/126413
>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 1/2] [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
>From 6b0c4614d06bc63b80d186f1bf79e97cc3a27b62 Mon Sep 17 00:00:00 2001
From: Prashanth <TheStarOne01 at proton.me>
Date: Mon, 10 Feb 2025 22:23:50 +0530
Subject: [PATCH 2/2] [libc][docs] add newline to statvfs.yaml
---
libc/utils/docgen/sys/statvfs.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libc/utils/docgen/sys/statvfs.yaml b/libc/utils/docgen/sys/statvfs.yaml
index 43fb92166f8a02c..b13c3cb7203e5ad 100644
--- a/libc/utils/docgen/sys/statvfs.yaml
+++ b/libc/utils/docgen/sys/statvfs.yaml
@@ -8,4 +8,4 @@ macros:
ST_RDONLY:
in-latest-posix: ''
ST_NOSUID:
- in-latest-posix: ''
\ No newline at end of file
+ in-latest-posix: ''
More information about the libc-commits
mailing list