syscall: Expose ioctl for MIPS
authorKorey Sewell <ksewell@umich.edu>
Tue, 10 Feb 2009 23:49:29 +0000 (15:49 -0800)
committerKorey Sewell <ksewell@umich.edu>
Tue, 10 Feb 2009 23:49:29 +0000 (15:49 -0800)
src/arch/mips/linux/linux.hh
src/arch/mips/linux/process.cc

index 0d71a3c583d333a255ac6e4a70805a3ed4bc4427..4667748fb1369a0cb2b20a5c1242f4e457d4b7be 100644 (file)
@@ -94,15 +94,15 @@ class MipsLinux : public Linux
 
     //@{
     /// ioctl() command codes.
-    static const unsigned TIOCGETP   = 0x7408;
-    static const unsigned TIOCSETP   = 0x7409;
-    static const unsigned TIOCSETN   = 0x740a;
-    static const unsigned TIOCSETC   = 0x7411;
-    static const unsigned TIOCGETC   = 0x7412;
-    static const unsigned FIONREAD   = 0x467f;
-    static const unsigned TIOCISATTY = 0x5480;
-    static const unsigned TIOCGETS   = 0x540d;
-    static const unsigned TIOCGETA   = 0x7417;
+    static const unsigned TIOCGETP_   = 0x7408;
+    static const unsigned TIOCSETP_   = 0x7409;
+    static const unsigned TIOCSETN_   = 0x740a;
+    static const unsigned TIOCSETC_   = 0x7411;
+    static const unsigned TIOCGETC_   = 0x7412;
+    static const unsigned FIONREAD_   = 0x467f;
+    static const unsigned TIOCISATTY_ = 0x5480;
+    static const unsigned TIOCGETS_   = 0x540d;
+    static const unsigned TIOCGETA_   = 0x7417;
     //@}
 
     /// For table().
index 56413484b83efa01ceadb875258ac3294fbc2711..ce09e162871be4f03cff191930e98c16a2357828 100644 (file)
@@ -175,7 +175,7 @@ SyscallDesc MipsLinuxProcess::syscallDescs[] = {
     /* 51 */ SyscallDesc("acct", unimplementedFunc),
     /* 52 */ SyscallDesc("umount2", unimplementedFunc),
     /* 53 */ SyscallDesc("lock", unimplementedFunc),
-    /* 54 */ SyscallDesc("ioctl", unimplementedFunc/*ioctlFunc<MipsLinux>*/),
+    /* 54 */ SyscallDesc("ioctl", ioctlFunc<MipsLinux>),
     /* 55 */ SyscallDesc("fcntl", fcntlFunc),
     /* 56 */ SyscallDesc("mpx", unimplementedFunc),
     /* 57 */ SyscallDesc("setpgid", unimplementedFunc),