mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
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>
This commit is contained in:
committed by
Tom Rini
parent
9f12cd0e06
commit
96b1046d1c
@@ -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
|
||||
|
Reference in New Issue
Block a user