syscall emulation: Clean up ioctl handling, and implement for x86.
authorMarc Orr <marc.orr@gmail.com>
Mon, 6 Aug 2012 23:52:40 +0000 (16:52 -0700)
committerMarc Orr <marc.orr@gmail.com>
Mon, 6 Aug 2012 23:52:40 +0000 (16:52 -0700)
commitd55115936e0711422c6d708572b391e15432bec1
tree13c179e67d6aff1273a56edc8bcc20cddef6b380
parent62425b7a0724033bbd50170400ad2ff83ad57429
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/alpha/linux/linux.hh
src/arch/alpha/tru64/tru64.hh
src/arch/arm/linux/linux.hh
src/arch/mips/linux/linux.hh
src/arch/power/linux/linux.hh
src/arch/sparc/linux/linux.hh
src/arch/x86/linux/syscalls.cc
src/kern/linux/linux.hh
src/sim/syscall_emul.hh