X86: Fix up the open system call's flags.
authorVince Weaver <vince@csl.cornell.edu>
Sun, 29 Apr 2012 07:31:03 +0000 (00:31 -0700)
committerVince Weaver <vince@csl.cornell.edu>
Sun, 29 Apr 2012 07:31:03 +0000 (00:31 -0700)
src/arch/x86/linux/linux.hh

index 716aa8f81eeb9802a9c1c84fe26435e6b9c0bf2e..b2047f65e9db4b41a1e60b9ef9c4f256d1027d09 100644 (file)
@@ -79,11 +79,13 @@ class X86Linux64 : public Linux
     static const int TGT_O_EXCL         = 00000200;     //!< O_EXCL
     static const int TGT_O_NOCTTY       = 00000400;     //!< O_NOCTTY
     static const int TGT_O_SYNC         = 00010000;     //!< O_SYNC
-//    static const int TGT_O_DRD        = 0x00010000;   //!< O_DRD
-//    static const int TGT_O_DIRECTIO   = 0x00020000; //!< O_DIRECTIO
-//    static const int TGT_O_CACHE      = 0x00002000;   //!< O_CACHE
-//    static const int TGT_O_DSYNC      = 0x00008000;   //!< O_DSYNC
-//    static const int TGT_O_RSYNC      = 0x00040000;   //!< O_RSYNC
+    static const int TGT_O_ASYNC        = 00020000;
+    static const int TGT_O_DIRECT       = 00040000;     //!< O_DIRECTIO
+    static const int TGT_O_LARGEFILE    = 00100000;
+    static const int TGT_O_DIRECTORY    = 00200000;
+    static const int TGT_O_NOFOLLOW     = 00400000;
+    static const int TGT_O_NOATIME      = 01000000;
+    static const int TGT_O_CLOEXEC      = 02000000;
 
     static const int NUM_OPEN_FLAGS;