#include #include #include #include #include // TODO(mhdawson): Update once sock_accept is implemented in uvwasi int main(void) { int fd = 0 ; socklen_t addrlen = 0; int flags = 0; int ret = accept(10, NULL, &addrlen); assert(ret == -1); assert(errno == EBADF); return 0; }