1/*
2 * Copyright (c)1996-2002 by Hartmut Brandt
3 * All rights reserved.
4 *
5 * Author: Hartmut Brandt
6 *
7 * Redistribution of this software and documentation and use in source and
8 * binary forms, with or without modification, are permitted provided that
--- 29 unchanged lines hidden (view full) ---
38
39typedef void (*poll_f)(int fd, int mask, void *arg);
40typedef void (*timer_f)(int, void *);
41
42int poll_register(int fd, poll_f func, void *arg, int mask);
43void poll_unregister(int);
44void poll_dispatch(int wait);
45int poll_start_timer(u_int msecs, int repeat, timer_f func, void *arg);
46void poll_stop_timer(int);
47
48# if defined(POLL_IN)
49# undef POLL_IN
50# endif
51# if defined(POLL_OUT)
52# undef POLL_OUT
53# endif
--- 13 unchanged lines hidden ---
2 * Copyright (c)1996-2002 by Hartmut Brandt
3 * All rights reserved.
4 *
5 * Author: Hartmut Brandt
6 *
7 * Redistribution of this software and documentation and use in source and
8 * binary forms, with or without modification, are permitted provided that
--- 29 unchanged lines hidden (view full) ---
38
39typedef void (*poll_f)(int fd, int mask, void *arg);
40typedef void (*timer_f)(int, void *);
41
42int poll_register(int fd, poll_f func, void *arg, int mask);
43void poll_unregister(int);
44void poll_dispatch(int wait);
45int poll_start_timer(u_int msecs, int repeat, timer_f func, void *arg);
46void poll_stop_timer(int);
47
48# if defined(POLL_IN)
49# undef POLL_IN
50# endif
51# if defined(POLL_OUT)
52# undef POLL_OUT
53# endif
--- 13 unchanged lines hidden ---