summaryrefslogtreecommitdiff
path: root/include/sandboxfs.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2014-02-03 13:21:07 -0700
committerTom Rini <trini@ti.com>2014-02-19 09:47:34 -0500
commit0a30aa1e7e4e194ecc04c5970267bd6493db8eaf (patch)
tree32e0ce8519829a7e507efe0b7e842b469dc8c54d /include/sandboxfs.h
parente5e897c01b1cd496187ca56a38ff5559d27f951c (diff)
downloadu-boot-imx-0a30aa1e7e4e194ecc04c5970267bd6493db8eaf.zip
u-boot-imx-0a30aa1e7e4e194ecc04c5970267bd6493db8eaf.tar.gz
u-boot-imx-0a30aa1e7e4e194ecc04c5970267bd6493db8eaf.tar.bz2
sandbox: implement exists() function
This hooks into the generic "file exists" support added in an earlier patch, and provides an implementation for the sandbox test environment. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/sandboxfs.h')
-rw-r--r--include/sandboxfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sandboxfs.h b/include/sandboxfs.h
index 8ea8cb7..a51ad13 100644
--- a/include/sandboxfs.h
+++ b/include/sandboxfs.h
@@ -25,6 +25,7 @@ long sandbox_fs_read_at(const char *filename, unsigned long pos,
void sandbox_fs_close(void);
int sandbox_fs_ls(const char *dirname);
+int sandbox_fs_exists(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);