Orocos Real-Time Toolkit  2.9.0
dlfcn.h
Go to the documentation of this file.
1 /*
2  * dlfcn-win32
3  * Copyright (c) 2007 Ramiro Polla
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef DLFCN_H
21 #define DLFCN_H
22 
23 #include "../../rtt-config.h"
24 
25 /* POSIX says these are implementation-defined.
26  * To simplify use with Windows API, we treat them the same way.
27  */
28 
29 #ifndef RTLD_LAZY
30 #define RTLD_LAZY 0
31 #endif
32 #ifndef RTLD_NOW
33 #define RTLD_NOW 0
34 #endif
35 
36 #ifndef RTLD_GLOBAL
37 #define RTLD_GLOBAL (1 << 1)
38 #endif
39 #ifndef RTLD_LOCAL
40 #define RTLD_LOCAL (1 << 2)
41 #endif
42 
43 /* These two were added in The Open Group Base Specifications Issue 6.
44  * Note: All other RTLD_* flags in any dlfcn.h are not standard compliant.
45  */
46 
47 #define RTLD_DEFAULT 0
48 #define RTLD_NEXT 0
49 
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53 
54 RTT_API void *dlopen ( const char *file, int mode );
55 RTT_API int dlclose( void *handle );
56 RTT_API void *dlsym ( void *handle, const char *name );
57 RTT_API char *dlerror( void );
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #endif /* DLFCN_H */
RTT_API char * dlerror(void)
RTT_API void * dlsym(void *handle, const char *name)
#define RTT_API
Definition: rtt-config.h:97
RTT_API int dlclose(void *handle)
RTT_API void * dlopen(const char *file, int mode)