Skip to content

Conversation

StarOne01
Copy link
Contributor

These changes ensure that the sys/time header is documented properly with respect to the issue ( #122006 ) .

cc: @nickdesaulniers

@llvmbot llvmbot added the libc label Jan 15, 2025
@llvmbot
Copy link
Member

llvmbot commented Jan 15, 2025

@llvm/pr-subscribers-libc

Author: Prashanth (StarOne01)

Changes

These changes ensure that the sys/time header is documented properly with respect to the issue ( #122006 ) .

cc: @nickdesaulniers


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

3 Files Affected:

  • (modified) libc/docs/CMakeLists.txt (+1)
  • (modified) libc/docs/headers/index.rst (+1)
  • (added) libc/utils/docgen/sys/time.yaml (+9)
diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index fca8caec004f7d..dd49f968e7e274 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -55,6 +55,7 @@ if (SPHINX_FOUND)
       strings
       sys/mman
       sys/resource
+      sys/time
       threads
       uchar
       wchar
diff --git a/libc/docs/headers/index.rst b/libc/docs/headers/index.rst
index 67325e40dcbbdd..eeccc95891ebb2 100644
--- a/libc/docs/headers/index.rst
+++ b/libc/docs/headers/index.rst
@@ -28,6 +28,7 @@ Implementation Status
    strings
    sys/mman
    sys/resource
+   sys/time
    threads
    time
    uchar
diff --git a/libc/utils/docgen/sys/time.yaml b/libc/utils/docgen/sys/time.yaml
new file mode 100644
index 00000000000000..c6acc415af8344
--- /dev/null
+++ b/libc/utils/docgen/sys/time.yaml
@@ -0,0 +1,9 @@
+functions:
+  select:
+    in-latest-posix: ''
+  utimes:
+    in-latest-posix: ''
+
+macros:
+  FD_SETSIZE:
+    in-latest-posix: ''
\ No newline at end of file

Copy link
Member

@nickdesaulniers nickdesaulniers left a comment

Choose a reason for hiding this comment

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

thanks for the patch!

@nickdesaulniers nickdesaulniers merged commit 9f627cf into llvm:main Jan 17, 2025
12 checks passed
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