diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2014-11-13 19:36:08 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-13 11:58:59 -0800 |
commit | 4096383fb57ab33e9adc32a13f20b7a58a2c33c7 (patch) | |
tree | f6c1a20f0ea269256a0124955487b911dae6b583 /linux.c | |
parent | 61dc19d2e0bc69004b03a990993eda547f4e0093 (diff) | |
download | subsurface-4096383fb57ab33e9adc32a13f20b7a58a2c33c7.tar.gz |
Add subsurface_access()
For our usage the method will acept UTF-8 paths,
which are converted to UTF-16 on Win32.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'linux.c')
-rw-r--r-- | linux.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -164,6 +164,11 @@ void *subsurface_opendir(const char *path) return (void *)opendir(path); } +int subsurface_access(const char *path, int mode) +{ + return access(path, mode); +} + struct zip *subsurface_zip_open_readonly(const char *path, int flags, int *errorp) { return zip_open(path, flags, errorp); |