forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2021-05-14 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* sim/callback.h (struct host_callback_struct): Change lseek return and
|
||||
3rd arg to int64_t. Change truncate & ftruncate 3rd arg to int64_t.
|
||||
|
||||
2021-05-14 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* callback.h: Include stdint.h.
|
||||
|
||||
@@ -73,7 +73,7 @@ struct host_callback_struct
|
||||
int (*close) (host_callback *,int);
|
||||
int (*get_errno) (host_callback *);
|
||||
int (*isatty) (host_callback *, int);
|
||||
int (*lseek) (host_callback *, int, long , int);
|
||||
int64_t (*lseek) (host_callback *, int, int64_t, int);
|
||||
int (*open) (host_callback *, const char*, int mode);
|
||||
int (*read) (host_callback *,int, char *, int);
|
||||
int (*read_stdin) ( host_callback *, char *, int);
|
||||
@@ -89,8 +89,8 @@ struct host_callback_struct
|
||||
int (*to_stat) (host_callback *, const char *, struct stat *);
|
||||
int (*to_fstat) (host_callback *, int, struct stat *);
|
||||
int (*to_lstat) (host_callback *, const char *, struct stat *);
|
||||
int (*ftruncate) (host_callback *, int, long);
|
||||
int (*truncate) (host_callback *, const char *, long);
|
||||
int (*ftruncate) (host_callback *, int, int64_t);
|
||||
int (*truncate) (host_callback *, const char *, int64_t);
|
||||
int (*pipe) (host_callback *, int *);
|
||||
|
||||
/* Called by the framework when a read call has emptied a pipe buffer. */
|
||||
|
||||
Reference in New Issue
Block a user