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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed May 5 03:12:40 EDT 2010


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

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


--- Comment #3 from Romain Tartière <romain at blogreen.org> 2010-05-05 07:12:38 UTC ---
Hi

1.  I don't have a OSX machine and don't really know where to search for it's
man-pages and .h files.  On my system, which is FreeBSD 8.0-STABLE amd64,
'data' is a 'intptr_t', which is an '__int64_t'.

kevent documentation I used:
http://www.freebsd.org/cgi/man.cgi?query=kqueue&format=html

Following the data field (not sure we are speaking about the same thnig):
http://fxr.watson.org/fxr/source/sys/event.h?v=FREEBSD8#L62
http://fxr.watson.org/fxr/source/sys/stdint.h#L101
http://fxr.watson.org/fxr/source/amd64/include/_types.h?v=FREEBSD8#L70

2.  Hum... can't recall... Maybe I moved it because I wanted to have
StartMonitoringDirectory revert it to true if it failed.

3. While open() returns an int, the FreeBSD kevent's source require an
uintptr_t (uint64_t on amd64):
http://fxr.watson.org/fxr/source/sys/event.h?v=FREEBSD8#L58

4. Yep!  I can recall I started to look into this but was not sure about how to
do things, and since this patch fixes my issues and there are no reason for the
functions to fail "under normal operation", I did not thrown exceptions in
order to avoir breaking existing code.

-- 
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