1 /* 2 * This file was modified by Christoph Pfisterer <cp@chrisp.de> 3 * on Sat, May 5 2001. See the file "ChangeLog" for details of what 4 * was changed. 5 * 6 * 7 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. 8 * 9 * @APPLE_LICENSE_HEADER_START@ 10 * 11 * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights 12 * Reserved. This file contains Original Code and/or Modifications of 13 * Original Code as defined in and that are subject to the Apple Public 14 * Source License Version 1.1 (the "License"). You may not use this file 15 * except in compliance with the License. Please obtain a copy of the 16 * License at http://www.apple.com/publicsource and read it before using 17 * this file. 18 * 19 * The Original Code and all software distributed under the License are 20 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER 21 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 22 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 23 * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the 24 * License for the specific language governing rights and limitations 25 * under the License. 26 * 27 * @APPLE_LICENSE_HEADER_END@ 28 */ 29 30 #ifdef __cplusplus 31 extern "C" { 32 #endif 33 34 extern void * dlopen( 35 const char *path, 36 int mode); 37 extern void * dlsym( 38 void * handle, 39 const char *symbol); 40 extern const char * dlerror( 41 void); 42 extern int dlclose( 43 void * handle); 44 45 #define RTLD_LAZY 0x1 46 #define RTLD_NOW 0x2 47 #define RTLD_LOCAL 0x4 48 #define RTLD_GLOBAL 0x8 49 #define RTLD_NOLOAD 0x10 50 #define RTLD_SHARED 0x20 /* not used, the default */ 51 #define RTLD_UNSHARED 0x40 52 #define RTLD_NODELETE 0x80 53 #define RTLD_LAZY_UNDEF 0x100 54 55 #ifdef __cplusplus 56 } 57 #endif 58