[Mono-bugs] [Bug 542485] Fix for KeventWatcher

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed May 5 09:15:51 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=542485

http://bugzilla.novell.com/show_bug.cgi?id=542485#c4


--- Comment #4 from Geoff Norton <gnorton at novell.com> 2010-05-05 13:15:50 UTC ---
The OSX structures are:

     struct kevent {
             uintptr_t       ident;          /* identifier for this event */
             int16_t         filter;         /* filter for event */
             uint16_t        flags;          /* general flags */
             uint32_t        fflags;         /* filter-specific flags */
             intptr_t        data;           /* filter-specific data */
             void            *udata;         /* opaque user data identifier */
     };

     struct kevent64_s {
             uint64_t        ident;          /* identifier for this event */
             int16_t         filter;         /* filter for event */
             uint16_t        flags;          /* general flags */
             uint32_t        fflags;         /* filter-specific flags */
             int64_t         data;           /* filter-specific data */
             uint64_t        udata;          /* opaque user data identifier */
             uint64_t        ext[2];         /* filter-specific extensions */
     };


3.  Please change the cast to cast the int to a fd when putting it in the
struct, rather than promoting fd to a IntPtr (which it is not).

Do you have any test cases that could be added to the test suite to confirm
these fixes?

Once we get these issues fixed this looks good for commiting.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list