Skip to content

Commit b6cbd01

Browse files
authored
[libc][newhdrgen]sorted function names in yaml (#102544)
1 parent 6b77531 commit b6cbd01

25 files changed

+2102
-2061
lines changed

libc/docs/dev/header_generation.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ To add through the command line:
6969
generated header file with the new addition in the newhdrgen directory to
7070
examine.
7171

72+
If you want to sort the functions alphabetically you can check out libc/newhdrgen/yaml_functions_sorted.py.
73+
7274

7375
Testing
7476
-------

libc/newhdrgen/yaml/ctype.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ functions:
1616
return_type: int
1717
arguments:
1818
- type: int
19+
- name: isascii
20+
standards:
21+
- POSIX
22+
return_type: int
23+
arguments:
24+
- type: int
1925
- name: isblank
2026
standards:
2127
- stdc
@@ -76,28 +82,22 @@ functions:
7682
return_type: int
7783
arguments:
7884
- type: int
79-
- name: tolower
85+
- name: toascii
8086
standards:
81-
- stdc
87+
- GNUExtensions
8288
return_type: int
8389
arguments:
8490
- type: int
85-
- name: toupper
91+
- name: tolower
8692
standards:
8793
- stdc
8894
return_type: int
8995
arguments:
9096
- type: int
91-
functions:
92-
- name: isascii
93-
standards:
94-
- POSIX
95-
return_type: int
96-
arguments:
97-
- type: int
98-
- name: toascii
97+
- name: toupper
9998
standards:
100-
- GNUExtensions
99+
- stdc
101100
return_type: int
102101
arguments:
103102
- type: int
103+
functions: null

libc/newhdrgen/yaml/fcntl.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ functions:
2020
arguments:
2121
- type: int
2222
- type: int
23-
- type: ...
23+
- type: '...'
2424
- name: open
2525
standards:
2626
- POSIX
2727
return_type: int
2828
arguments:
2929
- type: const char *
3030
- type: int
31-
- type: ...
31+
- type: '...'
3232
- name: openat
3333
standards:
3434
- POSIX
@@ -37,4 +37,4 @@ functions:
3737
- type: int
3838
- type: const char *
3939
- type: int
40-
- type: ...
40+
- type: '...'

libc/newhdrgen/yaml/fenv.yaml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,55 +12,61 @@ functions:
1212
return_type: int
1313
arguments:
1414
- type: int
15-
- name: fetestexcept
15+
- name: fedisableexcept
1616
standards:
17-
- stdc
17+
- GNUExtensions
1818
return_type: int
1919
arguments:
2020
- type: int
21-
- name: fetestexceptflag
21+
guard: null
22+
- name: feenableexcept
2223
standards:
23-
- stdc
24+
- GNUExtensions
2425
return_type: int
2526
arguments:
26-
- type: const fexcept_t *
2727
- type: int
28-
- name: feraiseexcept
28+
attributes: []
29+
- name: fegetenv
2930
standards:
3031
- stdc
3132
return_type: int
3233
arguments:
33-
- type: int
34-
- name: fesetround
34+
- type: fenv_t *
35+
- name: fegetexcept
36+
standards:
37+
- GNUExtensions
38+
return_type: int
39+
arguments: []
40+
- name: fegetexceptflag
3541
standards:
3642
- stdc
3743
return_type: int
3844
arguments:
45+
- type: fexcept_t *
3946
- type: int
4047
- name: fegetround
4148
standards:
4249
- stdc
4350
return_type: int
4451
arguments: []
45-
- name: fegetenv
52+
- name: feholdexcept
4653
standards:
4754
- stdc
4855
return_type: int
4956
arguments:
5057
- type: fenv_t *
51-
- name: fesetenv
58+
- name: feraiseexcept
5259
standards:
5360
- stdc
5461
return_type: int
5562
arguments:
56-
- type: const fenv_t *
57-
- name: fegetexceptflag
63+
- type: int
64+
- name: fesetenv
5865
standards:
5966
- stdc
6067
return_type: int
6168
arguments:
62-
- type: fexcept_t *
63-
- type: int
69+
- type: const fenv_t *
6470
- name: fesetexcept
6571
standards:
6672
- stdc
@@ -74,34 +80,28 @@ functions:
7480
arguments:
7581
- type: const fexcept_t *
7682
- type: int
77-
- name: feholdexcept
83+
- name: fesetround
7884
standards:
7985
- stdc
8086
return_type: int
8187
arguments:
82-
- type: fenv_t *
83-
- name: feupdateenv
88+
- type: int
89+
- name: fetestexcept
8490
standards:
8591
- stdc
8692
return_type: int
87-
arguments:
88-
- type: const fenv_t *
89-
- name: fedisableexcept
90-
standards:
91-
- GNUExtensions
92-
return_type: int
9393
arguments:
9494
- type: int
95-
guard: null
96-
- name: feenableexcept
95+
- name: fetestexceptflag
9796
standards:
98-
- GNUExtensions
97+
- stdc
9998
return_type: int
10099
arguments:
100+
- type: const fexcept_t *
101101
- type: int
102-
attributes: []
103-
- name: fegetexcept
102+
- name: feupdateenv
104103
standards:
105-
- GNUExtensions
104+
- stdc
106105
return_type: int
107-
arguments: []
106+
arguments:
107+
- type: const fenv_t *

libc/newhdrgen/yaml/gpu/rpc.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ types: []
44
enums: []
55
objects: []
66
functions:
7-
- name: rpc_host_call
7+
- name: rpc_fprintf
88
standards:
99
- GPUExtensions
10-
return_type: void
10+
return_type: int
1111
arguments:
12-
- type: void *
12+
- type: ::FILE *__restrict
13+
- type: const char *__restrict
1314
- type: void *
1415
- type: size_t
15-
- name: rpc_fprintf
16+
- name: rpc_host_call
1617
standards:
1718
- GPUExtensions
18-
return_type: int
19+
return_type: void
1920
arguments:
20-
- type: ::FILE *__restrict
21-
- type: const char *__restrict
21+
- type: void *
2222
- type: void *
2323
- type: size_t

0 commit comments

Comments
 (0)