Message136988
> ident and data are not pointers,
That's not the point.
struct kevent declaration should be the following:
struct kevent {
uintptr_t ident; /* identifier for this event */
short filter; /* filter for event */
u_short flags; /* action flags for kqueue */
u_int fflags; /* filter flag value */
intptr_t data; /* filter data value */
void *udata; /* opaque user data identifier */
};
If this doesn't match, you'll unpack garbage when extracting members,
and since it's an unaligned access, you can even get a SIGBUS (looks
like sparc64 doesn't allow unaligned access).
> I suppose that T_UINT and T_INT should be used instead of T_UINTPTR_T and T_INTPTR_T.
Yes, we could do that on OpenBSD, but that's definitely an OpenBSD bug. |
|
Date |
User |
Action |
Args |
2011-05-26 17:47:43 | neologix | set | recipients:
+ neologix, vstinner, rpointel |
2011-05-26 17:47:43 | neologix | link | issue12181 messages |
2011-05-26 17:47:43 | neologix | create | |
|