#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 VSI C Runtime Library reference manual for specifics. ** **************************************************************************** ** ** ** HPE CONFIDENTIAL. This software is confidential proprietary software ** ** licensed by Hewlett Packard Enterprise Development, LP, and is not ** ** authorized to be used, duplicated or disclosed to anyone without the ** ** prior written permission of HPE. ** ** Copyright 2003 Hewlett Packard Enterprise Development, LP ** ** ** ** VMS SOFTWARE, INC. CONFIDENTIAL. This software is confidential ** ** proprietary software licensed by VMS Software, Inc., and is not ** ** authorized to be used, duplicated or disclosed to anyone without ** ** the prior written permission of VMS Software, Inc. ** ** Copyright 2020-2023 VMS Software, Inc. ** ** ** **************************************************************************** */ #pragma __nostandard #include #ifdef __cplusplus extern "C" { #endif /* ** Save the users pointer context */ #if __INITIAL_POINTER_SIZE || defined(__clang__) # pragma __required_pointer_size __save # pragma __required_pointer_size 32 #endif /* ** Define the mode parameters to the dlopen function */ #define RTLD_LAZY 0x1 #define RTLD_NOW 0x2 #define RTLD_GLOBAL 0x100 #define RTLD_LOCAL 0 /* ** Function prototypes */ #if (__INITIAL_POINTER_SIZE || defined(__clang__)) && __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 || defined(__clang__) # pragma __required_pointer_size __restore #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __DLFCN_LOADED */