[beports] Re: POSIX functions

Hi Salvatore,

Am 29.08.2008 um 15:33 schrieb Salvatore Benedetto:

I was wondering if there is any particular POSIX function you'd like to see implemented in Haiku (beside the rest of XSI IPC) in order to make your
porting life easier?

Personally, currently none that I'm aware of.

But I recently encountered some problems with pthread_cond_broadcast (no ticket yet since I haven't pinpointed it exactly). In a very simple C# Hello World app Mono checks for the pthread_cond_broadcast return codes and asserts that they are zero (I assume it runs single- threaded, no Garbage Collector). If I remove Mono's asserts it works as expected. The problematic return code is EINVAL iirc (B_BAD_VALUE), and I traced it to libroot's release_sem_etc, triggered by "if (count <= 0 && (flags & B_RELEASE_ALL) == 0) return B_BAD_VALUE;". Unfortunately it's hard to investigate this on the Mono side. Does the PosixTestSuite check for such subtleties?

Andreas

--
HaikuPorts homepage - http://ports.haiku-files.org
List archives: http://www.freelists.org/archives/beports
Administrative contact: brecht@xxxxxxxxxxx

Other related posts: