Current-Users archive

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

Re: Type of udata in kevent



On Nov 10, 2012, at 7:40 AM, 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?

No, we define it as an integer type which is the same size as a void *.




Home | Main Index | Thread Index | Old Index