diff options
author | midipix <writeonce@midipix.org> | 2019-08-20 11:32:48 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-08-20 12:51:03 +0000 |
commit | 2a80f1fe5d4f7b56b3baa745c38d7203d9b4607b (patch) | |
tree | 079f1331c6e1663376d8ce7f3639e358326b557a /src | |
parent | 79bd028fa870364f8e957b448ef11f608d560c1a (diff) | |
download | mmglue-2a80f1fe5d4f7b56b3baa745c38d7203d9b4607b.tar.bz2 mmglue-2a80f1fe5d4f7b56b3baa745c38d7203d9b4607b.tar.xz |
nt32/nt64: realpath(): use the newly introduced fs_rpath system call.
Diffstat (limited to 'src')
-rw-r--r-- | src/misc/nt32/realpath.c | 4 | ||||
-rw-r--r-- | src/misc/nt64/realpath.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/misc/nt32/realpath.c b/src/misc/nt32/realpath.c index 0376011..ec8092d 100644 --- a/src/misc/nt32/realpath.c +++ b/src/misc/nt32/realpath.c @@ -3,7 +3,7 @@ #include <fcntl.h> #include <string.h> #include <errno.h> -#include "psxglue.h" +#include "syscall.h" extern const struct __psx_vtbl * __psx_vtbl; @@ -13,7 +13,7 @@ char * realpath(const char * restrict filename, char * restrict resolved) char buf[PATH_MAX]; ecode = filename - ? __psx_vtbl->fs_rpath( + ? __syscall(SYS_fs_rpath, AT_FDCWD,filename, O_NONBLOCK|O_CLOEXEC, buf,sizeof(buf)) diff --git a/src/misc/nt64/realpath.c b/src/misc/nt64/realpath.c index 0376011..ec8092d 100644 --- a/src/misc/nt64/realpath.c +++ b/src/misc/nt64/realpath.c @@ -3,7 +3,7 @@ #include <fcntl.h> #include <string.h> #include <errno.h> -#include "psxglue.h" +#include "syscall.h" extern const struct __psx_vtbl * __psx_vtbl; @@ -13,7 +13,7 @@ char * realpath(const char * restrict filename, char * restrict resolved) char buf[PATH_MAX]; ecode = filename - ? __psx_vtbl->fs_rpath( + ? __syscall(SYS_fs_rpath, AT_FDCWD,filename, O_NONBLOCK|O_CLOEXEC, buf,sizeof(buf)) |