-#if IRTCL_GENERIC_FILES
-void ir_select_add (Tcl_File file, void *obj);
-void ir_select_add_write (Tcl_File file, void *obj);
-void ir_select_remove (Tcl_File file, void *obj);
-void ir_select_remove_write (Tcl_File file, void *obj);
-#else
-void ir_select_add (int fd, void *obj);
-void ir_select_add_write (int fd, void *obj);
-void ir_select_remove (int fd, void *obj);
-void ir_select_remove_write (int fd, void *obj);
-#endif
-
-void ir_select_read (ClientData clientData);
-void ir_select_write (ClientData clientData);
-
+void *ir_tcl_malloc (size_t size);
+void ir_tcl_select_set (void (*f)(ClientData clientData, int r, int w, int e),
+ int fd, ClientData clientData, int r, int w, int e);