1 2 /*--------------------------------------------------------------------*/ 3 /*--- Syscall numbers and related operations. pub_tool_vkiscnums.h ---*/ 4 /*--------------------------------------------------------------------*/ 5 6 /* 7 This file is part of Valgrind, a dynamic binary instrumentation 8 framework. 9 10 Copyright (C) 2005-2013 Nicholas Nethercote 11 njn@valgrind.org 12 Copyright (C) 2006-2013 OpenWorks LLP 13 info@open-works.co.uk 14 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. 19 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. 24 25 You should have received a copy of the GNU General Public License 26 along with this program; if not, write to the Free Software 27 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 28 02111-1307, USA. 29 30 The GNU General Public License is contained in the file COPYING. 31 */ 32 33 #ifndef __PUB_TOOL_VKISCNUMS_H 34 #define __PUB_TOOL_VKISCNUMS_H 35 36 #include "pub_tool_vkiscnums_asm.h" 37 #include "pub_tool_basics.h" // Word 38 39 40 // This converts a syscall number into a string, suitable for printing. It is 41 // needed because some platforms (Darwin) munge sysnums in various ways. 42 // The string is allocated in a static buffer and will be overwritten in the 43 // next invocation. 44 extern const HChar *VG_(sysnum_string) (Word sysnum); 45 46 // Macro provided for backward compatibility purposes. 47 #define VG_SYSNUM_STRING(sysnum) VG_(sysnum_string)(sysnum) 48 49 50 #endif // __PUB_TOOL_VKISCNUMS_H 51 52 /*--------------------------------------------------------------------*/ 53 /*--- end ---*/ 54 /*--------------------------------------------------------------------*/ 55