diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-04-24 14:40:43 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-14 21:16:40 -0400 |
commit | 2fbe9507bfba58a6a000d231fe735bad1f245b55 (patch) | |
tree | 8b4709489be830480eae1d98a37b2df8af5d60d1 /sim/common/sim-io.c | |
parent | 00330cd18a4ba83beabad4cb9f4215170828cd29 (diff) | |
download | binutils-2fbe9507bfba58a6a000d231fe735bad1f245b55.zip binutils-2fbe9507bfba58a6a000d231fe735bad1f245b55.tar.gz binutils-2fbe9507bfba58a6a000d231fe735bad1f245b55.tar.bz2 |
sim: callback: convert FS interfaces to 64-bit
Rather than rely on off_t being the right size between the host &
target, have the interface always be 64-bit. We can figure out if
we need to truncate when actually outputting it to the right target.
Diffstat (limited to 'sim/common/sim-io.c')
-rw-r--r-- | sim/common/sim-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/sim-io.c b/sim/common/sim-io.c index e5da7f1..edef26e 100644 --- a/sim/common/sim-io.c +++ b/sim/common/sim-io.c @@ -211,10 +211,10 @@ sim_io_open (SIM_DESC sd, } -int +int64_t sim_io_lseek (SIM_DESC sd, int fd, - long off, + int64_t off, int way) { return STATE_CALLBACK (sd)->lseek (STATE_CALLBACK (sd), fd, off, way); |