[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?
The idea was that it can be used as both a pointer and a number. But I
don't think that this advantage justifies the compatibility problem.
Matthias Scheler http://zhadum.org.uk/
Main Index |
Thread Index |