Revision e0c8a796
b/linux-user/m68k-sim.c | ||
---|---|---|
38 | 38 |
#define SYS_ISATTY 29 |
39 | 39 |
#define SYS_LSEEK 199 |
40 | 40 |
|
41 |
struct m86k_sim_stat {
|
|
41 |
struct m68k_sim_stat {
|
|
42 | 42 |
uint16_t sim_st_dev; |
43 | 43 |
uint16_t sim_st_ino; |
44 | 44 |
uint32_t sim_st_mode; |
... | ... | |
138 | 138 |
{ |
139 | 139 |
struct stat s; |
140 | 140 |
int rc; |
141 |
struct m86k_sim_stat *p;
|
|
141 |
struct m68k_sim_stat *p;
|
|
142 | 142 |
rc = check_err(env, fstat(ARG(0), &s)); |
143 | 143 |
if (rc == 0) { |
144 |
p = (struct m86k_sim_stat *)(unsigned long)ARG(1);
|
|
144 |
p = (struct m68k_sim_stat *)(unsigned long)ARG(1);
|
|
145 | 145 |
p->sim_st_dev = tswap16(s.st_dev); |
146 | 146 |
p->sim_st_ino = tswap16(s.st_ino); |
147 | 147 |
p->sim_st_mode = tswap32(s.st_mode); |
Also available in: Unified diff