/*1* dlfcn.h --2*3* This file provides a replacement for the header file "dlfcn.h"4* on systems where dlfcn.h is missing. It's primary use is for5* AIX, where Tcl emulates the dl library.6*7* This file is subject to the following copyright notice, which is8* different from the notice used elsewhere in Tcl but rougly9* equivalent in meaning.10*11* Copyright (c) 1992,1993,1995,1996, Jens-Uwe Mager, Helios Software GmbH12* Not derived from licensed software.13*14* Permission is granted to freely use, copy, modify, and redistribute15* this software, provided that the author is not construed to be liable16* for any results of using the software, alterations are clearly marked17* as such, and this notice is not modified.18*19* SCCS: @(#) dlfcn.h 1.4 96/09/17 09:05:5920*/2122/*23* @(#)dlfcn.h 1.4 revision of 95/04/25 09:36:5224* This is an unpublished work copyright (c) 1992 HELIOS Software GmbH25* 30159 Hannover, Germany26*/2728#ifndef __dlfcn_h__29#define __dlfcn_h__3031/*32* Mode flags for the dlopen routine.33*/34#define RTLD_LAZY 1 /* lazy function call binding */35#define RTLD_NOW 2 /* immediate function call binding */36#define RTLD_GLOBAL 0x100 /* allow symbols to be global */3738/*39* To be able to intialize, a library may provide a dl_info structure40* that contains functions to be called to initialize and terminate.41*/42struct dl_info {43void (*init) (void);44void (*fini) (void);45};4647void *dlopen (const char *path, int mode);48void *dlsym (void *handle, const char *symbol);49char *dlerror (void);50int dlclose (void *handle);5152#endif /* __dlfcn_h__ */535455