mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
74 lines
2.8 KiB
C
74 lines
2.8 KiB
C
|
|
/*--------------------------------------------------------------------*/
|
|
/*--- Top level for kernel interface system call numbers. ---*/
|
|
/*--- pub_tool_vkiscnums.h ---*/
|
|
/*--------------------------------------------------------------------*/
|
|
|
|
/*
|
|
This file is part of Valgrind, a dynamic binary instrumentation
|
|
framework.
|
|
|
|
Copyright (C) 2005-2008 Nicholas Nethercote
|
|
njn@valgrind.org
|
|
Copyright (C) 2006-2008 OpenWorks LLP
|
|
info@open-works.co.uk
|
|
|
|
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.
|
|
*/
|
|
|
|
/* This file defines the system call numbers.
|
|
|
|
On Linux they are a bunch of #define'd constants of the form
|
|
__NR_name, and this file must contain nothing else, since it will
|
|
be included in assembly code (m_trampoline.S).
|
|
|
|
On AIX the __NR_name consts are renamings of global variables which
|
|
tell us the number for each syscall. This elaboration is necessary
|
|
because on AIX the syscall numbers are not constant; they can be
|
|
different for each process (in principle; in practice they rarely
|
|
change). 32- and 64-bit AIX5 share a common "implementation".
|
|
|
|
This file is merely a top-level "steering" file, which pulls in the
|
|
correct bits for the relevant platform. You should not directly
|
|
#include any file in include/vki; instead #include only this one or
|
|
pub_core_vkiscnums.h.
|
|
*/
|
|
|
|
#ifndef __PUB_TOOL_VKISCNUMS_H
|
|
#define __PUB_TOOL_VKISCNUMS_H
|
|
|
|
#if defined(VGP_x86_linux)
|
|
# include "vki/vki-scnums-x86-linux.h"
|
|
#elif defined(VGP_amd64_linux)
|
|
# include "vki/vki-scnums-amd64-linux.h"
|
|
#elif defined(VGP_ppc32_linux)
|
|
# include "vki/vki-scnums-ppc32-linux.h"
|
|
#elif defined(VGP_ppc64_linux)
|
|
# include "vki/vki-scnums-ppc64-linux.h"
|
|
#elif defined(VGP_ppc32_aix5) || defined(VGP_ppc64_aix5)
|
|
# include "vki/vki-scnums-aix5.h"
|
|
#else
|
|
# error Unknown platform
|
|
#endif
|
|
|
|
#endif // __PUB_TOOL_VKISCNUMS_H
|
|
|
|
/*--------------------------------------------------------------------*/
|
|
/*--- end ---*/
|
|
/*--------------------------------------------------------------------*/
|