blob: 0cf691e38018b98229cd2739124b50f9a7b86127 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/**
*** dlopen(), dlclose() dlsym(), dlerror() emulation for OS/400.
***
*** See Copyright for the status of this software.
***
*** Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.
**/
#ifndef _DLFCN_H_
#define _DLFCN_H_
/**
*** Flags for dlopen().
*** Ignored for OS400.
**/
#define RTLD_LAZY 000
#define RTLD_NOW 001
#define RTLD_GLOBAL 010
/**
*** Prototypes.
**/
extern void * dlopen(const char * filename, int flag);
extern void * dlsym(void * handle, const char * symbol);
extern const char * dlerror(void);
extern int dlclose(void * handle);
#endif
|