29 fprintf(stderr,
"Runtime type error: fd_poll_read expects (int fd, int timeout_ms)\n");
33 int timeout_ms = (int)
to.i;
38 int pr = poll(&pfd, 1, timeout_ms);
40 if (pfd.revents & (POLLERR | POLLHUP | POLLNVAL)) {
42 }
else if (pfd.revents & POLLIN) {
push_value(vm, make_int(rc))
Tagged union representing a Fun value.
Value make_int(int64_t v)
Construct a Value representing a 64-bit integer.