diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-08-21 17:21:33 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-09-05 03:22:13 +0800 |
commit | 65d4f485eb53e18d2832260ce4e56799e54fc2da (patch) | |
tree | 31af0f36af14b730fabb788f742737cec83ad517 /include/fs.h | |
parent | 99684498ecf919cdf91378f278eb459cb6299b8d (diff) | |
download | barebox-65d4f485eb53e18d2832260ce4e56799e54fc2da.tar.gz barebox-65d4f485eb53e18d2832260ce4e56799e54fc2da.tar.xz |
fs: add symlink support
Limit it's support to existing file only
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'include/fs.h')
-rw-r--r-- | include/fs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h index 98210cfa9c..d96de0e89a 100644 --- a/include/fs.h +++ b/include/fs.h @@ -50,6 +50,8 @@ struct fs_driver_d { /* Truncate a file to given size */ int (*truncate)(struct device_d *dev, FILE *f, ulong size); + int (*symlink)(struct device_d *dev, const char *pathname, + const char *newpath); int (*readlink)(struct device_d *dev, const char *pathname, char *name, size_t size); @@ -131,6 +133,7 @@ DIR *opendir(const char *pathname); struct dirent *readdir(DIR *dir); int closedir(DIR *dir); +int symlink(const char *pathname, const char *newpath); int readlink(const char *path, char *buf, size_t bufsiz); int mount (const char *device, const char *fsname, const char *path); |