Skip to content

Commit 212296e

Browse files
authored
add realpath.c to LIBC_TOP_HALF_MUSL_SOURCES (#473)
* 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>
1 parent a6489a8 commit 212296e

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ LIBC_TOP_HALF_MUSL_SOURCES = \
127127
misc/getopt.c \
128128
misc/getopt_long.c \
129129
misc/getsubopt.c \
130+
misc/realpath.c \
130131
misc/uname.c \
131132
misc/nftw.c \
132133
errno/strerror.c \

expected/wasm32-wasi-preview2/defined-symbols.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,7 @@ readlinkat
10501050
readv
10511051
realloc
10521052
reallocarray
1053+
realpath
10531054
recv
10541055
regcomp
10551056
regerror

expected/wasm32-wasi-threads/defined-symbols.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,7 @@ readlinkat
10841084
readv
10851085
realloc
10861086
reallocarray
1087+
realpath
10871088
recv
10881089
regcomp
10891090
regerror

expected/wasm32-wasi/defined-symbols.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,7 @@ readlinkat
941941
readv
942942
realloc
943943
reallocarray
944+
realpath
944945
recv
945946
regcomp
946947
regerror

0 commit comments

Comments
 (0)