diff options
author | midipix <writeonce@midipix.org> | 2019-08-25 22:53:42 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-08-25 23:02:27 +0000 |
commit | e1f10b268ae40cbc969934f8e57aa6d892f631e6 (patch) | |
tree | 3ec46e9d32ff95c7164a119694fd5f6fc66c2170 /src | |
parent | f068672c56fe16cb91563e135769710e7489cf5b (diff) | |
download | mmglue-e1f10b268ae40cbc969934f8e57aa6d892f631e6.tar.bz2 mmglue-e1f10b268ae40cbc969934f8e57aa6d892f631e6.tar.xz |
glue layer: introduced <sys/fs.h>, implemented associated interfaces.
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/nt32/fs.c | 26 | ||||
-rw-r--r-- | src/arch/nt64/fs.c | 26 |
2 files changed, 52 insertions, 0 deletions
diff --git a/src/arch/nt32/fs.c b/src/arch/nt32/fs.c new file mode 100644 index 0000000..b198777 --- /dev/null +++ b/src/arch/nt32/fs.c @@ -0,0 +1,26 @@ +#include <sys/fs.h> +#include "syscall.h" + +int __fs_rpath(int fdat, const char * path, int options, + char * buffer, size_t buflen) +{ + return __syscall(SYS_fs_rpath,fdat,path,options,buffer,buflen); +} + +int __fs_apath(int fdat, const char * path, int options, + char * buffer, size_t buflen) +{ + return __syscall(SYS_fs_apath,fdat,path,options,buffer,buflen); +} + +int __fs_npath(int fdat, const char * path, int options, + char * buffer, size_t buflen) +{ + return __syscall(SYS_fs_npath,fdat,path,options,buffer,buflen); +} + +int __fs_dpath(int fdat, const char * path, int options, + char * buffer, size_t buflen) +{ + return __syscall(SYS_fs_dpath,fdat,path,options,buffer,buflen); +} diff --git a/src/arch/nt64/fs.c b/src/arch/nt64/fs.c new file mode 100644 index 0000000..b198777 --- /dev/null +++ b/src/arch/nt64/fs.c @@ -0,0 +1,26 @@ +#include <sys/fs.h> +#include "syscall.h" + +int __fs_rpath(int fdat, const char * path, int options, + char * buffer, size_t buflen) +{ + return __syscall(SYS_fs_rpath,fdat,path,options,buffer,buflen); +} + +int __fs_apath(int fdat, const char * path, int options, + char * buffer, size_t buflen) +{ + return __syscall(SYS_fs_apath,fdat,path,options,buffer,buflen); +} + +int __fs_npath(int fdat, const char * path, int options, + char * buffer, size_t buflen) +{ + return __syscall(SYS_fs_npath,fdat,path,options,buffer,buflen); +} + +int __fs_dpath(int fdat, const char * path, int options, + char * buffer, size_t buflen) +{ + return __syscall(SYS_fs_dpath,fdat,path,options,buffer,buflen); +} |