From 58e23eb620429f427cba72bbd2c982d81d9fbd9e Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Sat, 16 Sep 2006 20:11:04 +0000 Subject: [PATCH] amd64-linux-missing-syscall-nrs-20060916 they removed these. makes it harder to probe for the ia32 syscall table (ignoring the compilation issue) cheat. they aren't going to change... --- src/afs/LINUX/osi_machdep.h | 62 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/src/afs/LINUX/osi_machdep.h b/src/afs/LINUX/osi_machdep.h index 8faca60..23d5b95 100644 --- a/src/afs/LINUX/osi_machdep.h +++ b/src/afs/LINUX/osi_machdep.h @@ -227,4 +227,66 @@ do { \ #define AFS_ASSERT_GLOCK() #endif +#ifdef AFS_AMD64_LINUX20_ENV +/* RHEL5 beta's kernel doesn't define these. They aren't gonna change, so... */ + +#ifndef __NR_ia32_afs_syscall +#define __NR_ia32_afs_syscall 137 +#endif +#ifndef __NR_ia32_setgroups +#define __NR_ia32_setgroups 81 +#endif +#ifndef __NR_ia32_setgroups32 +#define __NR_ia32_setgroups32 206 +#endif +#ifndef __NR_ia32_close +#define __NR_ia32_close 6 +#endif +#ifndef __NR_ia32_chdir +#define __NR_ia32_chdir 12 +#endif +#ifndef __NR_ia32_break +#define __NR_ia32_break 17 +#endif +#ifndef __NR_ia32_stty +#define __NR_ia32_stty 31 +#endif +#ifndef __NR_ia32_gtty +#define __NR_ia32_gtty 32 +#endif +#ifndef __NR_ia32_ftime +#define __NR_ia32_ftime 35 +#endif +#ifndef __NR_ia32_prof +#define __NR_ia32_prof 44 +#endif +#ifndef __NR_ia32_lock +#define __NR_ia32_lock 53 +#endif +#ifndef __NR_ia32_mpx +#define __NR_ia32_mpx 56 +#endif +#ifndef __NR_ia32_exit +#define __NR_ia32_exit 1 +#endif +#ifndef __NR_ia32_mount +#define __NR_ia32_mount 21 +#endif +#ifndef __NR_ia32_read +#define __NR_ia32_read 3 +#endif +#ifndef __NR_ia32_write +#define __NR_ia32_write 4 +#endif +#ifndef __NR_ia32_open +#define __NR_ia32_open 5 +#endif +#ifndef __NR_ia32_close +#define __NR_ia32_close 6 +#endif +#ifndef __NR_ia32_unlink +#define __NR_ia32_unlink 10 +#endif +#endif + #endif /* OSI_MACHDEP_H_ */ -- 1.9.4