From 35a201cc8ef0c3f5b2df88d2e528aabee1048348 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 30 Apr 2021 18:47:09 +0200 Subject: Initial/Final commit --- libxml2-2.9.10/os400/dlfcn/dlfcn.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 libxml2-2.9.10/os400/dlfcn/dlfcn.h (limited to 'libxml2-2.9.10/os400/dlfcn/dlfcn.h') diff --git a/libxml2-2.9.10/os400/dlfcn/dlfcn.h b/libxml2-2.9.10/os400/dlfcn/dlfcn.h new file mode 100644 index 0000000..0cf691e --- /dev/null +++ b/libxml2-2.9.10/os400/dlfcn/dlfcn.h @@ -0,0 +1,32 @@ +/** +*** dlopen(), dlclose() dlsym(), dlerror() emulation for OS/400. +*** +*** See Copyright for the status of this software. +*** +*** Author: Patrick Monnerat , 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 -- cgit v1.2.3