linux.cc (8229:78bf55f23338) linux.cc (11381:516213d2f0cf)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 28 unchanged lines hidden (view full) ---

37 * Authors: Gabe Black
38 */
39
40#include <fcntl.h>
41
42#include "arch/x86/linux/linux.hh"
43
44// open(2) flags translation table
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 28 unchanged lines hidden (view full) ---

37 * Authors: Gabe Black
38 */
39
40#include <fcntl.h>
41
42#include "arch/x86/linux/linux.hh"
43
44// open(2) flags translation table
45OpenFlagTransTable X86Linux64::openFlagTable[] = {
45SyscallFlagTransTable X86Linux64::openFlagTable[] = {
46#ifdef _MSC_VER
47 { TGT_O_RDONLY, _O_RDONLY },
48 { TGT_O_WRONLY, _O_WRONLY },
49 { TGT_O_RDWR, _O_RDWR },
50 { TGT_O_APPEND, _O_APPEND },
51 { TGT_O_CREAT, _O_CREAT },
52 { TGT_O_TRUNC, _O_TRUNC },
53 { TGT_O_EXCL, _O_EXCL },

--- 22 unchanged lines hidden (view full) ---

76#endif /* _MSC_VER */
77};
78
79const int X86Linux64::NUM_OPEN_FLAGS =
80 sizeof(X86Linux64::openFlagTable) /
81 sizeof(X86Linux64::openFlagTable[0]);
82
83// open(2) flags translation table
46#ifdef _MSC_VER
47 { TGT_O_RDONLY, _O_RDONLY },
48 { TGT_O_WRONLY, _O_WRONLY },
49 { TGT_O_RDWR, _O_RDWR },
50 { TGT_O_APPEND, _O_APPEND },
51 { TGT_O_CREAT, _O_CREAT },
52 { TGT_O_TRUNC, _O_TRUNC },
53 { TGT_O_EXCL, _O_EXCL },

--- 22 unchanged lines hidden (view full) ---

76#endif /* _MSC_VER */
77};
78
79const int X86Linux64::NUM_OPEN_FLAGS =
80 sizeof(X86Linux64::openFlagTable) /
81 sizeof(X86Linux64::openFlagTable[0]);
82
83// open(2) flags translation table
84OpenFlagTransTable X86Linux32::openFlagTable[] = {
84SyscallFlagTransTable X86Linux32::openFlagTable[] = {
85#ifdef _MSC_VER
86 { TGT_O_RDONLY, _O_RDONLY },
87 { TGT_O_WRONLY, _O_WRONLY },
88 { TGT_O_RDWR, _O_RDWR },
89 { TGT_O_APPEND, _O_APPEND },
90 { TGT_O_CREAT, _O_CREAT },
91 { TGT_O_TRUNC, _O_TRUNC },
92 { TGT_O_EXCL, _O_EXCL },

--- 29 unchanged lines hidden ---
85#ifdef _MSC_VER
86 { TGT_O_RDONLY, _O_RDONLY },
87 { TGT_O_WRONLY, _O_WRONLY },
88 { TGT_O_RDWR, _O_RDWR },
89 { TGT_O_APPEND, _O_APPEND },
90 { TGT_O_CREAT, _O_CREAT },
91 { TGT_O_TRUNC, _O_TRUNC },
92 { TGT_O_EXCL, _O_EXCL },

--- 29 unchanged lines hidden ---