2 /*--------------------------------------------------------------------*/
3 /*--- Syscall numbers and related operations. pub_tool_vkiscnums.h ---*/
4 /*--------------------------------------------------------------------*/
7 This file is part of Valgrind, a dynamic binary instrumentation
10 Copyright (C) 2005-2017 Nicholas Nethercote
12 Copyright (C) 2006-2017 OpenWorks LLP
15 This program is free software; you can redistribute it and/or
16 modify it under the terms of the GNU General Public License as
17 published by the Free Software Foundation; either version 2 of the
18 License, or (at your option) any later version.
20 This program is distributed in the hope that it will be useful, but
21 WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 General Public License for more details.
25 You should have received a copy of the GNU General Public License
26 along with this program; if not, see <http://www.gnu.org/licenses/>.
28 The GNU General Public License is contained in the file COPYING.
31 #ifndef __PUB_TOOL_VKISCNUMS_H
32 #define __PUB_TOOL_VKISCNUMS_H
34 #include "pub_tool_vkiscnums_asm.h"
35 #include "pub_tool_basics.h" // Word
38 // This converts a syscall number into a string, suitable for printing. It is
39 // needed because some platforms (Darwin) munge sysnums in various ways.
40 // The string is allocated in a static buffer and will be overwritten in the
42 extern const HChar
*VG_(sysnum_string
) (Word sysnum
);
44 // Macro provided for backward compatibility purposes.
45 #define VG_SYSNUM_STRING(sysnum) VG_(sysnum_string)(sysnum)
47 #endif // __PUB_TOOL_VKISCNUMS_H
49 /*--------------------------------------------------------------------*/
51 /*--------------------------------------------------------------------*/