Skip to content

[libc] corrected yaml files in newhdrgen #98069

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 3 commits into from
Jul 8, 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
2 changes: 1 addition & 1 deletion libc/newhdrgen/class_implementation/classes/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(
]
self.standards = standards
self.guard = guard
self.attributes = attributes or []
self.attributes = attributes or ""

def __str__(self):
attributes_str = self.attributes
Expand Down
2 changes: 1 addition & 1 deletion libc/newhdrgen/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def setUp(self):
)

self.maxDiff = None
# Adjust based on your directory structure such as being in build etc.

self.source_dir = Path(__file__).resolve().parent.parent.parent.parent

def run_script(self, yaml_file, h_def_file, output_dir):
Expand Down
2 changes: 1 addition & 1 deletion libc/newhdrgen/yaml/inttypes.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
header: inttypes.h
macros:
macros: []
types:
- type_name: imaxdiv_t
enums: []
Expand Down
48 changes: 24 additions & 24 deletions libc/newhdrgen/yaml/pthread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,23 @@ functions:
- POSIX
return_type: int
arguments:
- type: const pthread_attr_t * __restrict
- type: size_t * __restrict
- type: const pthread_attr_t *__restrict
- type: size_t *__restrict
- name: pthread_attr_getstack
standards:
- POSIX
return_type: int
arguments:
- type: const pthread_attr_t * __restrict
- type: void * * __restrict
- type: size_t * __restrict
- type: const pthread_attr_t *__restrict
- type: void **__restrict
- type: size_t *__restrict
- name: pthread_attr_getstacksize
standards:
- POSIX
return_type: int
arguments:
- type: const pthread_attr_t * __restrict
- type: size_t * __restrict
- type: const pthread_attr_t *__restrict
- type: size_t *__restrict
- name: pthread_attr_setdetachstate
standards:
- POSIX
Expand Down Expand Up @@ -130,15 +130,15 @@ functions:
- POSIX
return_type: int
arguments:
- type: const pthread_condattr_t * __restrict
- type: const pthread_condattr_t *__restrict
- type: clockid_t * __restrict
- name: pthread_condattr_getpshared
standards:
- POSIX
return_type: int
arguments:
- type: const pthread_condattr_t * __restrict
- type: int * __restrict
- type: const pthread_condattr_t *__restrict
- type: int *__restrict
- name: pthread_condattr_init
standards:
- POSIX
Expand All @@ -164,8 +164,8 @@ functions:
- POSIX
return_type: int
arguments:
- type: pthread_t * __restrict
- type: const pthread_attr_t * __restrict
- type: pthread_t *__restrict
- type: const pthread_attr_t *__restrict
- type: __pthread_start_t
- type: void *
- name: pthread_detach
Expand Down Expand Up @@ -207,7 +207,7 @@ functions:
return_type: int
arguments:
- type: pthread_t
- type: void * *
- type: void **
- name: pthread_key_create
standards:
- POSIX
Expand Down Expand Up @@ -244,8 +244,8 @@ functions:
- POSIX
return_type: int
arguments:
- type: pthread_mutex_t * __restrict
- type: const pthread_mutexattr_t * __restrict
- type: pthread_mutex_t *__restrict
- type: const pthread_mutexattr_t *__restrict
- name: pthread_mutex_lock
standards:
- POSIX
Expand Down Expand Up @@ -275,42 +275,42 @@ functions:
- POSIX
return_type: int
arguments:
- type: const pthread_mutexattr_t * __restrict
- type: int * __restrict
- type: const pthread_mutexattr_t *__restrict
- type: int *__restrict
- name: pthread_mutexattr_getrobust
standards:
- POSIX
return_type: int
arguments:
- type: const pthread_mutexattr_t * __restrict
- type: int * __restrict
- type: const pthread_mutexattr_t *__restrict
- type: int *__restrict
- name: pthread_mutexattr_gettype
standards:
- POSIX
return_type: int
arguments:
- type: const pthread_mutexattr_t * __restrict
- type: int * __restrict
- type: const pthread_mutexattr_t *__restrict
- type: int *__restrict
- name: pthread_mutexattr_setpshared
standards:
- POSIX
return_type: int
arguments:
- type: pthread_mutexattr_t * __restrict
- type: pthread_mutexattr_t *__restrict
- type: int
- name: pthread_mutexattr_setrobust
standards:
- POSIX
return_type: int
arguments:
- type: pthread_mutexattr_t * __restrict
- type: pthread_mutexattr_t *__restrict
- type: int
- name: pthread_mutexattr_settype
standards:
- POSIX
return_type: int
arguments:
- type: pthread_mutexattr_t * __restrict
- type: pthread_mutexattr_t *__restrict
- type: int
- name: pthread_once
standards:
Expand Down
3 changes: 2 additions & 1 deletion libc/newhdrgen/yaml/sched.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ functions:
standards:
- POSIX
return_type: int
arguments: []
arguments:
- type: void
- name: __sched_getcpucount
standards:
- llvm_libc_ext
Expand Down
16 changes: 7 additions & 9 deletions libc/newhdrgen/yaml/signal.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
header: signal.h
macros:
- macro_name: __need_size_t
macro_value: null
macros: []
types:
- type_name: pid_t
- type_name: stack_t
Expand Down Expand Up @@ -32,15 +30,15 @@ functions:
return_type: int
arguments:
- type: int
- type: const struct sigaction * __restrict
- type: struct sigaction * __restrict
- type: const struct sigaction *__restrict
- type: struct sigaction *__restrict
- name: sigaltstack
standards:
- POSIX
return_type: int
arguments:
- type: const stack_t * __restrict
- type: stack_t * __restrict
- type: const stack_t *__restrict
- type: stack_t *__restrict
- name: sigdelset
standards:
- POSIX
Expand All @@ -67,8 +65,8 @@ functions:
return_type: int
arguments:
- type: int
- type: const sigset_t * __restrict
- type: sigset_t * __restrict
- type: const sigset_t *__restrict
- type: sigset_t *__restrict
- name: sigfillset
standards:
- POSIX
Expand Down
Loading
Loading