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.
26 lines
456 B
YAML
26 lines
456 B
YAML
header: sys/random.h
|
|
standards:
|
|
- linux
|
|
macros:
|
|
- macro_name: GRND_RANDOM
|
|
macro_header: sys-random-macros.h
|
|
types:
|
|
- type_name: ssize_t
|
|
- type_name: size_t
|
|
enums: []
|
|
objects: []
|
|
functions:
|
|
- name: getrandom
|
|
return_type: ssize_t
|
|
arguments:
|
|
- type: void *
|
|
- type: size_t
|
|
- type: unsigned int
|
|
- name: getentropy
|
|
standards:
|
|
- gnu
|
|
return_type: int
|
|
arguments:
|
|
- type: void *
|
|
- type: size_t
|