[libc-commits] [libc] [libc][docs] Add sys/time page to the status of implementations docs (PR #123000)

via libc-commits libc-commits at lists.llvm.org
Wed Jan 15 18:15:19 PST 2025


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

>From 5c3d815d3c931432b352990702266c7ba45b9f3b Mon Sep 17 00:00:00 2001
From: Prashanth <TheStarOne01 at proton.me>
Date: Wed, 15 Jan 2025 02:34:37 +0000
Subject: [PATCH 1/2] Add sys/time documentation and YAML configuration

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

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

>From 13462b6c3d6f33c2189a77e7e91310bbd66f84e9 Mon Sep 17 00:00:00 2001
From: Prashanth <TheStarOne01 at proton.me>
Date: Thu, 16 Jan 2025 07:43:43 +0530
Subject: [PATCH 2/2] Remove macro documentation from sys/time.yaml

---
 libc/utils/docgen/sys/time.yaml | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libc/utils/docgen/sys/time.yaml b/libc/utils/docgen/sys/time.yaml
index c6acc415af8344..a1d19c3fc636cd 100644
--- a/libc/utils/docgen/sys/time.yaml
+++ b/libc/utils/docgen/sys/time.yaml
@@ -2,8 +2,4 @@ functions:
   select:
     in-latest-posix: ''
   utimes:
-    in-latest-posix: ''
-
-macros:
-  FD_SETSIZE:
     in-latest-posix: ''
\ No newline at end of file



More information about the libc-commits mailing list