14eee476691a0648b893665d3227277eb60f30cdfsewardj
24eee476691a0648b893665d3227277eb60f30cdfsewardj/*--------------------------------------------------------------------*/
3f11335aa35e73f6903063a2fa7368dd5046241a0njn/*--- Syscall numbers and related operations. pub_tool_vkiscnums.h ---*/
44eee476691a0648b893665d3227277eb60f30cdfsewardj/*--------------------------------------------------------------------*/
54eee476691a0648b893665d3227277eb60f30cdfsewardj
64eee476691a0648b893665d3227277eb60f30cdfsewardj/*
74eee476691a0648b893665d3227277eb60f30cdfsewardj   This file is part of Valgrind, a dynamic binary instrumentation
84eee476691a0648b893665d3227277eb60f30cdfsewardj   framework.
94eee476691a0648b893665d3227277eb60f30cdfsewardj
100f157ddb404bcde7815a1c5bf2d7e41c114f3d73sewardj   Copyright (C) 2005-2013 Nicholas Nethercote
114eee476691a0648b893665d3227277eb60f30cdfsewardj      njn@valgrind.org
120f157ddb404bcde7815a1c5bf2d7e41c114f3d73sewardj   Copyright (C) 2006-2013 OpenWorks LLP
134eee476691a0648b893665d3227277eb60f30cdfsewardj      info@open-works.co.uk
144eee476691a0648b893665d3227277eb60f30cdfsewardj
154eee476691a0648b893665d3227277eb60f30cdfsewardj   This program is free software; you can redistribute it and/or
164eee476691a0648b893665d3227277eb60f30cdfsewardj   modify it under the terms of the GNU General Public License as
174eee476691a0648b893665d3227277eb60f30cdfsewardj   published by the Free Software Foundation; either version 2 of the
184eee476691a0648b893665d3227277eb60f30cdfsewardj   License, or (at your option) any later version.
194eee476691a0648b893665d3227277eb60f30cdfsewardj
204eee476691a0648b893665d3227277eb60f30cdfsewardj   This program is distributed in the hope that it will be useful, but
214eee476691a0648b893665d3227277eb60f30cdfsewardj   WITHOUT ANY WARRANTY; without even the implied warranty of
224eee476691a0648b893665d3227277eb60f30cdfsewardj   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
234eee476691a0648b893665d3227277eb60f30cdfsewardj   General Public License for more details.
244eee476691a0648b893665d3227277eb60f30cdfsewardj
254eee476691a0648b893665d3227277eb60f30cdfsewardj   You should have received a copy of the GNU General Public License
264eee476691a0648b893665d3227277eb60f30cdfsewardj   along with this program; if not, write to the Free Software
274eee476691a0648b893665d3227277eb60f30cdfsewardj   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
284eee476691a0648b893665d3227277eb60f30cdfsewardj   02111-1307, USA.
294eee476691a0648b893665d3227277eb60f30cdfsewardj
304eee476691a0648b893665d3227277eb60f30cdfsewardj   The GNU General Public License is contained in the file COPYING.
314eee476691a0648b893665d3227277eb60f30cdfsewardj*/
324eee476691a0648b893665d3227277eb60f30cdfsewardj
334eee476691a0648b893665d3227277eb60f30cdfsewardj#ifndef __PUB_TOOL_VKISCNUMS_H
344eee476691a0648b893665d3227277eb60f30cdfsewardj#define __PUB_TOOL_VKISCNUMS_H
354eee476691a0648b893665d3227277eb60f30cdfsewardj
361a1e95c1f385a9b3b4f13f231eebaafff6e56450njn#include "pub_tool_vkiscnums_asm.h"
37535fb1b49a80f2e880f755ee618381de3e222ddfflorian#include "pub_tool_basics.h"    // Word
381a1e95c1f385a9b3b4f13f231eebaafff6e56450njn
391a1e95c1f385a9b3b4f13f231eebaafff6e56450njn
401a1e95c1f385a9b3b4f13f231eebaafff6e56450njn// This converts a syscall number into a string, suitable for printing.  It is
416e9de463ef677f093e9f24f126e1b11c28cf59fdsewardj// needed because some platforms (Darwin) munge sysnums in various ways.
421123362bfa90a9f96b6a2b2c03a15b36868c0fcbflorian// The string is allocated in a static buffer and will be overwritten in the
431123362bfa90a9f96b6a2b2c03a15b36868c0fcbflorian// next invocation.
441123362bfa90a9f96b6a2b2c03a15b36868c0fcbflorianextern const HChar *VG_(sysnum_string) (Word sysnum);
451123362bfa90a9f96b6a2b2c03a15b36868c0fcbflorian
461123362bfa90a9f96b6a2b2c03a15b36868c0fcbflorian// Macro provided for backward compatibility purposes.
471123362bfa90a9f96b6a2b2c03a15b36868c0fcbflorian#define VG_SYSNUM_STRING(sysnum) VG_(sysnum_string)(sysnum)
489c606bd8634cd6b67bb41fa645b5c639668cfa2dsewardj
499c606bd8634cd6b67bb41fa645b5c639668cfa2dsewardj
504eee476691a0648b893665d3227277eb60f30cdfsewardj#endif   // __PUB_TOOL_VKISCNUMS_H
514eee476691a0648b893665d3227277eb60f30cdfsewardj
524eee476691a0648b893665d3227277eb60f30cdfsewardj/*--------------------------------------------------------------------*/
534eee476691a0648b893665d3227277eb60f30cdfsewardj/*--- end                                                          ---*/
544eee476691a0648b893665d3227277eb60f30cdfsewardj/*--------------------------------------------------------------------*/
55