Message136979
Le jeudi 26 mai 2011 à 14:54 +0000, Charles-François Natali a écrit :
> Charles-François Natali <neologix@free.fr> added the comment:
>
> OpenBSD's struct kevent definition looks fishy:
> http://www.openbsd.org/cgi-bin/cvsweb/src/sys/sys/event.h?rev=1.15;content-type=text%2Fplain
>
> struct kevent {
> u_int ident; /* identifier for this event */
> short filter; /* filter for event */
> u_short flags;
> u_int fflags;
> int data;
> void *udata; /* opaque user data identifier */
> };
>
> ident and data should be uintptr_t/intptr_t
ident and data are not pointers, I suppose that T_UINT and T_INT should
be used instead of T_UINTPTR_T and T_INTPTR_T. intptr_t is bigger than
an int on a 64 bits system (void*: 64 bits, int: 32 bits). |
|
Date |
User |
Action |
Args |
2011-05-26 16:29:03 | vstinner | set | recipients:
+ vstinner, neologix, rpointel |
2011-05-26 16:29:03 | vstinner | link | issue12181 messages |
2011-05-26 16:29:02 | vstinner | create | |
|