[fpc-devel] Why FreeBSD sem_init() works different to Linux?
Marco van de Voort
marcov at stack.nl
Wed Feb 6 20:43:13 CET 2013
In our previous episode, Graeme Geldenhuys said:
> OK, now that we established that semaphores are broken in FreeBSD using
> FPC 2.6.0 and the upcoming FPC 2.6.2. I'm looking for an alternative.
> An alternative for two reasons.
> - I hate IFDEF code, and the semaphore code between Linux, FreeBSD
> and Windows are different.
> - Semaphore sem_t structure is incorrectly defined for FreeBSD, so
> I'll have to implement a special case for that platform.
Why do you not use the standard syncobjs implementations? In 2.6.2 they
should be ok. (only the types exported by unixtype/unix/baseunix are wrong)
More information about the fpc-devel
mailing list