[Box Backup-dev] RC3 compile problems on NetBSD
Ben Summers
boxbackup-dev at fluffy.co.uk
Sat Feb 18 14:07:06 GMT 2006
On 18 Feb 2006, at 13:59, Chris Wilson wrote:
> Hi Ben,
>
>> Careful with that -- sounds like a potential API difference.
>
> The kqueue man page (on this NetBSD box) says:
>
> int
> kevent(int kq, const struct kevent *changelist, size_t nchanges,
> struct kevent *eventlist, size_t nevents,
> const struct timespec *timeout);
>
> EV_SET(&kev, ident, filter, flags, fflags, data, udata);
>
> [...]
>
> The kevent structure is defined as:
>
> struct kevent {
> uintptr_t ident; /* identifier for this event */
> uint32_t filter; /* filter for event */
> uint32_t flags; /* action flags for kqueue */
> uint32_t fflags; /* filter flag value */
> int64_t data; /* filter data value */
> intptr_t udata; /* opaque user data identifier */
> };
>
> Does that help? I don't have a kqueue man page on my Linux box to
> compare with.
Here's OpenBSD's and Darwin's
http://www.openbsd.org/cgi-bin/man.cgi?query=kqueue
http://developer.apple.com/documentation/Darwin/Reference/Manpages/
man2/kqueue.2.html
They're all slightly different. I think we need to check we're
handling this correctly.
Ben
More information about the Boxbackup-dev
mailing list