diff options
author | Suriyan Ramasami <suriyan.r@gmail.com> | 2014-11-17 14:39:37 -0800 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-11-23 06:49:04 -0500 |
commit | 96b1046d1c68352677aa888cc110951a68daf155 (patch) | |
tree | c5dc5804e2aa8bd4876a3057e5eb0bdeccaf9a43 /include/os.h | |
parent | 9f12cd0e062614e19734b2ab37842d387457c5e5 (diff) | |
download | u-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/os.h')
-rw-r--r-- | include/os.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/os.h b/include/os.h index 0230a7f..e3645e0 100644 --- a/include/os.h +++ b/include/os.h @@ -217,9 +217,10 @@ const char *os_dirent_get_typename(enum os_dirent_t type); * Get the size of a file * * @param fname Filename to check - * @return size of file, or -1 if an error ocurred + * @param size size of file is returned if no error + * @return 0 on success or -1 if an error ocurred */ -ssize_t os_get_filesize(const char *fname); +int os_get_filesize(const char *fname, loff_t *size); /** * Write a character to the controlling OS terminal |