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 neologix
Recipients neologix, rpointel, vstinner
Date 2011-05-26.17:47:43
SpamBayes Score 0.00010025633
Marked as misclassified No
Message-id <BANLkTikKQH0Nu-sLJLCUGrMxkm5k=H9N4A@mail.gmail.com>
In-reply-to <1306427336.5619.2.camel@marge>
Content
> 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.
History
Date User Action Args
2011-05-26 17:47:43neologixsetrecipients: + neologix, vstinner, rpointel
2011-05-26 17:47:43neologixlinkissue12181 messages
2011-05-26 17:47:43neologixcreate