X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fsandboxfs.h;h=4c7745de91002d503640631f234d470c00ada0ee;hb=a177608da04b386f0d686e1774795b6f229b2f5c;hp=f5213ac10750d53086bfd7481127164ead8b926d;hpb=412665b46134f93464c09405e02f08ac9c62526d;p=karo-tx-uboot.git diff --git a/include/sandboxfs.h b/include/sandboxfs.h index f5213ac107..4c7745de91 100644 --- a/include/sandboxfs.h +++ b/include/sandboxfs.h @@ -20,11 +20,18 @@ 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); -int fs_read_sandbox(const char *filename, void *buf, int offset, int len); +int sandbox_fs_exists(const char *filename); +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