Skip to content

Commit a4e2927

Browse files
[libc][docs] add c11 threads and uchar (#119250)
FWICT, these were the newly added headers for c11.
1 parent 42633cf commit a4e2927

File tree

5 files changed

+110
-16
lines changed

5 files changed

+110
-16
lines changed

libc/docs/headers/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ Implementation Status
1919
strings
2020
threads
2121
time
22+
uchar

libc/docs/headers/threads.rst

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ Macros
1818
- POSIX.1-2024 Standard Section
1919
* - ONCE_FLAG_INIT
2020
-
21-
- 7.28.1.3
21+
- 7.28.1
2222
-
2323
* - TSS_DTOR_ITERATIONS
2424
-
25-
- 7.28.1.3
25+
- 7.28.1
26+
-
27+
* - __STDC_NO_THREADS__
28+
-
29+
- 7.28.1
2630
-
2731

2832
Functions
@@ -67,27 +71,27 @@ Functions
6771
-
6872
* - mtx_destroy
6973
- |check|
70-
- 7.28.4.1
74+
- 7.28.4.2
7175
-
7276
* - mtx_init
7377
- |check|
74-
- 7.28.4.2
78+
- 7.28.4.3
7579
-
7680
* - mtx_lock
7781
- |check|
78-
- 7.28.4.3
82+
- 7.28.4.4
7983
-
8084
* - mtx_timedlock
8185
-
82-
- 7.28.4.4
86+
- 7.28.4.5
8387
-
8488
* - mtx_trylock
8589
-
86-
- 7.28.4.5
90+
- 7.28.4.6
8791
-
8892
* - mtx_unlock
8993
- |check|
90-
- 7.28.4.6
94+
- 7.28.4.7
9195
-
9296
* - thrd_create
9397
- |check|

libc/docs/headers/uchar.rst

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
.. include:: ../check.rst
2+
3+
=======
4+
uchar.h
5+
=======
6+
7+
Macros
8+
======
9+
10+
.. list-table::
11+
:widths: auto
12+
:align: center
13+
:header-rows: 1
14+
15+
* - Macro
16+
- Implemented
17+
- C23 Standard Section
18+
- POSIX.1-2024 Standard Section
19+
* - __STDC_VERSION_UCHAR_H__
20+
-
21+
- 7.30.1
22+
-
23+
24+
Functions
25+
=========
26+
27+
.. list-table::
28+
:widths: auto
29+
:align: center
30+
:header-rows: 1
31+
32+
* - Function
33+
- Implemented
34+
- C23 Standard Section
35+
- POSIX.1-2024 Standard Section
36+
* - c16rtomb
37+
-
38+
- 7.30.2.5
39+
-
40+
* - c32rtomb
41+
-
42+
- 7.30.2.7
43+
-
44+
* - c8rtomb
45+
-
46+
- 7.30.2.3
47+
-
48+
* - mbrtoc16
49+
-
50+
- 7.30.2.4
51+
-
52+
* - mbrtoc32
53+
-
54+
- 7.30.2.6
55+
-
56+
* - mbrtoc8
57+
-
58+
- 7.30.2.2
59+
-

libc/utils/docgen/threads.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"macros": {
3+
"__STDC_NO_THREADS__": {
4+
"c-definition": "7.28.1"
5+
},
36
"ONCE_FLAG_INIT": {
4-
"c-definition": "7.28.1.3"
7+
"c-definition": "7.28.1"
58
},
69
"TSS_DTOR_ITERATIONS": {
7-
"c-definition": "7.28.1.3"
10+
"c-definition": "7.28.1"
811
}
912
},
1013
"functions": {
@@ -30,22 +33,22 @@
3033
"c-definition": "7.28.3.6"
3134
},
3235
"mtx_destroy": {
33-
"c-definition": "7.28.4.1"
36+
"c-definition": "7.28.4.2"
3437
},
3538
"mtx_init": {
36-
"c-definition": "7.28.4.2"
39+
"c-definition": "7.28.4.3"
3740
},
3841
"mtx_lock": {
39-
"c-definition": "7.28.4.3"
42+
"c-definition": "7.28.4.4"
4043
},
4144
"mtx_timedlock": {
42-
"c-definition": "7.28.4.4"
45+
"c-definition": "7.28.4.5"
4346
},
4447
"mtx_trylock": {
45-
"c-definition": "7.28.4.5"
48+
"c-definition": "7.28.4.6"
4649
},
4750
"mtx_unlock": {
48-
"c-definition": "7.28.4.6"
51+
"c-definition": "7.28.4.7"
4952
},
5053
"thrd_create": {
5154
"c-definition": "7.28.5.1"

libc/utils/docgen/uchar.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"macros": {
3+
"__STDC_VERSION_UCHAR_H__": {
4+
"c-definition": "7.30.1"
5+
}
6+
},
7+
"functions": {
8+
"mbrtoc8": {
9+
"c-definition": "7.30.2.2"
10+
},
11+
"c8rtomb": {
12+
"c-definition": "7.30.2.3"
13+
},
14+
"mbrtoc16": {
15+
"c-definition": "7.30.2.4"
16+
},
17+
"c16rtomb": {
18+
"c-definition": "7.30.2.5"
19+
},
20+
"mbrtoc32": {
21+
"c-definition": "7.30.2.6"
22+
},
23+
"c32rtomb": {
24+
"c-definition": "7.30.2.7"
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)