1 /* dlfcn.h 2 3 Copyright 1998 Cygnus Solutions 4 5 This file is part of Cygwin. 6 7 This software is a copyrighted work licensed under the terms of the 8 Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 details. */ 10 11 #ifndef _DLFCN_H 12 #define _DLFCN_H 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 /* declarations used for dynamic linking support routines */ 19 extern void *dlopen (const char *, int); 20 extern void *dlsym (void *, const char *); 21 extern int dlclose (void *); 22 extern char *dlerror (void); 23 24 /* specific to CYGWIN */ 25 #define FORK_RELOAD 1 26 #define FORK_NO_RELOAD 0 27 28 extern void dlfork (int); 29 30 /* following doesn't exist in Win32 API .... */ 31 32 /* valid values for mode argument to dlopen */ 33 #define RTLD_LAZY 1 /* lazy function call binding */ 34 #define RTLD_NOW 2 /* immediate function call binding */ 35 #define RTLD_GLOBAL 4 /* symbols in this dlopen'ed obj are visible to other dlopen'ed objs */ 36 37 #ifdef __cplusplus 38 } 39 #endif 40 41 #endif /* _DLFCN_H */ |