Deleted Added
sdiff udiff text old ( 11381:516213d2f0cf ) new ( 11382:654272b82e94 )
full compact
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

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

62 uint64_t st_atime_nsec;
63 uint64_t st_mtimeX;
64 uint64_t st_mtime_nsec;
65 uint64_t st_ctimeX;
66 uint64_t st_ctime_nsec;
67 int64_t unused0[3];
68 } tgt_stat64;
69
70 static SyscallFlagTransTable openFlagTable[];
71
72 static const int TGT_O_RDONLY = 00000000; //!< O_RDONLY
73 static const int TGT_O_WRONLY = 00000001; //!< O_WRONLY
74 static const int TGT_O_RDWR = 00000002; //!< O_RDWR
75 static const int TGT_O_NONBLOCK = 00004000; //!< O_NONBLOCK
76 static const int TGT_O_APPEND = 00002000; //!< O_APPEND
77 static const int TGT_O_CREAT = 00000100; //!< O_CREAT
78 static const int TGT_O_TRUNC = 00001000; //!< O_TRUNC
79 static const int TGT_O_EXCL = 00000200; //!< O_EXCL
80 static const int TGT_O_NOCTTY = 00000400; //!< O_NOCTTY
81 static const int TGT_O_SYNC = 00010000; //!< O_SYNC
82 static const int TGT_O_ASYNC = 00020000;
83 static const int TGT_O_DIRECT = 00040000; //!< O_DIRECTIO
84 static const int TGT_O_LARGEFILE = 00100000;
85 static const int TGT_O_DIRECTORY = 00200000;
86 static const int TGT_O_NOFOLLOW = 00400000;
87 static const int TGT_O_NOATIME = 01000000;
88 static const int TGT_O_CLOEXEC = 02000000;
89
90 static const int NUM_OPEN_FLAGS;
91
92 static const unsigned TGT_MAP_ANONYMOUS = 0x20;
93 static const unsigned TGT_MAP_FIXED = 0x10;
94
95 typedef struct {
96 uint64_t iov_base; // void *

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

135 uint32_t st_atime_nsec;
136 uint32_t st_mtimeX;
137 uint32_t st_mtime_nsec;
138 uint32_t st_ctimeX;
139 uint32_t st_ctime_nsec;
140 uint64_t st_ino;
141 } __attribute__((__packed__)) tgt_stat64;
142
143 static SyscallFlagTransTable openFlagTable[];
144
145 static const int TGT_O_RDONLY = 00000000; //!< O_RDONLY
146 static const int TGT_O_WRONLY = 00000001; //!< O_WRONLY
147 static const int TGT_O_RDWR = 00000002; //!< O_RDWR
148 static const int TGT_O_NONBLOCK = 00004000; //!< O_NONBLOCK
149 static const int TGT_O_APPEND = 00002000; //!< O_APPEND
150 static const int TGT_O_CREAT = 00000100; //!< O_CREAT
151 static const int TGT_O_TRUNC = 00001000; //!< O_TRUNC
152 static const int TGT_O_EXCL = 00000200; //!< O_EXCL
153 static const int TGT_O_NOCTTY = 00000400; //!< O_NOCTTY
154 static const int TGT_O_SYNC = 00010000; //!< O_SYNC
155 static const int TGT_O_ASYNC = 00020000;
156 static const int TGT_O_DIRECT = 00040000; //!< O_DIRECTIO
157 static const int TGT_O_LARGEFILE = 00100000;
158 static const int TGT_O_DIRECTORY = 00200000;
159 static const int TGT_O_NOFOLLOW = 00400000;
160 static const int TGT_O_NOATIME = 01000000;
161 static const int TGT_O_CLOEXEC = 02000000;
162
163 static const int NUM_OPEN_FLAGS;
164
165 static const unsigned TGT_MAP_ANONYMOUS = 0x20;
166 static const unsigned TGT_MAP_FIXED = 0x10;
167
168 typedef struct {
169 int32_t uptime; /* Seconds since boot */

--- 17 unchanged lines hidden ---