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

via libc-commits libc-commits at lists.llvm.org
Tue Mar 18 08:06:47 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Prashanth (StarOne01)

<details>
<summary>Changes</summary>

These changes tracks `utsname.h` for the implementation status of functions and macros, with respect to the issue ( https://github.com/llvm/llvm-project/issues/122006 )  cc @<!-- -->lntue .

---
Full diff: https://github.com/llvm/llvm-project/pull/131817.diff


3 Files Affected:

- (modified) libc/docs/CMakeLists.txt (+1) 
- (modified) libc/docs/headers/index.rst (+1) 
- (added) libc/utils/docgen/sys/utsname.yaml (+3) 


``````````diff
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

``````````

</details>


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


More information about the libc-commits mailing list