You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#ifdef__wasilibc_unmodified_upstream/* Use alternate WASI libc headers */
#defineDT_UNKNOWN 0
#defineDT_FIFO 1
#defineDT_CHR 2
#defineDT_DIR 4
#defineDT_BLK 6
#defineDT_REG 8
#defineDT_LNK 10
#defineDT_SOCK 12
#defineDT_WHT 14
#defineIFTODT(x) ((x)>>12 & 017)
#defineDTTOIF(x) ((x)<<12)
#endif
intgetdents(int, structdirent*, size_t);
#endif
On the ruby side, we faced a compatibility issue due to missing IFTODTruby/ruby#5614 because we assume IFTODT is always defined when DT_UNKNOWN is defined, and other platforms are compatible with this.
Do you think it would be worth adding IFTODT?
The text was updated successfully, but these errors were encountered:
Currently
IFTODT
is not defined in wasi-libc, even thoughDT_XXX
family are defined.wasi-libc/libc-top-half/musl/include/dirent.h
Lines 50 to 65 in ad51334
On the ruby side, we faced a compatibility issue due to missing
IFTODT
ruby/ruby#5614 because we assumeIFTODT
is always defined whenDT_UNKNOWN
is defined, and other platforms are compatible with this.Do you think it would be worth adding
IFTODT
?The text was updated successfully, but these errors were encountered: