Define DTTOIF and IFTODT.

Fixes #268.
This commit is contained in:
Dan Gohman 2022-03-23 17:17:34 -07:00
parent df006e1202
commit 9c58e6c23f
3 changed files with 10 additions and 0 deletions

View File

@ -306,6 +306,7 @@ __wasi_sock_shutdown
__wasilibc_access
__wasilibc_cwd
__wasilibc_deinitialize_environ
__wasilibc_dttoif
__wasilibc_ensure_environ
__wasilibc_environ
__wasilibc_environ
@ -314,6 +315,7 @@ __wasilibc_find_abspath
__wasilibc_find_relpath
__wasilibc_find_relpath_alloc
__wasilibc_get_environ
__wasilibc_iftodt
__wasilibc_initialize_environ
__wasilibc_link
__wasilibc_link_newat

View File

@ -176,6 +176,7 @@
#define DO 253
#define DONT 254
#define DOUBLEBITS (sizeof(double) * 8)
#define DTTOIF(x) (__wasilibc_dttoif(x))
#define DT_BLK __WASI_FILETYPE_BLOCK_DEVICE
#define DT_CHR __WASI_FILETYPE_CHARACTER_DEVICE
#define DT_DIR __WASI_FILETYPE_DIRECTORY
@ -547,6 +548,7 @@
#define ICMP_UNREACH_SRCFAIL 5
#define ICMP_UNREACH_TOSHOST 12
#define ICMP_UNREACH_TOSNET 11
#define IFTODT(x) (__wasilibc_iftodt(x))
#define IGMP_AWAKENING_MEMBER 5
#define IGMP_DELAYING_MEMBER 1
#define IGMP_DVMRP 0x13

View File

@ -11,6 +11,12 @@
#define DT_REG __WASI_FILETYPE_REGULAR_FILE
#define DT_UNKNOWN __WASI_FILETYPE_UNKNOWN
#define IFTODT(x) (__wasilibc_iftodt(x))
#define DTTOIF(x) (__wasilibc_dttoif(x))
int __wasilibc_iftodt(int x);
int __wasilibc_dttoif(int x);
#include <__struct_dirent.h>
#include <__typedef_DIR.h>