tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kqueue udata



I'm using kqueue across a number of platforms now (MacOS, *BSD, Linux
via libkqueue), but the kevent struct on NetBSD introduces type warnings
by defining udata differently. Example:

// https://raw.github.com/zeromq/libzmq/master/src/kqueue.cpp

//  NetBSD defines (struct kevent).udata as intptr_t, everyone else
//  as void *.
#if defined ZMQ_HAVE_NETBSD
#define kevent_udata_t intptr_t
#else
#define kevent_udata_t void *
#endif

Would it be advantageous to follow FreeBSD by defining  'struct
event.udata' as 'void *'?

-- 
Eric Radman  |  http://eradman.com


Home | Main Index | Thread Index | Old Index