Skip to content

Commit 0419db6

Browse files
[libc][docgen] make note of sys/time.h interfaces removed in POSIX.1-2024 (#126612)
One of these days, we'll be able to specify time to a computer... Also, POSIX can remove stuff all they want. Folks probably will continue to depend on broken interfaces forever. Link: #124654 Link: https://austingroupbugs.net/view.php?id=1330
1 parent f6556af commit 0419db6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

libc/utils/docgen/docgen.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def check_api(header: Header, api: Dict):
5757
"c-definition",
5858
"in-latest-posix",
5959
"removed-in-posix-2008",
60+
"removed-in-posix-2024",
6061
]
6162

6263
# Validate macros
@@ -140,6 +141,10 @@ def print_functions_rst(header: Header, functions: Dict):
140141
print(
141142
f" - `removed in POSIX.1-2008 <https://pubs.opengroup.org/onlinepubs/007904875/functions/{name}.html>`__"
142143
)
144+
elif "removed-in-posix-2024" in functions[name]:
145+
print(
146+
f" - `removed in POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/functions/{name}.html>`__"
147+
)
143148
else:
144149
print(" -")
145150

libc/utils/docgen/sys/time.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ functions:
33
in-latest-posix: ''
44
utimes:
55
in-latest-posix: ''
6+
getitimer:
7+
removed-in-posix-2024: ''
8+
gettimeofday:
9+
removed-in-posix-2024: ''
10+
setitimer:
11+
removed-in-posix-2024: ''

0 commit comments

Comments
 (0)