X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fsandboxfs.h;h=6e6e3c62ff9612c2e1458ad52bc58b5f8ac4b1d6;hb=6f9347f3bc839a5c65be0f5392ecc9ee305f88b3;hp=e7c32623e101e31dde107d94468090dc3f041d4d;hpb=5a1095a830299aef8dd32495e505e92ab1749e89;p=u-boot diff --git a/include/sandboxfs.h b/include/sandboxfs.h index e7c32623e1..6e6e3c62ff 100644 --- a/include/sandboxfs.h +++ b/include/sandboxfs.h @@ -18,16 +18,20 @@ #ifndef __SANDBOX_FS__ #define __SANDBOX_FS__ -int sandbox_fs_set_blk_dev(block_dev_desc_t *rbdd, disk_partition_t *info); +int sandbox_fs_set_blk_dev(struct blk_desc *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); int sandbox_fs_exists(const char *filename); -int sandbox_fs_size(const char *filename); -int fs_read_sandbox(const char *filename, void *buf, int offset, int len); -int fs_write_sandbox(const char *filename, void *buf, int offset, int len); +int sandbox_fs_size(const char *filename, loff_t *size); +int fs_read_sandbox(const char *filename, void *buf, loff_t offset, loff_t len, + loff_t *actread); +int fs_write_sandbox(const char *filename, void *buf, loff_t offset, + loff_t len, loff_t *actwrite); #endif