[issue12181] SIGBUS error on OpenBSD (sparc64)

Nicholas Marriott report at bugs.python.org
Fri May 27 09:58:52 CEST 2011


Nicholas Marriott <nicholas.marriott at gmail.com> added the comment:

Hi

The second one is correct - OpenBSD -current has this in event.h:

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 */
};

It's been like that since r1.1 so probably the 3.8 man page was wrong.

I don't know that backwards compatibility would be the main concern here, more what is the justification for changing. It does make sense to have ident wide enough to store a pointer so it would be better as a long, but making filter and flags into uint32_t seems unnecessary and I think udata is fine as a void*.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12181>
_______________________________________


More information about the Python-bugs-list mailing list