syscall: Addition of an ioctl command code for Power.
authorTimothy M. Jones <tjones1@inf.ed.ac.uk>
Sat, 24 Oct 2009 17:53:59 +0000 (10:53 -0700)
committerTimothy M. Jones <tjones1@inf.ed.ac.uk>
Sat, 24 Oct 2009 17:53:59 +0000 (10:53 -0700)
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/sim/syscall_emul.hh

index e9947644cb56c738f287d7e97b72d141eaa02c5b..c728ce1fbe7af85deffe8c7b88ab11c3c073219d 100644 (file)
@@ -105,6 +105,7 @@ class AlphaLinux : public Linux
     static const unsigned TIOCISATTY_ = 0x2000745e;
     static const unsigned TIOCGETS_   = 0x402c7413;
     static const unsigned TIOCGETA_   = 0x40127417;
+    static const unsigned TCSETAW_    = 0x80147419; // 2.6.15 kernel
     //@}
 
     /// For table().
index 4ba35fc503a3ce71a2683c324c6d8cc2d0c11d2e..0ee12973cbe833223a09217f7d383419c24d1d27 100644 (file)
@@ -99,6 +99,7 @@ class AlphaTru64 : public Tru64
     static const unsigned TIOCISATTY_ = 0x2000745e;
     static const unsigned TIOCGETS_   = 0x402c7413;
     static const unsigned TIOCGETA_   = 0x40127417;
+    static const unsigned TCSETAW_    = 0x80147419;
     //@}
 
     //@{
index b9b10a59369df12d31194b585dc66df317b8577d..f829dd7c659508189aa72298163234605a618ab7 100644 (file)
@@ -86,6 +86,7 @@ class ArmLinux : public Linux
     static const unsigned TIOCISATTY_ = 0x2000745e;
     static const unsigned TIOCGETS_   = 0x402c7413;
     static const unsigned TIOCGETA_   = 0x40127417;
+    static const unsigned TCSETAW_    = 0x5407;     // 2.6.15 kernel
     //@}
 
     /// For table().
index b30cca2fbcb48e46a72b5c4de4f017d865527da8..a2418cfb65a52f9ec8c836d84c64b536278cd517 100644 (file)
@@ -100,6 +100,7 @@ class MipsLinux : public Linux
     static const unsigned TIOCISATTY_ = 0x5480;
     static const unsigned TIOCGETS_   = 0x540d;
     static const unsigned TIOCGETA_   = 0x7417;
+    static const unsigned TCSETAW_    = 0x5403; // 2.6.15 kernel
     //@}
 
     /// For table().
index 21f8201c8d5f0231aeaa0f3d500fe5012079803e..0c51c7dec96d10f19c18494c4408e72b73a3935c 100644 (file)
@@ -500,6 +500,7 @@ ioctlFunc(SyscallDesc *desc, int callnum, LiveProcess *process,
       case OS::TIOCGETC_:
       case OS::TIOCGETS_:
       case OS::TIOCGETA_:
+      case OS::TCSETAW_:
         return -ENOTTY;
 
       default: