MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __syscall_poll_nonblocking

Function __syscall_poll_nonblocking

system/lib/wasmfs/syscalls.cpp:1443–1445  ·  view source on GitHub ↗

libc routes zero-timeout poll() calls here (see musl's poll.c). WasmFS's __syscall_poll never blocks, so the zero-timeout probe is the same call.

Source from the content-addressed store, hash-verified

1441// libc routes zero-timeout poll() calls here (see musl's poll.c). WasmFS's
1442// __syscall_poll never blocks, so the zero-timeout probe is the same call.
1443int __syscall_poll_nonblocking(struct pollfd* fds, nfds_t nfds) {
1444 return __syscall_poll(fds, nfds, 0);
1445}
1446
1447int __syscall_fallocate(int fd, int mode, off_t offset, off_t len) {
1448 assert(mode == 0); // TODO, but other modes were never supported in the old FS

Callers 1

pollFunction · 0.50

Calls 1

__syscall_pollFunction · 0.70

Tested by

no test coverage detected