00001 /* 00002 * dlfcn-win32 00003 * Copyright (c) 2007 Ramiro Polla 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this library; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00018 */ 00019 00020 #ifndef DLFCN_H 00021 #define DLFCN_H 00022 00023 /* POSIX says these are implementation-defined. 00024 * To simplify use with Windows API, we treat them the same way. 00025 */ 00026 00027 #define RTLD_LAZY 0 00028 #define RTLD_NOW 0 00029 00030 #define RTLD_GLOBAL (1 << 1) 00031 #define RTLD_LOCAL (1 << 2) 00032 00033 /* These two were added in The Open Group Base Specifications Issue 6. 00034 * Note: All other RTLD_* flags in any dlfcn.h are not standard compliant. 00035 */ 00036 00037 #define RTLD_DEFAULT 0 00038 #define RTLD_NEXT 0 00039 00040 void *dlopen ( const char *file, int mode ); 00041 int dlclose( void *handle ); 00042 void *dlsym ( void *handle, const char *name ); 00043 char *dlerror( void ); 00044 00045 #endif /* DLFCN_H */