[libc-commits] [libc] [libc][docs] Add sys/utsname header and documentation for uname function (PR #131817)

via libc-commits libc-commits at lists.llvm.org
Tue Mar 18 09:07:24 PDT 2025


https://github.com/StarOne01 updated https://github.com/llvm/llvm-project/pull/131817

>From 7acf718137f9b62c03693a075fd6a80a36c7137b Mon Sep 17 00:00:00 2001
From: Prashanth <TheStarOne01 at proton.me>
Date: Tue, 18 Mar 2025 20:30:07 +0530
Subject: [PATCH 1/2] Add sys/utsname header and documentation for uname
 function

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

diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index fb72af02339e1..ba3751f8df8f5 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -67,6 +67,7 @@ if (SPHINX_FOUND)
       threads
       uchar
       unistd
+      sys/utsname
       wchar
       wctype
     )
diff --git a/libc/docs/headers/index.rst b/libc/docs/headers/index.rst
index b5f1e4dae2e7a..b2f47bda534a6 100644
--- a/libc/docs/headers/index.rst
+++ b/libc/docs/headers/index.rst
@@ -40,6 +40,7 @@ Implementation Status
    time
    uchar
    unistd
+   sys/utsname
    wchar
    wctype
 ..
diff --git a/libc/utils/docgen/sys/utsname.yaml b/libc/utils/docgen/sys/utsname.yaml
new file mode 100644
index 0000000000000..1ae12970cf586
--- /dev/null
+++ b/libc/utils/docgen/sys/utsname.yaml
@@ -0,0 +1,3 @@
+functions:
+  uname:
+    in-latest-posix: ''
\ No newline at end of file

>From 86a2c6dd1e655a6937009f134d127035a883226c Mon Sep 17 00:00:00 2001
From: Prashanth <TheStarOne01 at proton.me>
Date: Tue, 18 Mar 2025 21:37:13 +0530
Subject: [PATCH 2/2] [libc][docs] at new line in utsname.yaml

---
 libc/utils/docgen/sys/utsname.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/utils/docgen/sys/utsname.yaml b/libc/utils/docgen/sys/utsname.yaml
index 1ae12970cf586..ef778ca5640b4 100644
--- a/libc/utils/docgen/sys/utsname.yaml
+++ b/libc/utils/docgen/sys/utsname.yaml
@@ -1,3 +1,3 @@
 functions:
   uname:
-    in-latest-posix: ''
\ No newline at end of file
+    in-latest-posix: ''



More information about the libc-commits mailing list