Skip to content

Commit

Permalink
[libc] final edits to newheadergen yaml files (llvm#98983)
Browse files Browse the repository at this point in the history
- final run of integration tests to deal with incorrect YAML input
(finished sys headers, will finish the rest today)
- add any new functions made in recent PRs
  • Loading branch information
RoseZhang03 authored and Harini0924 committed Jul 22, 2024
1 parent 96756d7 commit 6568cde
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 11 deletions.
1 change: 1 addition & 0 deletions libc/config/linux/x86_64/headers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ set(TARGET_PUBLIC_HEADERS
libc.include.sys_select
libc.include.sys_socket
libc.include.sys_stat
libc.include.sys_statvfs
libc.include.sys_syscall
libc.include.sys_time
libc.include.sys_types
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
header: arpa-inet.h
macros: []
types:
- type_name: uint32_t
- type_name: uint16_t
- type_name: inttypes.h
types: []
enums: []
objects: []
functions:
Expand Down
1 change: 0 additions & 1 deletion libc/newhdrgen/yaml/assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ functions:
- type: const char *
- type: unsigned
- type: const char *
guard: __cplusplus
File renamed without changes.
6 changes: 6 additions & 0 deletions libc/newhdrgen/yaml/math.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ types:
enums: []
objects: []
functions:
- name: cbrt
standards:
- stdc
return_type: double
arguments:
- type: double
- name: cbrtf
standards:
- stdc
Expand Down
7 changes: 4 additions & 3 deletions libc/newhdrgen/yaml/pthread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ types:
- type_name: pthread_key_t
- type_name: pthread_condattr_t
- type_name: __pthread_tss_dtor_t
- type_name: pthread_rwlock_t
- type_name: pthread_rwlockattr_t
- type_name: pthread_attr_t
- type_name: __pthread_start_t
- type_name: __pthread_once_func_t
- type_name: __atfork_callback_t
- type_name: pthread_rwlock_t
enums: []
functions:
- name: pthread_atfork
Expand Down Expand Up @@ -106,7 +106,7 @@ functions:
return_type: int
arguments:
- type: const pthread_condattr_t *__restrict
- type: clockid_t * __restrict
- type: clockid_t *__restrict
- name: pthread_condattr_getpshared
standards:
- POSIX
Expand Down Expand Up @@ -200,7 +200,8 @@ functions:
standards:
- POSIX
return_type: pthread_t
arguments: []
arguments:
- type: void
- name: pthread_setname_np
standards:
- GNUExtensions
Expand Down
1 change: 0 additions & 1 deletion libc/newhdrgen/yaml/search.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
header: search.h
macros: []
types:
- type_name: size_t
- type_name: struct_hsearch_data
- type_name: ENTRY
- type_name: ACTION
Expand Down
3 changes: 1 addition & 2 deletions libc/newhdrgen/yaml/sys/sys_time.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
header: sys-time.h
standards: Linux
macros: []
types:
- type_name: struct_timeval
types: []
enums: []
functions: []
objects: []
1 change: 1 addition & 0 deletions libc/newhdrgen/yaml/wchar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ types:
- type_name: size_t
- type_name: wint_t
- type_name: wchar_t
- type_name: mbstate_t.h
enums: []
objects: []
functions:
Expand Down

0 comments on commit 6568cde

Please sign in to comment.