Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 18, 2025

Conversation

StarOne01
Copy link
Contributor

@StarOne01 StarOne01 commented Mar 18, 2025

These changes tracks utsname.h for the implementation status of functions and macros, with respect to the issue ( #122006 ).

@llvmbot llvmbot added the libc label Mar 18, 2025
@llvmbot
Copy link
Member

llvmbot commented Mar 18, 2025

@llvm/pr-subscribers-libc

Author: Prashanth (StarOne01)

Changes

These changes tracks utsname.h for the implementation status of functions and macros, with respect to the issue ( #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 --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

@StarOne01 StarOne01 changed the title Add sys/utsname header and documentation for uname function [libc][docs] Add sys/utsname header and documentation for uname function Mar 18, 2025
@lntue lntue self-requested a review March 18, 2025 15:59
@@ -0,0 +1,3 @@
functions:
uname:
in-latest-posix: ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: newline at the end of file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yee, got it. but what's "nit"?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, need to keep things simple atleast after now (pun intended).

@lntue lntue merged commit 592a3ba into llvm:main Mar 18, 2025
15 of 17 checks passed
@StarOne01 StarOne01 deleted the uname branch March 19, 2025 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants