Skip to content

Commit

Permalink
remove realpath stub and use musl's version instead
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Dice <[email protected]>
  • Loading branch information
dicej committed Feb 13, 2024
1 parent 85af8a6 commit cd12ce8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
7 changes: 0 additions & 7 deletions libc-bottom-half/sources/posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<filesystem>`
// implementation will build unmodified.
return NULL;
}

// Like `access`, but with `faccessat`'s flags argument.
int
__wasilibc_access(const char *path, int mode, int flags)
Expand Down

0 comments on commit cd12ce8

Please sign in to comment.