/* Copyright (c)1997 Begemot Computer Associates. All rights reserved. * See the file COPYRIGHT for details of redistribution and use. */ /* * $Id: rpoll.h.in,v 1.1 1999/10/27 18:44:06 hbb Exp $ */ # ifndef rpoll_h_ # define rpoll_h_ # ifdef __cplusplus extern "C" { # endif typedef void (*poll_f)(int fd, int mask, void *arg); typedef void (*timer_f)(int, void *); int poll_register(int fd, poll_f func, void *arg, int mask); void poll_unregister(int); void poll_dispatch(int wait); int poll_start_timer(u_int msecs, int repeat, timer_f func, void *arg); void poll_stop_timer(int); # if @DEFINED_POLLIN@ && defined(POLL_IN) # undef POLL_IN # endif # if @DEFINED_POLLIN@ && defined(POLL_OUT) # undef POLL_OUT # endif # define POLL_IN 1 # define POLL_OUT 2 # define POLL_EXCEPT 4 extern int rpoll_policy; extern int rpoll_trace; # ifdef __cplusplus } # endif # endif