xref: /nrf52832-nimble/rt-thread/components/libc/libdl/dlfcn.h (revision 104654410c56c573564690304ae786df310c91fc)
1 /*
2  * Copyright (c) 2006-2018, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author      Notes
8  * 2010-11-17     yi.qiu      first version
9  */
10 
11 #ifndef __DLFCN_H_
12 #define __DLFCN_H_
13 
14 #define RTLD_LAZY       0x00000
15 #define RTLD_NOW        0x00001
16 
17 #define RTLD_LOCAL      0x00000
18 #define RTLD_GLOBAL     0x10000
19 
20 #define RTLD_DEFAULT    ((void*)1)
21 #define RTLD_NEXT       ((void*)2)
22 
23 void *dlopen (const char *filename, int flag);
24 const char *dlerror(void);
25 void *dlsym(void *handle, const char *symbol);
26 int dlclose (void *handle);
27 
28 #endif
29