Skip to content

Commit

Permalink
[libc][docs] add c11 threads and uchar (llvm#119250)
Browse files Browse the repository at this point in the history
FWICT, these were the newly added headers for c11.
  • Loading branch information
nickdesaulniers authored and broxigarchen committed Dec 10, 2024
1 parent affad1b commit 6c86210
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 16 deletions.
1 change: 1 addition & 0 deletions libc/docs/headers/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ Implementation Status
strings
threads
time
uchar
20 changes: 12 additions & 8 deletions libc/docs/headers/threads.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ Macros
- POSIX.1-2024 Standard Section
* - ONCE_FLAG_INIT
-
- 7.28.1.3
- 7.28.1
-
* - TSS_DTOR_ITERATIONS
-
- 7.28.1.3
- 7.28.1
-
* - __STDC_NO_THREADS__
-
- 7.28.1
-

Functions
Expand Down Expand Up @@ -67,27 +71,27 @@ Functions
-
* - mtx_destroy
- |check|
- 7.28.4.1
- 7.28.4.2
-
* - mtx_init
- |check|
- 7.28.4.2
- 7.28.4.3
-
* - mtx_lock
- |check|
- 7.28.4.3
- 7.28.4.4
-
* - mtx_timedlock
-
- 7.28.4.4
- 7.28.4.5
-
* - mtx_trylock
-
- 7.28.4.5
- 7.28.4.6
-
* - mtx_unlock
- |check|
- 7.28.4.6
- 7.28.4.7
-
* - thrd_create
- |check|
Expand Down
59 changes: 59 additions & 0 deletions libc/docs/headers/uchar.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
.. include:: ../check.rst

=======
uchar.h
=======

Macros
======

.. list-table::
:widths: auto
:align: center
:header-rows: 1

* - Macro
- Implemented
- C23 Standard Section
- POSIX.1-2024 Standard Section
* - __STDC_VERSION_UCHAR_H__
-
- 7.30.1
-

Functions
=========

.. list-table::
:widths: auto
:align: center
:header-rows: 1

* - Function
- Implemented
- C23 Standard Section
- POSIX.1-2024 Standard Section
* - c16rtomb
-
- 7.30.2.5
-
* - c32rtomb
-
- 7.30.2.7
-
* - c8rtomb
-
- 7.30.2.3
-
* - mbrtoc16
-
- 7.30.2.4
-
* - mbrtoc32
-
- 7.30.2.6
-
* - mbrtoc8
-
- 7.30.2.2
-
19 changes: 11 additions & 8 deletions libc/utils/docgen/threads.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"macros": {
"__STDC_NO_THREADS__": {
"c-definition": "7.28.1"
},
"ONCE_FLAG_INIT": {
"c-definition": "7.28.1.3"
"c-definition": "7.28.1"
},
"TSS_DTOR_ITERATIONS": {
"c-definition": "7.28.1.3"
"c-definition": "7.28.1"
}
},
"functions": {
Expand All @@ -30,22 +33,22 @@
"c-definition": "7.28.3.6"
},
"mtx_destroy": {
"c-definition": "7.28.4.1"
"c-definition": "7.28.4.2"
},
"mtx_init": {
"c-definition": "7.28.4.2"
"c-definition": "7.28.4.3"
},
"mtx_lock": {
"c-definition": "7.28.4.3"
"c-definition": "7.28.4.4"
},
"mtx_timedlock": {
"c-definition": "7.28.4.4"
"c-definition": "7.28.4.5"
},
"mtx_trylock": {
"c-definition": "7.28.4.5"
"c-definition": "7.28.4.6"
},
"mtx_unlock": {
"c-definition": "7.28.4.6"
"c-definition": "7.28.4.7"
},
"thrd_create": {
"c-definition": "7.28.5.1"
Expand Down
27 changes: 27 additions & 0 deletions libc/utils/docgen/uchar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"macros": {
"__STDC_VERSION_UCHAR_H__": {
"c-definition": "7.30.1"
}
},
"functions": {
"mbrtoc8": {
"c-definition": "7.30.2.2"
},
"c8rtomb": {
"c-definition": "7.30.2.3"
},
"mbrtoc16": {
"c-definition": "7.30.2.4"
},
"c16rtomb": {
"c-definition": "7.30.2.5"
},
"mbrtoc32": {
"c-definition": "7.30.2.6"
},
"c32rtomb": {
"c-definition": "7.30.2.7"
}
}
}

0 comments on commit 6c86210

Please sign in to comment.