From 909f4951dd838e97f5d21b4ffa7cecf90fd59586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 12 Jan 2003 16:15:49 +0000 Subject: [PATCH] Added our dlfcn.h header - the RTLD_xxx constants may change, though. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2418 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/dlfcn.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 headers/posix/dlfcn.h diff --git a/headers/posix/dlfcn.h b/headers/posix/dlfcn.h new file mode 100644 index 0000000000..f671bd2430 --- /dev/null +++ b/headers/posix/dlfcn.h @@ -0,0 +1,29 @@ +#ifndef _DLFCN_H +#define _DLFCN_H +/* +** Distributed under the terms of the OpenBeOS License. +*/ + +#include + + +#define RTLD_LAZY 0 /* relocations are performed as needed */ +#define RTLD_NOW 1 /* the file gets relocated at load time */ +#define RTLD_LOCAL 0 /* symbols are not available for relocating any other object */ +#define RTLD_GLOBAL 2 /* all symbols are available */ + + +#ifdef __cplusplus +extern "C" { +#endif + +extern int dlclose(void *image); +extern char *dlerror(void); +extern void *dlopen(const char *path, int mode); +extern void *dlsym(void *image, const char *symbolName); + +#ifdef __cplusplus +} +#endif + +#endif /* _DLFCN_H */