2 /*--------------------------------------------------------------------*/
3 /*--- Syscall numbers and related operations. pub_core_vkiscnums.h ---*/
4 /*--------------------------------------------------------------------*/
7 This file is part of Valgrind, a dynamic binary instrumentation
10 Copyright (C) 2000-2017 Julian Seward
12 Copyright (C) 2005-2017 Nicholas Nethercote
14 Copyright (C) 2006-2017 OpenWorks LLP
17 This program is free software; you can redistribute it and/or
18 modify it under the terms of the GNU General Public License as
19 published by the Free Software Foundation; either version 2 of the
20 License, or (at your option) any later version.
22 This program is distributed in the hope that it will be useful, but
23 WITHOUT ANY WARRANTY; without even the implied warranty of
24 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 General Public License for more details.
27 You should have received a copy of the GNU General Public License
28 along with this program; if not, see <http://www.gnu.org/licenses/>.
30 The GNU General Public License is contained in the file COPYING.
33 #ifndef __PUB_CORE_VKISCNUMS_H
34 #define __PUB_CORE_VKISCNUMS_H
36 //--------------------------------------------------------------------
37 // PURPOSE: This module holds all the syscall numbers, and a handful of
38 // operations relating to them.
40 // On Linux they are a bunch of #define'd constants of the form
41 // __NR_name, and this file must contain nothing else, since it will
42 // be included in assembly code (m_trampoline.S).
44 // On Darwin the __NR_name consts are #define'd constants which are
45 // encoded using various macros. 32- and 64-bit Darwin share a common
46 // "implementation" also.
48 // Note that most of the actual code for this module is in include/vki/, but
49 // you should not directly #include any file in include/vki; instead #include
50 // only one of pub_{core,tool}_vkiscnums{,_asm}.h.
51 //--------------------------------------------------------------------
53 /* Most unfortunately, all the kernel decls are visible to tools. Not
54 really necessary, but to avoid this would require some tedious
55 refactoring of the sources. Anyway, we live with this kludge, and
56 that means the only thing to be done here is ... */
58 #include "pub_core_vkiscnums_asm.h"
59 #include "pub_tool_vkiscnums.h"
61 #endif // __PUB_CORE_VKISCNUMS_H
63 /*--------------------------------------------------------------------*/
65 /*--------------------------------------------------------------------*/