mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
Related to #97920, this patch adds `dlsym` macros `RTLD_NEXT` AND `RTLD_DEFAULT` to dlfcn.h.
66 lines
1.4 KiB
YAML
66 lines
1.4 KiB
YAML
header: dlfcn.h
|
|
standards:
|
|
- posix
|
|
macros:
|
|
# Note that macro values are quoted to keep the integer literals as
|
|
# written. Without the quotes, YAML will normalize them to minimal
|
|
# decimal, which is less readable for humans seeing the generated header.
|
|
- macro_name: RTLD_LAZY
|
|
macro_value: "0x00001"
|
|
- macro_name: RTLD_NOW
|
|
macro_value: "0x00002"
|
|
- macro_name: RTLD_GLOBAL
|
|
macro_value: "0x00100"
|
|
- macro_name: RTLD_LOCAL
|
|
macro_value: "0"
|
|
- macro_name: RTLD_BINDING_MASK
|
|
standards:
|
|
- gnu
|
|
macro_value: "0x00003"
|
|
- macro_name: RTLD_NOLOAD
|
|
standards:
|
|
- gnu
|
|
macro_value: "0x00004"
|
|
- macro_name: RTLD_DEEPBIND
|
|
standards:
|
|
- gnu
|
|
macro_value: "0x00008"
|
|
- macro_name: RTLD_NODELETE
|
|
standards:
|
|
- gnu
|
|
macro_value: "0x01000"
|
|
- macro_name: RTLD_NEXT
|
|
standards:
|
|
- gnu
|
|
macro_value: "((void *) -1l)"
|
|
- macro_name: RTLD_DEFAULT
|
|
standards:
|
|
- gnu
|
|
macro_value: "((void *) 0)"
|
|
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
|