STINNER Victor <victor.stin...@haypocalc.com> added the comment:

Le jeudi 26 mai 2011 à 14:54 +0000, Charles-François Natali a écrit :
> Charles-François Natali <neolo...@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).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12181>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to