diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-08-17 00:48:35 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-09-05 03:22:13 +0800 |
commit | 2f17f1a22f112bbc1eaa179914f0e5069f2a5ba2 (patch) | |
tree | ea01af61b64eab01851e3aeec8138eb0fe41ee1b /include/fs.h | |
parent | 5b1583d994c0e63b4588a75b631011e2bf41bab8 (diff) | |
download | barebox-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/fs.h')
-rw-r--r-- | include/fs.h | 5 |
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); |