From cd12ce86edc6961133d869563fcdf4626783888c Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 13 Feb 2024 10:08:08 -0700 Subject: [PATCH] remove `realpath` stub and use musl's version instead Signed-off-by: Joel Dice --- Makefile | 1 + libc-bottom-half/sources/posix.c | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Makefile b/Makefile index b96ba3358..106dade31 100644 --- a/Makefile +++ b/Makefile @@ -127,6 +127,7 @@ LIBC_TOP_HALF_MUSL_SOURCES = \ misc/getopt.c \ misc/getopt_long.c \ misc/getsubopt.c \ + misc/realpath.c \ misc/uname.c \ misc/nftw.c \ errno/strerror.c \ diff --git a/libc-bottom-half/sources/posix.c b/libc-bottom-half/sources/posix.c index 710f8be2d..7da6a3df6 100644 --- a/libc-bottom-half/sources/posix.c +++ b/libc-bottom-half/sources/posix.c @@ -351,13 +351,6 @@ int fstatvfs(int fd, struct statvfs *buf) { return -1; } -char *realpath (const char *__restrict file_name, char *__restrict resolved_name) { - // TODO: We plan to support this eventually in WASI, but not yet. - // Meanwhile, we provide a stub so that libc++'s `` - // implementation will build unmodified. - return NULL; -} - // Like `access`, but with `faccessat`'s flags argument. int __wasilibc_access(const char *path, int mode, int flags)