From 5a6358dcd05193b67bf324f0afa0a51f93cb6d16 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 5 Jul 2007 18:01:55 +0200 Subject: [PATCH] svn_rev_453 add erase function --- include/fs.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fs.h b/include/fs.h index d0a47163e..d0a2636f3 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