Current-Users archive

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

Re: Type of udata in kevent

On Sat, Nov 10, 2012 at 10:40:19AM -0500, D'Arcy J.M. Cain wrote:
> In /usr/include/sys/event.h we define udata in the kevent structure as
> intptr_t.  FreeBSD defines it as a void *.  This is a problem with
> portability.  The comment describes udata as "opaque user data
> identifier" suggesting that FreeBSD is correct.  Does anyone know why
> we call it a pointer to an int?

Because the API comes from OS X, and it is intptr_t in OS X.

Why FreeBSD chose to break compatibility, I don't know.


Home | Main Index | Thread Index | Old Index