OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tcl/] [compat/] [dlfcn.h] - Diff between revs 578 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 578 Rev 1765
/*
/*
 * dlfcn.h --
 * dlfcn.h --
 *
 *
 *      This file provides a replacement for the header file "dlfcn.h"
 *      This file provides a replacement for the header file "dlfcn.h"
 *      on systems where dlfcn.h is missing.  It's primary use is for
 *      on systems where dlfcn.h is missing.  It's primary use is for
 *      AIX, where Tcl emulates the dl library.
 *      AIX, where Tcl emulates the dl library.
 *
 *
 *      This file is subject to the following copyright notice, which is
 *      This file is subject to the following copyright notice, which is
 *      different from the notice used elsewhere in Tcl but rougly
 *      different from the notice used elsewhere in Tcl but rougly
 *      equivalent in meaning.
 *      equivalent in meaning.
 *
 *
 *      Copyright (c) 1992,1993,1995,1996, Jens-Uwe Mager, Helios Software GmbH
 *      Copyright (c) 1992,1993,1995,1996, Jens-Uwe Mager, Helios Software GmbH
 *      Not derived from licensed software.
 *      Not derived from licensed software.
 *
 *
 *      Permission is granted to freely use, copy, modify, and redistribute
 *      Permission is granted to freely use, copy, modify, and redistribute
 *      this software, provided that the author is not construed to be liable
 *      this software, provided that the author is not construed to be liable
 *      for any results of using the software, alterations are clearly marked
 *      for any results of using the software, alterations are clearly marked
 *      as such, and this notice is not modified.
 *      as such, and this notice is not modified.
 *
 *
 * RCS: @(#) $Id: dlfcn.h,v 1.1.1.1 2002-01-16 10:25:23 markom Exp $
 * RCS: @(#) $Id: dlfcn.h,v 1.1.1.1 2002-01-16 10:25:23 markom Exp $
 */
 */
 
 
/*
/*
 * @(#)dlfcn.h  1.4 revision of 95/04/25  09:36:52
 * @(#)dlfcn.h  1.4 revision of 95/04/25  09:36:52
 * This is an unpublished work copyright (c) 1992 HELIOS Software GmbH
 * This is an unpublished work copyright (c) 1992 HELIOS Software GmbH
 * 30159 Hannover, Germany
 * 30159 Hannover, Germany
 */
 */
 
 
#ifndef __dlfcn_h__
#ifndef __dlfcn_h__
#define __dlfcn_h__
#define __dlfcn_h__
 
 
#ifndef _TCL
#ifndef _TCL
#include <tcl.h>
#include <tcl.h>
#endif
#endif
 
 
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
#endif
 
 
/*
/*
 * Mode flags for the dlopen routine.
 * Mode flags for the dlopen routine.
 */
 */
#define RTLD_LAZY       1       /* lazy function call binding */
#define RTLD_LAZY       1       /* lazy function call binding */
#define RTLD_NOW        2       /* immediate function call binding */
#define RTLD_NOW        2       /* immediate function call binding */
#define RTLD_GLOBAL     0x100   /* allow symbols to be global */
#define RTLD_GLOBAL     0x100   /* allow symbols to be global */
 
 
/*
/*
 * To be able to intialize, a library may provide a dl_info structure
 * To be able to intialize, a library may provide a dl_info structure
 * that contains functions to be called to initialize and terminate.
 * that contains functions to be called to initialize and terminate.
 */
 */
struct dl_info {
struct dl_info {
        void (*init) _ANSI_ARGS_((void));
        void (*init) _ANSI_ARGS_((void));
        void (*fini) _ANSI_ARGS_((void));
        void (*fini) _ANSI_ARGS_((void));
};
};
 
 
VOID *dlopen _ANSI_ARGS_((const char *path, int mode));
VOID *dlopen _ANSI_ARGS_((const char *path, int mode));
VOID *dlsym _ANSI_ARGS_((void *handle, const char *symbol));
VOID *dlsym _ANSI_ARGS_((void *handle, const char *symbol));
char *dlerror _ANSI_ARGS_((void));
char *dlerror _ANSI_ARGS_((void));
int dlclose _ANSI_ARGS_((void *handle));
int dlclose _ANSI_ARGS_((void *handle));
 
 
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
 
 
#endif /* __dlfcn_h__ */
#endif /* __dlfcn_h__ */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.