Get rid of several .h.def files which were used to ensure that the macro definitions from llvm-libc-macro would be included in the public header. Replace this logic with YAML instead - add entries to the "macros" list that point to the correct "macro_header" to ensure it would be included. For C standard library headers, list several standard-define macros to document their availability. For POSIX/Linux headers, only reference a handful of macro, since more planning is needed to decide how to represent platform-specific macro in YAML.
38 lines
663 B
YAML
38 lines
663 B
YAML
header: sys/wait.h
|
|
standards:
|
|
- posix
|
|
macros:
|
|
- macro_name: WCOREDUMP
|
|
macro_header: sys-wait-macros.h
|
|
types:
|
|
- type_name: siginfo_t
|
|
- type_name: struct_rusage
|
|
- type_name: pid_t
|
|
enums: []
|
|
objects: []
|
|
functions:
|
|
- name: wait
|
|
standards:
|
|
- POSIX
|
|
return_type: pid_t
|
|
arguments:
|
|
- type: int *
|
|
- name: wait4
|
|
standards:
|
|
- BSDExtensions
|
|
- POSIX
|
|
return_type: pid_t
|
|
arguments:
|
|
- type: pid_t
|
|
- type: int *
|
|
- type: int
|
|
- type: struct rusage *
|
|
- name: waitpid
|
|
standards:
|
|
- POSIX
|
|
return_type: pid_t
|
|
arguments:
|
|
- type: pid_t
|
|
- type: int *
|
|
- type: int
|