linux.cc (10037:5cac77888310) linux.cc (11381:516213d2f0cf)
1/*
2 * Copyright (c) 2011 ARM Limited
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

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

41 * Authors: Stephen Hines
42 */
43
44#include <fcntl.h>
45
46#include "arch/arm/linux/linux.hh"
47
48// open(2) flags translation table
1/*
2 * Copyright (c) 2011 ARM Limited
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

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

41 * Authors: Stephen Hines
42 */
43
44#include <fcntl.h>
45
46#include "arch/arm/linux/linux.hh"
47
48// open(2) flags translation table
49OpenFlagTransTable ArmLinux32::openFlagTable[] = {
49SyscallFlagTransTable ArmLinux32::openFlagTable[] = {
50#ifdef _MSC_VER
51 { ArmLinux32::TGT_O_RDONLY, _O_RDONLY },
52 { ArmLinux32::TGT_O_WRONLY, _O_WRONLY },
53 { ArmLinux32::TGT_O_RDWR, _O_RDWR },
54 { ArmLinux32::TGT_O_APPEND, _O_APPEND },
55 { ArmLinux32::TGT_O_CREAT, _O_CREAT },
56 { ArmLinux32::TGT_O_TRUNC, _O_TRUNC },
57 { ArmLinux32::TGT_O_EXCL, _O_EXCL },

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

94#endif
95#endif /* _MSC_VER */
96};
97
98const int ArmLinux32::NUM_OPEN_FLAGS = sizeof(ArmLinux32::openFlagTable) /
99 sizeof(ArmLinux32::openFlagTable[0]);
100
101// open(2) flags translation table
50#ifdef _MSC_VER
51 { ArmLinux32::TGT_O_RDONLY, _O_RDONLY },
52 { ArmLinux32::TGT_O_WRONLY, _O_WRONLY },
53 { ArmLinux32::TGT_O_RDWR, _O_RDWR },
54 { ArmLinux32::TGT_O_APPEND, _O_APPEND },
55 { ArmLinux32::TGT_O_CREAT, _O_CREAT },
56 { ArmLinux32::TGT_O_TRUNC, _O_TRUNC },
57 { ArmLinux32::TGT_O_EXCL, _O_EXCL },

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

94#endif
95#endif /* _MSC_VER */
96};
97
98const int ArmLinux32::NUM_OPEN_FLAGS = sizeof(ArmLinux32::openFlagTable) /
99 sizeof(ArmLinux32::openFlagTable[0]);
100
101// open(2) flags translation table
102OpenFlagTransTable ArmLinux64::openFlagTable[] = {
102SyscallFlagTransTable ArmLinux64::openFlagTable[] = {
103#ifdef _MSC_VER
104 { ArmLinux64::TGT_O_RDONLY, _O_RDONLY },
105 { ArmLinux64::TGT_O_WRONLY, _O_WRONLY },
106 { ArmLinux64::TGT_O_RDWR, _O_RDWR },
107 { ArmLinux64::TGT_O_APPEND, _O_APPEND },
108 { ArmLinux64::TGT_O_CREAT, _O_CREAT },
109 { ArmLinux64::TGT_O_TRUNC, _O_TRUNC },
110 { ArmLinux64::TGT_O_EXCL, _O_EXCL },

--- 43 unchanged lines hidden ---
103#ifdef _MSC_VER
104 { ArmLinux64::TGT_O_RDONLY, _O_RDONLY },
105 { ArmLinux64::TGT_O_WRONLY, _O_WRONLY },
106 { ArmLinux64::TGT_O_RDWR, _O_RDWR },
107 { ArmLinux64::TGT_O_APPEND, _O_APPEND },
108 { ArmLinux64::TGT_O_CREAT, _O_CREAT },
109 { ArmLinux64::TGT_O_TRUNC, _O_TRUNC },
110 { ArmLinux64::TGT_O_EXCL, _O_EXCL },

--- 43 unchanged lines hidden ---