diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:55 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:55 +0200 |
commit | 5a6358dcd05193b67bf324f0afa0a51f93cb6d16 (patch) | |
tree | b246975c09add35cdcaa0e311dc055ebc17da34f /include/fs.h | |
parent | 44635dd22e0283614c21e4444cf93bea2e5695b4 (diff) | |
download | barebox-5a6358dcd05193b67bf324f0afa0a51f93cb6d16.tar.gz barebox-5a6358dcd05193b67bf324f0afa0a51f93cb6d16.tar.xz |
svn_rev_453
add erase function
Diffstat (limited to 'include/fs.h')
-rw-r--r-- | include/fs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h index d0a47163e4..d0a2636f33 100644 --- a/include/fs.h +++ b/include/fs.h @@ -64,6 +64,9 @@ struct fs_driver_d { int (*closedir)(struct device_d *dev, DIR *dir); int (*stat)(struct device_d *dev, const char *file, struct stat *stat); + int (*erase)(struct device_d *dev, FILE *f, size_t count, + unsigned long offset); + struct driver_d drv; unsigned long flags; @@ -82,6 +85,7 @@ int unlink(const char *pathname); int close(int fd); int stat(const char *filename, struct stat *s); int read(int fd, void *buf, size_t count); +int erase(int fd, size_t count, unsigned long offset); ssize_t write(int fd, const void *buf, size_t count); #define SEEK_SET 1 |