| OLD | NEW |
| (Empty) | |
| 1 /* |
| 2 * dlfcn-win32 |
| 3 * Copyright (c) 2007 Ramiro Polla |
| 4 * |
| 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Lesser General Public |
| 7 * License as published by the Free Software Foundation; either |
| 8 * version 2.1 of the License, or (at your option) any later version. |
| 9 * |
| 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Lesser General Public License for more details. |
| 14 * |
| 15 * You should have received a copy of the GNU Lesser General Public |
| 16 * License along with this library; if not, write to the Free Software |
| 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 US
A |
| 18 */ |
| 19 |
| 20 #ifndef DLFCN_H |
| 21 #define DLFCN_H |
| 22 |
| 23 #ifdef __cplusplus |
| 24 extern "C" { |
| 25 #endif |
| 26 |
| 27 /* POSIX says these are implementation-defined. |
| 28 * To simplify use with Windows API, we treat them the same way. |
| 29 */ |
| 30 |
| 31 #define RTLD_LAZY 0 |
| 32 #define RTLD_NOW 0 |
| 33 |
| 34 #define RTLD_GLOBAL (1 << 1) |
| 35 #define RTLD_LOCAL (1 << 2) |
| 36 |
| 37 /* These two were added in The Open Group Base Specifications Issue 6. |
| 38 * Note: All other RTLD_* flags in any dlfcn.h are not standard compliant. |
| 39 */ |
| 40 |
| 41 #define RTLD_DEFAULT 0 |
| 42 #define RTLD_NEXT 0 |
| 43 |
| 44 void *dlopen ( const char *file, int mode ); |
| 45 int dlclose( void *handle ); |
| 46 void *dlsym ( void *handle, const char *name ); |
| 47 char *dlerror( void ); |
| 48 |
| 49 #ifdef __cplusplus |
| 50 } |
| 51 #endif |
| 52 |
| 53 #endif /* DLFCN_H */ |
| OLD | NEW |