From c7a953a3188ccb6dfbe49ea66304b3d517b0c628 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 19 Mar 2001 07:08:02 +0000 Subject: Added sys_dlopen/sys_dlsym/sys_dlclose. Jeremy. (This used to be commit 49f0e7e7143f82bce9dfd8b06e9e515bc0869ab7) --- source3/include/includes.h | 13 +++++++++++++ source3/include/proto.h | 3 +++ 2 files changed, 16 insertions(+) (limited to 'source3/include') diff --git a/source3/include/includes.h b/source3/include/includes.h index f81a5e3362..f4dcbde62e 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -945,5 +945,18 @@ extern int DEBUGLEVEL; #define F_SETLKW 14 #endif +/* Needed for sys_dlopen/sys_dlsym/sys_dlclose */ +#ifndef RTLD_GLOBAL +#define RTLD_GLOBAL 0 +#endif + +#ifndef RTLD_LAZY +#define RTLD_LAZY 0 +#endif + +#ifndef RTLD_NOW +#define RTLD_NOW 0 +#endif + #endif /* _INCLUDES_H */ diff --git a/source3/include/proto.h b/source3/include/proto.h index 2b79371acc..04480cd8a1 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -333,6 +333,9 @@ pid_t sys_fork(void); pid_t sys_getpid(void); int sys_popen(const char *command); int sys_pclose(int fd); +void *sys_dlopen(const char *name, int flags); +void *sys_dlsym(void *handle, char *symbol); +int sys_dlclose (void *handle); /*The following definitions come from lib/talloc.c */ -- cgit