Doxygen Source Code Documentation
dlfcn.h
Go to the documentation of this file.00001 /* 00002 * This file was modified by Christoph Pfisterer <cp@chrisp.de> 00003 * on Sat, May 5 2001. See the file "ChangeLog" for details of what 00004 * was changed. 00005 * 00006 * 00007 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. 00008 * 00009 * @APPLE_LICENSE_HEADER_START@ 00010 * 00011 * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights 00012 * Reserved. This file contains Original Code and/or Modifications of 00013 * Original Code as defined in and that are subject to the Apple Public 00014 * Source License Version 1.1 (the "License"). You may not use this file 00015 * except in compliance with the License. Please obtain a copy of the 00016 * License at http://www.apple.com/publicsource and read it before using 00017 * this file. 00018 * 00019 * The Original Code and all software distributed under the License are 00020 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER 00021 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 00022 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 00023 * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the 00024 * License for the specific language governing rights and limitations 00025 * under the License. 00026 * 00027 * @APPLE_LICENSE_HEADER_END@ 00028 */ 00029 00030 #ifdef __cplusplus 00031 extern "C" { 00032 #endif 00033 00034 extern void * dlopen( 00035 const char *path, 00036 int mode); 00037 extern void * dlsym( 00038 void * handle, 00039 const char *symbol); 00040 extern const char * dlerror( 00041 void); 00042 extern int dlclose( 00043 void * handle); 00044 00045 #define RTLD_LAZY 0x1 00046 #define RTLD_NOW 0x2 00047 #define RTLD_LOCAL 0x4 00048 #define RTLD_GLOBAL 0x8 00049 #define RTLD_NOLOAD 0x10 00050 #define RTLD_SHARED 0x20 /* not used, the default */ 00051 #define RTLD_UNSHARED 0x40 00052 #define RTLD_NODELETE 0x80 00053 #define RTLD_LAZY_UNDEF 0x100 00054 00055 #ifdef __cplusplus 00056 } 00057 #endif