}
}
-/* This is mainly for src/gtk/gtkio.c, so it does not need to include
+/* This is mainly for src/glib/glibio.c, so it does not need to include
prim.h, scheme.h and everything. */
void
abort_to_c (void)
PRIMITIVE_RETURN (UNSPECIFIC);
}
}
+
+int
+interrupts_p (void)
+{
+ /* Just the pending interrupts bitmap, ignoring the INT_MASK. */
+ /* This is mainly for src/glib/glibio.c, which finds pending_
+ interrupts_p() useless; it is always /gc-ok. */
+
+ return (GET_INT_CODE);
+}
return (SR_N_FDS (r));
}
+void
+OS_select_registry_entry (select_registry_t registry,
+ unsigned int index,
+ int * fd_r,
+ unsigned int * mode_r)
+{
+ struct select_registry_s * r = registry;
+ (*fd_r) = ((SR_ENTRY (r, index)) -> fd);
+ (*mode_r) = (ENCODE_MODE ((SR_ENTRY (r, index)) -> events));
+}
+
void
OS_select_registry_result (select_registry_t registry,
unsigned int index,