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.
17 lines
272 B
YAML
17 lines
272 B
YAML
header: sys/ioctl.h
|
|
standards:
|
|
- linux
|
|
macros:
|
|
- macro_name: FIONREAD
|
|
macro_header: sys-ioctl-macros.h
|
|
types: []
|
|
enums: []
|
|
objects: []
|
|
functions:
|
|
- name: ioctl
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: unsigned long
|
|
- type: '...'
|