os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/compat/dlfcn.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/compat/dlfcn.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,65 @@
     1.4 +/* 
     1.5 + * dlfcn.h --
     1.6 + *
     1.7 + *	This file provides a replacement for the header file "dlfcn.h"
     1.8 + *	on systems where dlfcn.h is missing.  It's primary use is for
     1.9 + *	AIX, where Tcl emulates the dl library.
    1.10 + *
    1.11 + *	This file is subject to the following copyright notice, which is
    1.12 + *	different from the notice used elsewhere in Tcl but rougly
    1.13 + *	equivalent in meaning.
    1.14 + *
    1.15 + *	Copyright (c) 1992,1993,1995,1996, Jens-Uwe Mager, Helios Software GmbH
    1.16 + *	Not derived from licensed software.
    1.17 + *
    1.18 + *	Permission is granted to freely use, copy, modify, and redistribute
    1.19 + *	this software, provided that the author is not construed to be liable
    1.20 + *	for any results of using the software, alterations are clearly marked
    1.21 + *	as such, and this notice is not modified.
    1.22 + *
    1.23 + * RCS: @(#) $Id: dlfcn.h,v 1.2 1998/09/14 18:39:44 stanton Exp $
    1.24 + */
    1.25 +
    1.26 +/*
    1.27 + * @(#)dlfcn.h	1.4 revision of 95/04/25  09:36:52
    1.28 + * This is an unpublished work copyright (c) 1992 HELIOS Software GmbH
    1.29 + * 30159 Hannover, Germany
    1.30 + */
    1.31 +
    1.32 +#ifndef __dlfcn_h__
    1.33 +#define __dlfcn_h__
    1.34 +
    1.35 +#ifndef _TCL
    1.36 +#include "tcl.h"
    1.37 +#endif
    1.38 +
    1.39 +#ifdef __cplusplus
    1.40 +extern "C" {
    1.41 +#endif
    1.42 +
    1.43 +/*
    1.44 + * Mode flags for the dlopen routine.
    1.45 + */
    1.46 +#define RTLD_LAZY	1	/* lazy function call binding */
    1.47 +#define RTLD_NOW	2	/* immediate function call binding */
    1.48 +#define RTLD_GLOBAL	0x100	/* allow symbols to be global */
    1.49 +
    1.50 +/*
    1.51 + * To be able to intialize, a library may provide a dl_info structure
    1.52 + * that contains functions to be called to initialize and terminate.
    1.53 + */
    1.54 +struct dl_info {
    1.55 +	void (*init) _ANSI_ARGS_((void));
    1.56 +	void (*fini) _ANSI_ARGS_((void));
    1.57 +};
    1.58 +
    1.59 +VOID *dlopen _ANSI_ARGS_((const char *path, int mode));
    1.60 +VOID *dlsym _ANSI_ARGS_((void *handle, const char *symbol));
    1.61 +char *dlerror _ANSI_ARGS_((void));
    1.62 +int dlclose _ANSI_ARGS_((void *handle));
    1.63 +
    1.64 +#ifdef __cplusplus
    1.65 +}
    1.66 +#endif
    1.67 +
    1.68 +#endif /* __dlfcn_h__ */