1+ #include <sys/types.h>
12#include <wasi/api.h>
23#include <wasi/wasi-helpers.h>
3- #include <emscripten/em_macros.h>
44
55// Compile as if we can pass uint64 values directly to the
66// host. Binaryen will take care of splitting any i64 params
@@ -55,9 +55,9 @@ int __syscall_mremap(intptr_t old_addr, size_t old_size, size_t new_size, int fl
5555int __syscall_poll (intptr_t fds , int nfds , int timeout );
5656int __syscall_getcwd (intptr_t buf , size_t size );
5757int __syscall_ugetrlimit (int resource , intptr_t rlim );
58- intptr_t __syscall_mmap2 (intptr_t addr , size_t len , int prot , int flags , int fd , size_t off );
59- int __syscall_truncate64 (intptr_t path , uint64_t length );
60- int __syscall_ftruncate64 (int fd , uint64_t length );
58+ intptr_t __syscall_mmap2 (intptr_t addr , size_t len , int prot , int flags , int fd , off_t offset );
59+ int __syscall_truncate64 (intptr_t path , off_t length );
60+ int __syscall_ftruncate64 (int fd , off_t length );
6161int __syscall_stat64 (intptr_t path , intptr_t buf );
6262int __syscall_lstat64 (intptr_t path , intptr_t buf );
6363int __syscall_fstat64 (int fd , intptr_t buf );
@@ -81,7 +81,7 @@ int __syscall_getdents64(int fd, intptr_t dirp, size_t count);
8181int __syscall_fcntl64 (int fd , int cmd , ...);
8282int __syscall_statfs64 (intptr_t path , size_t size , intptr_t buf );
8383int __syscall_fstatfs64 (int fd , size_t size , intptr_t buf );
84- int __syscall_fadvise64 (int fd , uint64_t offset , uint64_t length , int advice );
84+ int __syscall_fadvise64 (int fd , off_t offset , off_t length , int advice );
8585int __syscall_openat (int dirfd , intptr_t path , int flags , ...); // mode is optional
8686int __syscall_mkdirat (int dirfd , intptr_t path , int mode );
8787int __syscall_mknodat (int dirfd , intptr_t path , int mode , int dev );
@@ -96,7 +96,7 @@ int __syscall_fchmodat(int dirfd, intptr_t path, int mode, ...);
9696int __syscall_faccessat (int dirfd , intptr_t path , int amode , int flags );
9797int __syscall_pselect6 (int nfds , intptr_t readfds , intptr_t writefds , intptr_t exceptfds , intptr_t timeout , intptr_t sigmaks );
9898int __syscall_utimensat (int dirfd , intptr_t path , intptr_t times , int flags );
99- int __syscall_fallocate (int fd , int mode , int64_t off , int64_t len );
99+ int __syscall_fallocate (int fd , int mode , off_t offset , off_t len );
100100int __syscall_dup3 (int fd , int suggestfd , int flags );
101101int __syscall_pipe2 (intptr_t fds , int flags );
102102int __syscall_recvmmsg (int sockfd , intptr_t msgvec , size_t vlen , int flags , ...);
0 commit comments