Skip to content

Commit

Permalink
add realpath.c to LIBC_TOP_HALF_MUSL_SOURCES (#473)
Browse files Browse the repository at this point in the history
* provide a `realpath` stub

In #463, I added stubs for
`statvfs`, `chmod`, etc. but forgot to add one for `realpath`, which is also
required by `libc++`'s `<filesystem>` implementation.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* remove `realpath` stub and use musl's version instead

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

---------

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
  • Loading branch information
dicej authored Feb 13, 2024
1 parent a6489a8 commit 212296e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 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
1 change: 1 addition & 0 deletions expected/wasm32-wasi-preview2/defined-symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,7 @@ readlinkat
readv
realloc
reallocarray
realpath
recv
regcomp
regerror
Expand Down
1 change: 1 addition & 0 deletions expected/wasm32-wasi-threads/defined-symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,7 @@ readlinkat
readv
realloc
reallocarray
realpath
recv
regcomp
regerror
Expand Down
1 change: 1 addition & 0 deletions expected/wasm32-wasi/defined-symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,7 @@ readlinkat
readv
realloc
reallocarray
realpath
recv
regcomp
regerror
Expand Down

0 comments on commit 212296e

Please sign in to comment.