diff options
author | Jeremy Allison <jra@samba.org> | 2001-03-19 07:08:02 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-03-19 07:08:02 +0000 |
commit | c7a953a3188ccb6dfbe49ea66304b3d517b0c628 (patch) | |
tree | f24e442f81ee263e0981155b1ef6fc1c4f887df8 /source3/include | |
parent | 62711a9ceb375fef2c0af0f649d8c77eb94483f9 (diff) | |
download | samba-c7a953a3188ccb6dfbe49ea66304b3d517b0c628.tar.gz samba-c7a953a3188ccb6dfbe49ea66304b3d517b0c628.tar.bz2 samba-c7a953a3188ccb6dfbe49ea66304b3d517b0c628.zip |
Added sys_dlopen/sys_dlsym/sys_dlclose.
Jeremy.
(This used to be commit 49f0e7e7143f82bce9dfd8b06e9e515bc0869ab7)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/includes.h | 13 | ||||
-rw-r--r-- | source3/include/proto.h | 3 |
2 files changed, 16 insertions, 0 deletions
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 */ |