From d55115936e0711422c6d708572b391e15432bec1 Mon Sep 17 00:00:00 2001 From: Marc Orr Date: Mon, 6 Aug 2012 16:52:40 -0700 Subject: syscall emulation: Clean up ioctl handling, and implement for x86. Enable different whitelists for different OS/arch combinations, since some use the generic Linux definitions only, and others use definitions inherited from earlier Unix flavors on those architectures. Also update x86 function pointers so ioctl is no longer unimplemented on that platform. This patch is a revised version of Vince Weaver's earlier patch. --- src/arch/arm/linux/linux.hh | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/arch/arm') diff --git a/src/arch/arm/linux/linux.hh b/src/arch/arm/linux/linux.hh index 40d586aaf..55af574d3 100644 --- a/src/arch/arm/linux/linux.hh +++ b/src/arch/arm/linux/linux.hh @@ -100,20 +100,6 @@ class ArmLinux : public Linux static const int TGT_RUSAGE_BOTH = -2; //@} - //@{ - /// ioctl() command codes. - static const unsigned TIOCGETP_ = 0x5401; - static const unsigned TIOCSETP_ = 0x80067409; - static const unsigned TIOCSETN_ = 0x8006740a; - static const unsigned TIOCSETC_ = 0x80067411; - static const unsigned TIOCGETC_ = 0x40067412; - static const unsigned FIONREAD_ = 0x4004667f; - static const unsigned TIOCISATTY_ = 0x2000745e; - static const unsigned TIOCGETS_ = 0x402c7413; - static const unsigned TIOCGETA_ = 0x5405; - static const unsigned TCSETAW_ = 0x5407; // 2.6.15 kernel - //@} - /// For table(). static const int TBL_SYSINFO = 12; -- cgit v1.2.3