[libc-commits] [libc] [libc][docs] Updates implementation status for some preexisting docgen json files (PR #89281)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Thu Apr 18 11:07:09 PDT 2024
================
@@ -1,29 +1,56 @@
{
- "macros": [
- "SIG_DFL",
- "SIG_ERR",
- "SIG_IGN",
- "SIGABRT",
- "SIGFPE",
- "SIGILL",
- "SIGINT",
- "SIGSEGV",
- "SIGTERM"
- ],
+ "macros": {
+ "SIG_DFL": {
+ "defined": "7.14.3",
+ "implemented": false
+ },
+ "SIG_ERR": {
+ "defined": "7.14.3",
+ "implemented": false
+ },
+ "SIG_IGN": {
+ "defined": "7.14.3",
+ "implemented": false
+ },
+ "SIGABRT": {
+ "defined": "7.14.3",
+ "implemented": true
+ },
+ "SIGFPE": {
+ "defined": "7.14.3",
+ "implemented": true
+ },
+ "SIGILL": {
+ "defined": "7.14.3",
+ "implemented": true
+ },
+ "SIGINT": {
+ "defined": "7.14.3",
+ "implemented": true
+ },
+ "SIGSEGV": {
+ "defined": "7.14.3",
+ "implemented": true
+ },
+ "SIGTERM": {
+ "defined": "7.14.3",
+ "implemented": true
+ }
+ },
"functions": {
+ "signal": {
+ "defined": "7.14.1.1"
+ },
+ "raise": {
+ "defined": "7.14.2.1"
+ },
----------------
nickdesaulniers wrote:
I haven't decided yet how best to "sort" these.
I think we might even want to change the "schema" for defined because:
1. some things are only specified by POSIX, which we can hyperlink to.
2. some things are defined by multiple standards (such as the C language standard AND POSIX)
Due to 2, these should ultimately be a list, or perhaps another object with distinct fields for C standard section number and hyperlink to POSIX docs (or linux man pages, for other APIs even).
---
I guess orthogonal to that though, is how do we want to keep things "in order" in the config files, and/or in the generated rst files?
If I can't highlight rows in vim and simply `:sort`, then maintaining a sort manually is a PITA. So I don't think we need to maintain or require sorting the json configs.
I guess a lot of bloviating, but all that to ask what is your reasoning here for moving signal+raise and do we need to change the current sort here in this PR?
https://github.com/llvm/llvm-project/pull/89281
More information about the libc-commits
mailing list