资源简介
bochs-2.6.2.tar.gz
代码片段和文件信息
/////////////////////////////////////////////////////////////////////////
// $Id: ltdl.c 10209 2011-02-24 22:05:47Z sshwarts $
//
// NOTE: The ltdl library comes from the Libtool package. Bochs uses
// ltdl and libtool to build and load plugins. The libtool
// documentation describes how to copy ltdl.c and ltdl.h into your
// distribution so it is clearly legal to do so.
/////////////////////////////////////////////////////////////////////////
/* ltdl.c -- system independent dlopen wrapper
Copyright (C) 1998 1999 2000 Free Software Foundation Inc.
Originally by Thomas Tanner
This file is part of GNU Libtool.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License or (at your option) any later version.
As a special exception to the GNU Lesser General Public License
if you distribute this file as part of a program or library that
is built using GNU libtool you may include it under the same
distribution terms that you use for the rest of that program.
This library is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not write to the Free Software
Foundation Inc. 51 Franklin St Fifth Floor Boston MA 02110-1301 USA
*/
// ltdlconf.h added for Bochs
#include “ltdlconf.h“
#if HAVE_CONFIG_H
# include
#endif
#if HAVE_UNISTD_H
# include
#endif
#if HAVE_STDIO_H
# include
#endif
#if HAVE_STDLIB_H
# include
#endif
#if HAVE_STRING_H
# include
#else
# if HAVE_STRINGS_H
# include
# endif
#endif
#if HAVE_CTYPE_H
# include
#endif
#if HAVE_MALLOC_H
# include
#endif
#if HAVE_MEMORY_H
# include
#endif
#if HAVE_ERRNO_H
# include
#endif
#if HAVE_DIRENT_H
# include
# define LT_D_NAMLEN(dirent) (strlen((dirent)->d_name))
#else
# define dirent direct
# define LT_D_NAMLEN(dirent) ((dirent)->d_namlen)
# if HAVE_SYS_NDIR_H
# include
# endif
# if HAVE_SYS_DIR_H
# include
# endif
# if HAVE_NDIR_H
# include
# endif
#endif
#if HAVE_ARGZ_H
# include
#endif
#if HAVE_ASSERT_H
# include
#else
# ifdef __GNUC__
# warning using my own assert
# endif
# define assert(cond) while (!(cond)) { fprintf (stderr “Assert failed at %s:%d: ‘%s‘\n“ __FILE__ __LINE__ #cond); abort(); }
#endif
#define LTDEBUG_PRINTF(x) /* debug output disabled */
//#define LTDEBUG_PRINTF(x) do{ printf(“LT_DEBUG: “); printf x; } while (0)
#include “ltdl.h“
/* --- WINDOWS SUPPORT --- */
#ifdef DLL_EXPORT
# define
- 上一篇:bk3432编程手册.pdf
- 下一篇:企业和校园网络拓扑图
评论
共有 条评论