Skip to content

[libc] added rest of yaml files for new headergen #96977

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions libc/newhdrgen/yaml/arpa_inet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
header: arpa-inet.h
macros: []
types:
- type_name: uint32_t
- type_name: uint16_t
- type_name: inttypes.h
enums: []
objects: []
functions:
- name: htonl
standards:
- POSIX
return_type: uint32_t
arguments:
- type: uint32_t
- name: htons
standards:
- POSIX
return_type: uint16_t
arguments:
- type: uint16_t
- name: ntohl
standards:
- POSIX
return_type: uint32_t
arguments:
- type: uint32_t
- name: ntohs
standards:
- POSIX
return_type: uint16_t
arguments:
- type: uint16_t
46 changes: 46 additions & 0 deletions libc/newhdrgen/yaml/dirent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
header: dirent.h
macros: []
types:
- type_name: struct_dirent
- type_name: DIR
- type_name: ino_t
enums: []
objects: []
functions:
- name: alphasort
standards:
- POSIX
return_type: int
arguments:
- type: const struct dirent **
- type: const struct dirent **
- name: closedir
standards:
- POSIX
return_type: int
arguments:
- type: DIR *
- name: dirfd
standards:
- POSIX
return_type: int
arguments:
- type: DIR *
- name: fdopendir
standards:
- POSIX
return_type: DIR *
arguments:
- type: int
- name: opendir
standards:
- POSIX
return_type: DIR *
arguments:
- type: const char *
- name: readdir
standards:
- POSIX
return_type: struct dirent *
arguments:
- type: DIR *
10 changes: 10 additions & 0 deletions libc/newhdrgen/yaml/errno.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
header: errno.h
standards:
- stdc
- Linux
- POSIX
macros: []
types: []
enums: []
objects: []
functions: []
40 changes: 40 additions & 0 deletions libc/newhdrgen/yaml/fcntl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
header: fcntl.h
macros: []
types:
- type_name: off_t
- type_name: mode_t
enums: []
objects: []
functions:
- name: creat
standards:
- POSIX
return_type: int
arguments:
- type: const char *
- type: mode_t
- name: fcntl
standards:
- POSIX
return_type: int
arguments:
- type: int
- type: int
- type: ...
- name: open
standards:
- POSIX
return_type: int
arguments:
- type: const char *
- type: int
- type: ...
- name: openat
standards:
- POSIX
return_type: int
arguments:
- type: int
- type: const char *
- type: int
- type: ...
8 changes: 8 additions & 0 deletions libc/newhdrgen/yaml/float.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
header: float.h
standards:
- stdc
macros: []
types: []
enums: []
objects: []
functions: []
36 changes: 36 additions & 0 deletions libc/newhdrgen/yaml/inttypes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
header: inttypes.h
macros:
types:
- type_name: imaxdiv_t
enums: []
objects: []
functions:
- name: imaxabs
standards:
- stdc
return_type: intmax_t
arguments:
- type: intmax_t
- name: imaxdiv
standards:
- stdc
return_type: imaxdiv_t
arguments:
- type: intmax_t
- type: intmax_t
- name: strtoimax
standards:
- stdc
return_type: intmax_t
arguments:
- type: const char *__restrict
- type: char * *__restrict
- type: int
- name: strtoumax
standards:
- stdc
return_type: uintmax_t
arguments:
- type: const char *__restrict
- type: char * *__restrict
- type: int
8 changes: 8 additions & 0 deletions libc/newhdrgen/yaml/limits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
header: limits.h
standards:
- stdc
macros: []
types: []
enums: []
objects: []
functions: []
23 changes: 23 additions & 0 deletions libc/newhdrgen/yaml/rpc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
header: gpu-rpc.h
macros: []
types: []
enums: []
objects: []
functions:
- name: rpc_host_call
standards:
- GPUExtensions
return_type: void
arguments:
- type: void *
- type: void *
- type: size_t
- name: rpc_fprintf
standards:
- GPUExtensions
return_type: int
arguments:
- type: ::FILE *__restrict
- type: const char *__restrict
- type: void *
- type: size_t
60 changes: 60 additions & 0 deletions libc/newhdrgen/yaml/search.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
header: search.h
macros: []
types:
- type_name: size_t
- type_name: struct_hsearch_data
- type_name: ENTRY
- type_name: ACTION
enums: []
objects: []
functions:
- name: hcreate
standards:
- POSIX
return_type: int
arguments:
- type: size_t
- name: hcreate_r
standards: GNUExtensions
return_type: int
arguments:
- type: size_t
- type: struct hsearch_data *
- name: hsearch
standards:
- POSIX
return_type: ENTRY *
arguments:
- type: ENTRY
- type: ACTION
- name: hsearch_r
standards: GNUExtensions
return_type: int
arguments:
- type: ENTRY
- type: ACTION
- type: ENTRY * *
- type: struct hsearch_data *
- name: hdestroy
standards: GNUExtensions
return_type: void
arguments: []
- name: hdestroy_r
standards:
- POSIX
return_type: void
arguments:
- type: struct hsearch_data *
- name: insque
standards:
- POSIX
return_type: void
arguments:
- type: void *
- type: void *
- name: remque
standards:
- POSIX
return_type: void
arguments:
- type: void *
20 changes: 20 additions & 0 deletions libc/newhdrgen/yaml/setjmp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
header: setjmp.h
macros: []
types:
- type_name: jmp_buf
enums: []
objects: []
functions:
- name: longjmp
standards:
- stdc
return_type: _Noreturn void
arguments:
- type: jmp_buf
- type: int
- name: setjmp
standards:
- stdc
return_type: int
arguments:
- type: jmp_buf
58 changes: 58 additions & 0 deletions libc/newhdrgen/yaml/spawn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
header: spawn.h
macros: []
types:
- type_name: posix_spawn_file_actions_t
- type_name: posix_spawnattr_t
- type_name: pid_t
- type_name: mode_t
enums: []
objects: []
functions:
- name: posix_spawn
standards:
- POSIX
return_type: int
arguments:
- type: pid_t *__restrict
- type: const char *__restrict
- type: posix_spawn_file_actions_t *
- type: posix_spawnattr_t *__restrict
- type: const char *__restrict *
- type: const char *__restrict *
- name: posix_spawn_file_actions_addclose
standards:
- POSIX
return_type: int
arguments:
- type: posix_spawn_file_actions_t *
- type: int
- name: posix_spawn_file_actions_adddup2
standards:
- POSIX
return_type: int
arguments:
- type: posix_spawn_file_actions_t *
- type: int
- type: int
- name: posix_spawn_file_actions_addopen
standards:
- POSIX
return_type: int
arguments:
- type: posix_spawn_file_actions_t *__restrict
- type: int
- type: const char *__restrict
- type: int
- type: mode_t
- name: posix_spawn_file_actions_destroy
standards:
- POSIX
return_type: int
arguments:
- type: posix_spawn_file_actions_t *
- name: posix_spawn_file_actions_init
standards:
- POSIX
return_type: int
arguments:
- type: posix_spawn_file_actions_t *
Loading
Loading