This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients neologix, rpointel, vstinner
Date 2011-05-26.16:29:02
SpamBayes Score 0.00028457626
Marked as misclassified No
Message-id <1306427336.5619.2.camel@marge>
In-reply-to <1306421668.75.0.922701471764.issue12181@psf.upfronthosting.co.za>
Content
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).
History
Date User Action Args
2011-05-26 16:29:03vstinnersetrecipients: + vstinner, neologix, rpointel
2011-05-26 16:29:03vstinnerlinkissue12181 messages
2011-05-26 16:29:02vstinnercreate