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

via libc-commits libc-commits at lists.llvm.org
Tue Mar 18 13:22:04 PDT 2025


Author: Prashanth
Date: 2025-03-18T16:22:01-04:00
New Revision: 592a3ba125e9ff6fccc71084e325c02119523869

URL: https://github.com/llvm/llvm-project/commit/592a3ba125e9ff6fccc71084e325c02119523869
DIFF: https://github.com/llvm/llvm-project/commit/592a3ba125e9ff6fccc71084e325c02119523869.diff

LOG: [libc][docs] Add sys/utsname header and documentation for uname function (#131817)

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 ).

Added: 
    libc/utils/docgen/sys/utsname.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 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..ef778ca5640b4
--- /dev/null
+++ b/libc/utils/docgen/sys/utsname.yaml
@@ -0,0 +1,3 @@
+functions:
+  uname:
+    in-latest-posix: ''


        


More information about the libc-commits mailing list