From c5b04113b5602860b8864453a40a763127eec83e Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 21 Jan 2009 04:11:13 +0000 Subject: [PATCH] This should have been part of r9004. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9008 --- coregrind/m_ume/priv_ume.h | 61 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 coregrind/m_ume/priv_ume.h diff --git a/coregrind/m_ume/priv_ume.h b/coregrind/m_ume/priv_ume.h new file mode 100644 index 0000000000..2ac41899e8 --- /dev/null +++ b/coregrind/m_ume/priv_ume.h @@ -0,0 +1,61 @@ +/*--------------------------------------------------------------------*/ +/*--- User-mode execve(). priv_ume.h ---*/ +/*--------------------------------------------------------------------*/ + +/* + This file is part of Valgrind, a dynamic binary instrumentation + framework. + + Copyright (C) 2000-2005 Julian Seward + jseward@acm.org + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + This program 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 + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307, USA. + + The GNU General Public License is contained in the file COPYING. +*/ + +#ifndef __PRIV_UME_H +#define __PRIV_UME_H + +#if defined(VGO_linux) +# define HAVE_ELF +# define HAVE_SCRIPT + +#elif defined(VGO_aix5) +// The AIX port doesn't use UME. + +#else +#error unknown architecture +#endif + +extern int VG_(do_exec_inner)(const HChar *exe, ExeInfo *info); + +#if defined(HAVE_ELF) +extern Bool VG_(match_ELF) ( Char *hdr, Int len ); +extern Int VG_(load_ELF) ( Int fd, const HChar *name, ExeInfo *info ); +#endif + +#if defined(HAVE_SCRIPT) +extern Bool VG_(match_script) ( Char *hdr, Int len ); +extern Int VG_(load_script) ( Int fd, const HChar *name, ExeInfo *info ); +#endif + +#endif /* __PRIV_UME_H */ + +/*--------------------------------------------------------------------*/ +/*--- end ---*/ +/*--------------------------------------------------------------------*/ + -- 2.47.3