Skip to content

Commit 371e924

Browse files
authored
[libc] added rest of yaml files for new headergen (#96977)
Added yaml files containing functions from only one standard. Also added one combined standard yaml file (errno.yaml). assert.yaml is still work in progress.
1 parent 15ad791 commit 371e924

33 files changed

+1676
-0
lines changed

libc/newhdrgen/yaml/arpa_inet.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
header: arpa-inet.h
2+
macros: []
3+
types:
4+
- type_name: uint32_t
5+
- type_name: uint16_t
6+
- type_name: inttypes.h
7+
enums: []
8+
objects: []
9+
functions:
10+
- name: htonl
11+
standards:
12+
- POSIX
13+
return_type: uint32_t
14+
arguments:
15+
- type: uint32_t
16+
- name: htons
17+
standards:
18+
- POSIX
19+
return_type: uint16_t
20+
arguments:
21+
- type: uint16_t
22+
- name: ntohl
23+
standards:
24+
- POSIX
25+
return_type: uint32_t
26+
arguments:
27+
- type: uint32_t
28+
- name: ntohs
29+
standards:
30+
- POSIX
31+
return_type: uint16_t
32+
arguments:
33+
- type: uint16_t

libc/newhdrgen/yaml/dirent.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
header: dirent.h
2+
macros: []
3+
types:
4+
- type_name: struct_dirent
5+
- type_name: DIR
6+
- type_name: ino_t
7+
enums: []
8+
objects: []
9+
functions:
10+
- name: alphasort
11+
standards:
12+
- POSIX
13+
return_type: int
14+
arguments:
15+
- type: const struct dirent **
16+
- type: const struct dirent **
17+
- name: closedir
18+
standards:
19+
- POSIX
20+
return_type: int
21+
arguments:
22+
- type: DIR *
23+
- name: dirfd
24+
standards:
25+
- POSIX
26+
return_type: int
27+
arguments:
28+
- type: DIR *
29+
- name: fdopendir
30+
standards:
31+
- POSIX
32+
return_type: DIR *
33+
arguments:
34+
- type: int
35+
- name: opendir
36+
standards:
37+
- POSIX
38+
return_type: DIR *
39+
arguments:
40+
- type: const char *
41+
- name: readdir
42+
standards:
43+
- POSIX
44+
return_type: struct dirent *
45+
arguments:
46+
- type: DIR *

libc/newhdrgen/yaml/errno.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
header: errno.h
2+
standards:
3+
- stdc
4+
- Linux
5+
- POSIX
6+
macros: []
7+
types: []
8+
enums: []
9+
objects: []
10+
functions: []

libc/newhdrgen/yaml/fcntl.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
header: fcntl.h
2+
macros: []
3+
types:
4+
- type_name: off_t
5+
- type_name: mode_t
6+
enums: []
7+
objects: []
8+
functions:
9+
- name: creat
10+
standards:
11+
- POSIX
12+
return_type: int
13+
arguments:
14+
- type: const char *
15+
- type: mode_t
16+
- name: fcntl
17+
standards:
18+
- POSIX
19+
return_type: int
20+
arguments:
21+
- type: int
22+
- type: int
23+
- type: ...
24+
- name: open
25+
standards:
26+
- POSIX
27+
return_type: int
28+
arguments:
29+
- type: const char *
30+
- type: int
31+
- type: ...
32+
- name: openat
33+
standards:
34+
- POSIX
35+
return_type: int
36+
arguments:
37+
- type: int
38+
- type: const char *
39+
- type: int
40+
- type: ...

libc/newhdrgen/yaml/float.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
header: float.h
2+
standards:
3+
- stdc
4+
macros: []
5+
types: []
6+
enums: []
7+
objects: []
8+
functions: []

libc/newhdrgen/yaml/inttypes.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
header: inttypes.h
2+
macros:
3+
types:
4+
- type_name: imaxdiv_t
5+
enums: []
6+
objects: []
7+
functions:
8+
- name: imaxabs
9+
standards:
10+
- stdc
11+
return_type: intmax_t
12+
arguments:
13+
- type: intmax_t
14+
- name: imaxdiv
15+
standards:
16+
- stdc
17+
return_type: imaxdiv_t
18+
arguments:
19+
- type: intmax_t
20+
- type: intmax_t
21+
- name: strtoimax
22+
standards:
23+
- stdc
24+
return_type: intmax_t
25+
arguments:
26+
- type: const char *__restrict
27+
- type: char * *__restrict
28+
- type: int
29+
- name: strtoumax
30+
standards:
31+
- stdc
32+
return_type: uintmax_t
33+
arguments:
34+
- type: const char *__restrict
35+
- type: char * *__restrict
36+
- type: int

libc/newhdrgen/yaml/limits.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
header: limits.h
2+
standards:
3+
- stdc
4+
macros: []
5+
types: []
6+
enums: []
7+
objects: []
8+
functions: []

libc/newhdrgen/yaml/rpc.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
header: gpu-rpc.h
2+
macros: []
3+
types: []
4+
enums: []
5+
objects: []
6+
functions:
7+
- name: rpc_host_call
8+
standards:
9+
- GPUExtensions
10+
return_type: void
11+
arguments:
12+
- type: void *
13+
- type: void *
14+
- type: size_t
15+
- name: rpc_fprintf
16+
standards:
17+
- GPUExtensions
18+
return_type: int
19+
arguments:
20+
- type: ::FILE *__restrict
21+
- type: const char *__restrict
22+
- type: void *
23+
- type: size_t

libc/newhdrgen/yaml/search.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
header: search.h
2+
macros: []
3+
types:
4+
- type_name: size_t
5+
- type_name: struct_hsearch_data
6+
- type_name: ENTRY
7+
- type_name: ACTION
8+
enums: []
9+
objects: []
10+
functions:
11+
- name: hcreate
12+
standards:
13+
- POSIX
14+
return_type: int
15+
arguments:
16+
- type: size_t
17+
- name: hcreate_r
18+
standards: GNUExtensions
19+
return_type: int
20+
arguments:
21+
- type: size_t
22+
- type: struct hsearch_data *
23+
- name: hsearch
24+
standards:
25+
- POSIX
26+
return_type: ENTRY *
27+
arguments:
28+
- type: ENTRY
29+
- type: ACTION
30+
- name: hsearch_r
31+
standards: GNUExtensions
32+
return_type: int
33+
arguments:
34+
- type: ENTRY
35+
- type: ACTION
36+
- type: ENTRY * *
37+
- type: struct hsearch_data *
38+
- name: hdestroy
39+
standards: GNUExtensions
40+
return_type: void
41+
arguments: []
42+
- name: hdestroy_r
43+
standards:
44+
- POSIX
45+
return_type: void
46+
arguments:
47+
- type: struct hsearch_data *
48+
- name: insque
49+
standards:
50+
- POSIX
51+
return_type: void
52+
arguments:
53+
- type: void *
54+
- type: void *
55+
- name: remque
56+
standards:
57+
- POSIX
58+
return_type: void
59+
arguments:
60+
- type: void *

libc/newhdrgen/yaml/setjmp.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
header: setjmp.h
2+
macros: []
3+
types:
4+
- type_name: jmp_buf
5+
enums: []
6+
objects: []
7+
functions:
8+
- name: longjmp
9+
standards:
10+
- stdc
11+
return_type: _Noreturn void
12+
arguments:
13+
- type: jmp_buf
14+
- type: int
15+
- name: setjmp
16+
standards:
17+
- stdc
18+
return_type: int
19+
arguments:
20+
- type: jmp_buf

libc/newhdrgen/yaml/spawn.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
header: spawn.h
2+
macros: []
3+
types:
4+
- type_name: posix_spawn_file_actions_t
5+
- type_name: posix_spawnattr_t
6+
- type_name: pid_t
7+
- type_name: mode_t
8+
enums: []
9+
objects: []
10+
functions:
11+
- name: posix_spawn
12+
standards:
13+
- POSIX
14+
return_type: int
15+
arguments:
16+
- type: pid_t *__restrict
17+
- type: const char *__restrict
18+
- type: posix_spawn_file_actions_t *
19+
- type: posix_spawnattr_t *__restrict
20+
- type: const char *__restrict *
21+
- type: const char *__restrict *
22+
- name: posix_spawn_file_actions_addclose
23+
standards:
24+
- POSIX
25+
return_type: int
26+
arguments:
27+
- type: posix_spawn_file_actions_t *
28+
- type: int
29+
- name: posix_spawn_file_actions_adddup2
30+
standards:
31+
- POSIX
32+
return_type: int
33+
arguments:
34+
- type: posix_spawn_file_actions_t *
35+
- type: int
36+
- type: int
37+
- name: posix_spawn_file_actions_addopen
38+
standards:
39+
- POSIX
40+
return_type: int
41+
arguments:
42+
- type: posix_spawn_file_actions_t *__restrict
43+
- type: int
44+
- type: const char *__restrict
45+
- type: int
46+
- type: mode_t
47+
- name: posix_spawn_file_actions_destroy
48+
standards:
49+
- POSIX
50+
return_type: int
51+
arguments:
52+
- type: posix_spawn_file_actions_t *
53+
- name: posix_spawn_file_actions_init
54+
standards:
55+
- POSIX
56+
return_type: int
57+
arguments:
58+
- type: posix_spawn_file_actions_t *

0 commit comments

Comments
 (0)