sewardj | cc4f467 | 2006-10-14 19:32:16 +0000 | [diff] [blame] | 1 | |
| 2 | /*--------------------------------------------------------------------*/ |
njn | d61bc2a | 2009-05-20 06:42:59 +0000 | [diff] [blame] | 3 | /*--- Syscall numbers and related operations. pub_core_vkiscnums.h ---*/ |
sewardj | cc4f467 | 2006-10-14 19:32:16 +0000 | [diff] [blame] | 4 | /*--------------------------------------------------------------------*/ |
| 5 | |
| 6 | /* |
| 7 | This file is part of Valgrind, a dynamic binary instrumentation |
| 8 | framework. |
| 9 | |
Elliott Hughes | ed39800 | 2017-06-21 14:41:24 -0700 | [diff] [blame] | 10 | Copyright (C) 2000-2017 Julian Seward |
sewardj | cc4f467 | 2006-10-14 19:32:16 +0000 | [diff] [blame] | 11 | jseward@acm.org |
Elliott Hughes | ed39800 | 2017-06-21 14:41:24 -0700 | [diff] [blame] | 12 | Copyright (C) 2005-2017 Nicholas Nethercote |
sewardj | cc4f467 | 2006-10-14 19:32:16 +0000 | [diff] [blame] | 13 | njn@valgrind.org |
Elliott Hughes | ed39800 | 2017-06-21 14:41:24 -0700 | [diff] [blame] | 14 | Copyright (C) 2006-2017 OpenWorks LLP |
sewardj | cc4f467 | 2006-10-14 19:32:16 +0000 | [diff] [blame] | 15 | info@open-works.co.uk |
| 16 | |
| 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. |
| 21 | |
| 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. |
| 26 | |
| 27 | You should have received a copy of the GNU General Public License |
| 28 | along with this program; if not, write to the Free Software |
| 29 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 30 | 02111-1307, USA. |
| 31 | |
| 32 | The GNU General Public License is contained in the file COPYING. |
| 33 | */ |
| 34 | |
| 35 | #ifndef __PUB_CORE_VKISCNUMS_H |
| 36 | #define __PUB_CORE_VKISCNUMS_H |
| 37 | |
njn | 1a1e95c | 2009-06-03 06:50:06 +0000 | [diff] [blame] | 38 | //-------------------------------------------------------------------- |
| 39 | // PURPOSE: This module holds all the syscall numbers, and a handful of |
| 40 | // operations relating to them. |
| 41 | // |
| 42 | // On Linux they are a bunch of #define'd constants of the form |
| 43 | // __NR_name, and this file must contain nothing else, since it will |
| 44 | // be included in assembly code (m_trampoline.S). |
| 45 | // |
njn | 1a1e95c | 2009-06-03 06:50:06 +0000 | [diff] [blame] | 46 | // On Darwin the __NR_name consts are #define'd constants which are |
| 47 | // encoded using various macros. 32- and 64-bit Darwin share a common |
| 48 | // "implementation" also. |
| 49 | // |
| 50 | // Note that most of the actual code for this module is in include/vki/, but |
| 51 | // you should not directly #include any file in include/vki; instead #include |
| 52 | // only one of pub_{core,tool}_vkiscnums{,_asm}.h. |
| 53 | //-------------------------------------------------------------------- |
| 54 | |
sewardj | cc4f467 | 2006-10-14 19:32:16 +0000 | [diff] [blame] | 55 | /* Most unfortunately, all the kernel decls are visible to tools. Not |
| 56 | really necessary, but to avoid this would require some tedious |
| 57 | refactoring of the sources. Anyway, we live with this kludge, and |
| 58 | that means the only thing to be done here is ... */ |
| 59 | |
njn | 1a1e95c | 2009-06-03 06:50:06 +0000 | [diff] [blame] | 60 | #include "pub_core_vkiscnums_asm.h" |
sewardj | cc4f467 | 2006-10-14 19:32:16 +0000 | [diff] [blame] | 61 | #include "pub_tool_vkiscnums.h" |
| 62 | |
sewardj | cc4f467 | 2006-10-14 19:32:16 +0000 | [diff] [blame] | 63 | #endif // __PUB_CORE_VKISCNUMS_H |
| 64 | |
| 65 | /*--------------------------------------------------------------------*/ |
| 66 | /*--- end ---*/ |
| 67 | /*--------------------------------------------------------------------*/ |