hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (c) 2019 Linaro limited
 */
 
#ifndef _DLFCN_H_
#define _DLFCN_H_
 
/* Relocations are performed when the object is loaded. */
#define RTLD_NOW    2
/* All symbols are available for relocation processing of other modules. */
#define RTLD_GLOBAL    0x100
/* Do not unload the shared object during dlclose(). */
#define RTLD_NODELETE    0x1000
/* Other flags are not supported */
 
/* Note: @flags must be (RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE) */
void *dlopen(const char *filename, int flags);
int dlclose(void *handle);
void *dlsym(void *handle, const char *symbol);
 
#endif /* _DLFCN_H_ */