-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160
Martin Costabel wrote:
<snip>Martin Costabel wrote: []
This might be something in the code though. Poll is not implemented in the Kernel on Mac os X, it is an emulation layer on top of the select() call. There is also a bug which Ben Hines already reported and I mentioned as well, that their implementation doe snot offer all the static values a full poll implementation offers.
poll.c:282: failed assertion `pArray != (struct pollfd *) NULL' Abort
Thus the error code you are seing might be because your software does not know anything about the emulation layer.
I did not find a recent version, but you can look at the "assert" in realk source code here:
http://www.opensource.apple.com/darwinsource/10.3.1/Libwrappers-9/poll/poll.c
This TechNote also mentions it:
http://developer.apple.com/technotes/tn2002/tn2071.html
The specifc section reads:
poll
This API is not supported in Mac OS X, instead, the function select is used. The select function does synchronous I/O multiplexing, similar to poll. This API is located in the following header files: <sys/types.h>, <sys/time.h>, <unistd.h> The select API is defined as follow:
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);
The behavior of select is not exactly the same as poll, so you will have to alter your code. select gives you a number of macros to manipulate the file descriptor returned, which is done differently in poll
An alternative to avoid changing your code is to use a wrapper around select, such as fakepoll.h. Simply include the file fakepoll.h in your code, and the library does the rest of the work. See sealiesoftware.com/fakepoll.h for more information about fakepoll.h.
Note: fakepoll.h is a third-party library and not supported by Apple.
- -d
A pity, another important application that worked perfectly on Jaguar and doesn't work on Panther.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin)
iD8DBQE/25FvPMoaMn4kKR4RAyhjAKCEolIW2VvLNWNQpg53HqcemW9XQgCglS11 UD0PVG0t41DJwdE9tvBSGU4= =0C37 -----END PGP SIGNATURE-----
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel