Select Git revision
dsa-keygen-test.c
Forked from
Nettle / nettle
Source project has a limited visibility.
-
Niels Möller authoredNiels Möller authored
dlopen.c 65.14 KiB
/*
|| This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information.
|| $Id: dlopen.c,v 1.76 2006/07/05 19:06:46 mast Exp $
*/
/* Note: This is not used if --enable-dll is. */
#include <global.h>
#include "fdlib.h"
#define DL_INTERNAL
#include "pike_dlfcn.h"
#include "pike_memory.h"
#include "pike_error.h"
#include "pike_macros.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
/* FreeBSD and OpenBSD has <malloc.h>, but it just contains a warning... */
#include <malloc.h>
#endif /* !__FreeBSD__ && !__OpenBSD__ */
#include <windows.h>
#include <memory.h>
#include <sys/stat.h>
#include <assert.h>
#include <math.h>
#include <tchar.h>
#include <interpret.h>
#include <callback.h>
/* In case we're compiling with NDEBUG */
_CRTIMP void __cdecl _assert(void*, void*, unsigned);
#ifdef DEBUG_MALLOC
#define ACCEPT_MEMORY_LEAK(X) dmalloc_accept_leak(X)
#else
#define ACCEPT_MEMORY_LEAK(X)
#endif
static char *dlerr=0;
/* Todo:
* Make image debugable if possible
* Separate RWX, RW and R memory sections.
*/
#ifdef _WIN64
#define USE_PDB_SYMBOLS
#endif
/* Enable debug output if compiled on win64. */
#ifdef _WIN64
#define DLDEBUG 1
#endif /* _WIN64 */
/* #define DL_VERBOSE 1 */
/* #define DLDEBUG */
/*
* This define makes dlopen create a logfile which maps
* addresses to symbols. This can be very helpful when
* debugging since regular debug info does not work with
* code loaded by dlopen.
*/
/* #define DL_SYMBOL_LOG */