summaryrefslogtreecommitdiff
path: root/include/sandboxfs.h
diff options
context:
space:
mode:
authorSuriyan Ramasami <suriyan.r@gmail.com>2014-11-17 14:39:37 -0800
committerTom Rini <trini@ti.com>2014-11-23 06:49:04 -0500
commit96b1046d1c68352677aa888cc110951a68daf155 (patch)
treec5dc5804e2aa8bd4876a3057e5eb0bdeccaf9a43 /include/sandboxfs.h
parent9f12cd0e062614e19734b2ab37842d387457c5e5 (diff)
downloadu-boot-imx-96b1046d1c68352677aa888cc110951a68daf155.zip
u-boot-imx-96b1046d1c68352677aa888cc110951a68daf155.tar.gz
u-boot-imx-96b1046d1c68352677aa888cc110951a68daf155.tar.bz2
sandbox: Prepare API change for files greater than 2GB
Change the internal sandbox functions to use loff_t for file offsets. Signed-off-by: Suriyan Ramasami <suriyan.r@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/sandboxfs.h')
-rw-r--r--include/sandboxfs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/sandboxfs.h b/include/sandboxfs.h
index e7c3262..8e5da6b 100644
--- a/include/sandboxfs.h
+++ b/include/sandboxfs.h
@@ -20,8 +20,10 @@
int sandbox_fs_set_blk_dev(block_dev_desc_t *rbdd, disk_partition_t *info);
-long sandbox_fs_read_at(const char *filename, unsigned long pos,
- void *buffer, unsigned long maxsize);
+int sandbox_fs_read_at(const char *filename, loff_t pos, void *buffer,
+ loff_t maxsize, loff_t *actread);
+int sandbox_fs_write_at(const char *filename, loff_t pos, void *buffer,
+ loff_t maxsize, loff_t *actwrite);
void sandbox_fs_close(void);
int sandbox_fs_ls(const char *dirname);