29 fprintf(stderr,
"Runtime type error: fd_set_nonblock expects (int fd, int on)\n");
34 int flags = fcntl(
fd, F_GETFL, 0);
40 if (fcntl(
fd, F_SETFL,
flags) == 0)
ok = 1;
push_value(vm, make_int(ok ? 1 :0))
Tagged union representing a Fun value.
Value make_int(int64_t v)
Construct a Value representing a 64-bit integer.
static Value pop_value(VM *vm)
Pop a Value from the VM operand stack.