[Lumiera] hi
Christian Thaeter
ct at pipapo.org
Mon Dec 1 23:47:59 CET 2008
Burkhard Plaum wrote:
> Hi,
>
> Christian Thaeter wrote
>> Bert Debuck wrote:
>> OS X is POSIX conforming (more or less), we do not specially target it
>> but maintaining a port to it should be doable.
>
> Some time ago I ported the whole gmerlin to OSX. It was a bit crashy (but
> worked) and the owner of the MAC is short of time. 2 important things I
> stumbled upon:
>
> - Posix semaphores are not implemented. The functions are there but
> always return an error
I try to avoid semaphores anyways, prefering mutexes (they are faster on
linux, have more sane semantic). Note that there is a option to posix
mutexes that make them shared over processes, iirc thats not implemented
in linux/glibc, but maybe it helps you for the gmerlin semaphore problem.
I really think serious OSX port needs some maintainer, I cant do it, I
dont have a mac, neither do I want to do it. Just occational
crosscompiling and having someone who tells "It works for me" is not the
way to to go. We just waiting until someone shows up to take that job
(as well, i saied nicholas might do it, but he seems to be busy this
days too).
>
> - Configuring a socket such that writing when the other end disconnected
> returns an error instead of a SIGPIPE is done differently on Linux and
> OSX. Not sure if there is an official Posix was to do this.
>
> The corresponding configure checks and a BSD-licensed semaphore
> implementation are in the gmerlin(-avdecoder) trees.
>
> Burkhard
>
> _______________________________________________
> Lumiera mailing list
> Lumiera at lists.lumiera.org
> http://lists.lumiera.org/cgi-bin/mailman/listinfo/lumiera
More information about the Lumiera
mailing list