summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-08-17 00:48:35 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-09-05 03:22:13 +0800
commit2f17f1a22f112bbc1eaa179914f0e5069f2a5ba2 (patch)
treeea01af61b64eab01851e3aeec8138eb0fe41ee1b /include
parent5b1583d994c0e63b4588a75b631011e2bf41bab8 (diff)
downloadbarebox-2f17f1a22f112bbc1eaa179914f0e5069f2a5ba2.tar.gz
barebox-2f17f1a22f112bbc1eaa179914f0e5069f2a5ba2.tar.xz
fs: add readlink support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'include')
-rw-r--r--include/fs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h
index c0b9f71fbd..906d192a73 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -50,6 +50,9 @@ struct fs_driver_d {
/* Truncate a file to given size */
int (*truncate)(struct device_d *dev, FILE *f, ulong size);
+ int (*readlink)(struct device_d *dev, const char *pathname, char *name,
+ size_t size);
+
int (*open)(struct device_d *dev, FILE *f, const char *pathname);
int (*close)(struct device_d *dev, FILE *f);
int (*read)(struct device_d *dev, FILE *f, void *buf, size_t size);
@@ -124,6 +127,8 @@ DIR *opendir(const char *pathname);
struct dirent *readdir(DIR *dir);
int closedir(DIR *dir);
+int readlink(const char *path, char *buf, size_t bufsiz);
+
int mount (const char *device, const char *fsname, const char *path);
int umount(const char *pathname);