#ifndef __DLFCN_LOADED #define __DLFCN_LOADED /**************************************************************************** ** ** - Dynamic linking ** ***************************************************************************** ** ** Header introduced by the X/Open Specification ** ** Definitions in this header file may not be available on all versions of ** OpenVMS. See the DEC C Runtime Library reference manual for specifics. ** ***************************************************************************** ** ** Copyright 2003 Hewlett-Packard Development Company, L.P. ** ** Confidential computer software. Valid license from HP and/or ** its subsidiaries required for possession, use, or copying. ** ** Consistent with FAR 12.211 and 12.212, Commercial Computer Software, ** Computer Software Documentation, and Technical Data for Commercial ** Items are licensed to the U.S. Government under vendor's standard ** commercial license. ** ** Neither HP nor any of its subsidiaries shall be liable for technical ** or editorial errors or omissions contained herein. The information ** in this document is provided "as is" without warranty of any kind and ** is subject to change without notice. The warranties for HP products ** are set forth in the express limited warranty statements accompanying ** such products. Nothing herein should be construed as constituting an ** additional warranty. ** ***************************************************************************** */ #pragma __nostandard #include #ifdef __cplusplus extern "C" { #endif /* ** If compiled with /pointer_size=short or /pointer_size=long, ** begin in a 32-bit pointer size context. */ #if __INITIAL_POINTER_SIZE # pragma __pointer_size __save # pragma __pointer_size 32 #endif /* ** Define the mode parameters to the dlopen function */ #define RTLD_LAZY 1 #define RTLD_NOW 2 /* ** Function prototypes */ #if __INITIAL_POINTER_SIZE && __CRTL_VER >= 70320000 void *dlopen (__const_char_ptr64 pathname, int mode); void *dlsym (__void_ptr64 handle, __const_char_ptr64 name); int dlclose (__void_ptr64 handle); #else void *dlopen (const char *pathname, int mode); void *dlsym (void *handle, const char *name); int dlclose (void *handle); #endif char *dlerror (void); /* ** Restore the users pointer context */ #if __INITIAL_POINTER_SIZE # pragma __pointer_size __restore #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __DLFCN_LOADED */