Roland McGrath 6d3bfddb9d
[libc] Make hdrgen support macro_header YAML field. (#123265)
A macro can specify macro_header instead of macro_value to
indicate that an llvm-libc-macros/ header file is supposed to
define this macro.  This is used for dlfcn.h, which previously
bogusly redefined the RTLD_* macros to empty.
2025-02-13 16:07:06 -08:00

41 lines
809 B
YAML

header: dlfcn.h
header_template: dlfcn.h.def
macros:
- macro_name: RTLD_LAZY
macro_header: dlfcn-macros.h
- macro_name: RTLD_NOW
macro_header: dlfcn-macros.h
- macro_name: RTLD_GLOBAL
macro_header: dlfcn-macros.h
- macro_name: RTLD_LOCAL
macro_header: dlfcn-macros.h
types: []
enums: []
objects: []
functions:
- name: dlclose
standards:
- POSIX
return_type: int
arguments:
- type: void *
- name: dlerror
standards:
- POSIX
return_type: char *
arguments: []
- name: dlopen
standards:
- POSIX
return_type: void *
arguments:
- type: const char *
- type: int
- name: dlsym
standards:
- POSIX
return_type: void *
arguments:
- type: void *__restrict
- type: const char *__restrict