diff options
Diffstat (limited to 'lib/libc/isc/eventlib_p.h')
-rw-r--r-- | lib/libc/isc/eventlib_p.h | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/lib/libc/isc/eventlib_p.h b/lib/libc/isc/eventlib_p.h index 5896553..256279e 100644 --- a/lib/libc/isc/eventlib_p.h +++ b/lib/libc/isc/eventlib_p.h @@ -15,11 +15,11 @@ * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/*! \file - * \brief private interfaces for eventlib - * \author vix 09sep95 [initial] +/* eventlib_p.h - private interfaces for eventlib + * vix 09sep95 [initial] * - * $Id: eventlib_p.h,v 1.5.18.4 2006/03/10 00:20:08 marka Exp $ + * $Id: eventlib_p.h,v 1.3.2.1.4.4 2006/03/10 00:17:21 marka Exp $ + * $FreeBSD$ */ #ifndef _EVENTLIB_P_H @@ -39,9 +39,11 @@ #include <stdlib.h> #include <string.h> -#include <isc/heap.h> +#ifndef _LIBC #include <isc/list.h> +#include <isc/heap.h> #include <isc/memcluster.h> +#endif #define EV_MASK_ALL (EV_READ | EV_WRITE | EV_EXCEPT) #define EV_ERR(e) return (errno = (e), -1) @@ -78,14 +80,15 @@ typedef struct evConn { void * uap; int fd; int flags; -#define EV_CONN_LISTEN 0x0001 /*%< Connection is a listener. */ -#define EV_CONN_SELECTED 0x0002 /*%< evSelectFD(conn->file). */ -#define EV_CONN_BLOCK 0x0004 /*%< Listener fd was blocking. */ +#define EV_CONN_LISTEN 0x0001 /* Connection is a listener. */ +#define EV_CONN_SELECTED 0x0002 /* evSelectFD(conn->file). */ +#define EV_CONN_BLOCK 0x0004 /* Listener fd was blocking. */ evFileID file; struct evConn * prev; struct evConn * next; } evConn; +#ifndef _LIBC typedef struct evAccept { int fd; union { @@ -127,7 +130,7 @@ typedef struct evStream { evFileID file; evTimerID timer; int flags; -#define EV_STR_TIMEROK 0x0001 /*%< IFF timer valid. */ +#define EV_STR_TIMEROK 0x0001 /* IFF timer valid. */ int fd; struct iovec * iovOrig; int iovOrigCount; @@ -175,6 +178,7 @@ typedef struct evEvent_p { struct { const void *placeholder; } null; } u; } evEvent_p; +#endif #ifdef USE_POLL typedef struct { @@ -210,6 +214,7 @@ extern void __fd_set(int fd, __evEmulMask *maskp); #endif /* USE_POLL */ +#ifndef _LIBC typedef struct { /* Global. */ const evEvent_p *cur; @@ -274,8 +279,11 @@ void evDestroyTimers(const evContext_p *); /* ev_waits.c */ #define evFreeWait __evFreeWait evWait *evFreeWait(evContext_p *ctx, evWait *old); +#endif /* Global options */ +#ifndef _LIBC extern int __evOptMonoTime; +#endif #endif /*_EVENTLIB_P_H*/ |