]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
This should have been part of r9004.
authorNicholas Nethercote <njn@valgrind.org>
Wed, 21 Jan 2009 04:11:13 +0000 (04:11 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 21 Jan 2009 04:11:13 +0000 (04:11 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9008

coregrind/m_ume/priv_ume.h [new file with mode: 0644]

diff --git a/coregrind/m_ume/priv_ume.h b/coregrind/m_ume/priv_ume.h
new file mode 100644 (file)
index 0000000..2ac4189
--- /dev/null
@@ -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                                                          ---*/
+/*--------------------------------------------------------------------*/
+