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