merge with 0.30.213
[util-vserver.git] / lib / syscall-fallback.h
1 // $Id: syscall-fallback.h 2231 2005-12-31 10:48:24Z ensc $    --*- c -*--
2
3 // Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; version 2 of the License.
8 //  
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 // GNU General Public License for more details.
13 //  
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18
19 #ifndef H_ENSC_UTIL_VSERVER_LIB_SYSCALL_FALLBACK_H
20 #define H_ENSC_UTIL_VSERVER_LIB_SYSCALL_FALLBACK_H
21
22
23 #if     defined(__alpha__)
24 #define __NR_vserver    428
25 #elif   defined(__arm__)
26 #define __NR_vserver    313
27 #elif   defined(__cris__)
28 #define __NR_vserver    273
29 #elif   defined(__frv__)
30 #define __NR_vserver    273
31 #elif   defined(__h8300__)
32 #define __NR_vserver    273
33 #elif   defined(__i386__)
34 #define __NR_vserver    273
35 #elif   defined(__ia64__)
36 #define __NR_vserver    1269
37 #elif   defined(__m32r__)
38 #define __NR_vserver    273
39 #elif   defined(__mc68000__)
40 #define __NR_vserver    278
41 #elif   defined(__mips__) && (_MIPS_SIM == _MIPS_SIM_ABI32)
42 #define __NR_vserver    277
43 #elif   defined(__mips__) && (_MIPS_SIM == _MIPS_SIM_ABI64)
44 #define __NR_vserver    240
45 #elif   defined(__mips__) && (_MIPS_SIM == _MIPS_SIM_NABI32)
46 #define __NR_vserver    236
47 #elif   defined(__hppa__)
48 #define __NR_vserver    263
49 #elif   defined(__powerpc__)
50 #define __NR_vserver    257
51 #elif   defined(__s390__)
52 #define __NR_vserver    263
53 #elif   defined(__sh__)
54 #define __NR_vserver    273
55 #elif   defined(__sparc__)
56 #define __NR_vserver    267
57 #elif   defined(__v850__)
58 #define __NR_vserver    *
59 #elif   defined(__x86_64__)
60 #define __NR_vserver    236
61 #endif
62
63
64
65 #endif  //  H_ENSC_UTIL_VSERVER_LIB_SYSCALL_FALLBACK_H