File tree Expand file tree Collapse file tree 4 files changed +82
-4
lines changed Expand file tree Collapse file tree 4 files changed +82
-4
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ stages there is no ABI stability in any form.
70
70
libc_search
71
71
c23
72
72
ctype
73
+ signal
73
74
74
75
.. toctree ::
75
76
:hidden:
Original file line number Diff line number Diff line change
1
+ .. include :: check.rst
2
+
3
+ signal.h Functions
4
+ ==================
5
+
6
+ .. list-table ::
7
+ :widths: auto
8
+ :align: center
9
+ :header-rows: 1
10
+
11
+ * - Function
12
+ - Implemented
13
+ - Standard
14
+ * - kill
15
+ - |check |
16
+ -
17
+ * - raise
18
+ - |check |
19
+ - 7.14.2.1
20
+ * - sigaction
21
+ - |check |
22
+ -
23
+ * - sigaddset
24
+ - |check |
25
+ -
26
+ * - sigaltstack
27
+ - |check |
28
+ -
29
+ * - sigdelset
30
+ - |check |
31
+ -
32
+ * - sigemptyset
33
+ - |check |
34
+ -
35
+ * - sigfillset
36
+ - |check |
37
+ -
38
+ * - signal
39
+ - |check |
40
+ - 7.14.1.1
41
+ * - sigprocmask
42
+ - |check |
43
+ -
Original file line number Diff line number Diff line change @@ -23,12 +23,17 @@ def load_api(hname: str) -> Dict:
23
23
# TODO: we may need to get more sophisticated for less generic implementations.
24
24
# Does libc/src/{hname minus .h suffix}/{fname}.cpp exist?
25
25
def is_implemented (hname : str , fname : str ) -> bool :
26
- return Path (
26
+ path = Path (
27
27
Path (__file__ ).parent .parent .parent ,
28
28
"src" ,
29
- hname .rstrip (".h" ),
30
- fname + ".cpp" ,
31
- ).exists ()
29
+ hname .rstrip (".h" )
30
+ )
31
+ # Recursively search for the target source file in the subdirectories under
32
+ # libc/src/{hname}.
33
+ for _ in path .glob ("**/" + fname + ".cpp" ):
34
+ return True
35
+
36
+ return False
32
37
33
38
34
39
def print_functions (header : str , functions : Dict ):
Original file line number Diff line number Diff line change
1
+ {
2
+ "macros" : [
3
+ " SIG_DFL" ,
4
+ " SIG_ERR" ,
5
+ " SIG_IGN" ,
6
+ " SIGABRT" ,
7
+ " SIGFPE" ,
8
+ " SIGILL" ,
9
+ " SIGINT" ,
10
+ " SIGSEGV" ,
11
+ " SIGTERM"
12
+ ],
13
+ "functions" : {
14
+ "kill" : null ,
15
+ "sigaction" : null ,
16
+ "sigaddset" : null ,
17
+ "sigaltstack" : null ,
18
+ "sigdelset" : null ,
19
+ "sigemptyset" : null ,
20
+ "sigfillset" : null ,
21
+ "sigprocmask" : null ,
22
+ "signal" : {
23
+ "defined" : " 7.14.1.1"
24
+ },
25
+ "raise" : {
26
+ "defined" : " 7.14.2.1"
27
+ }
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments