aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-io.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-04-24 14:40:43 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-14 21:16:40 -0400
commit2fbe9507bfba58a6a000d231fe735bad1f245b55 (patch)
tree8b4709489be830480eae1d98a37b2df8af5d60d1 /sim/common/sim-io.h
parent00330cd18a4ba83beabad4cb9f4215170828cd29 (diff)
downloadbinutils-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.h')
-rw-r--r--sim/common/sim-io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/sim-io.h b/sim/common/sim-io.h
index a091fd0..a78e8f5 100644
--- a/sim/common/sim-io.h
+++ b/sim/common/sim-io.h
@@ -53,7 +53,7 @@ int sim_io_read (SIM_DESC sd, int, char *, int);
int sim_io_open (SIM_DESC sd, const char *, int);
-int sim_io_lseek (SIM_DESC sd, int, long, int);
+int64_t sim_io_lseek (SIM_DESC sd, int, int64_t, int);
int sim_io_isatty (SIM_DESC sd, int);