[libdispatch-dev] Solaris portability - PATCH - getprogname shim support
Mark Heily
mark at heily.com
Fri Jul 23 15:55:13 PDT 2010
On 07/23/2010 11:11 AM, Joakim Johansson wrote:
> Falling back to retrieving program name for libdispatch debug file using getexecname() for Solaris.
>
> Also made the fallback getprogname function return a ‘const’ string to the program name to avoid warnings.
>
As an alternative, I solved a lot of libdispatch portability problems on
Linux by using libbsd:
http://libbsd.freedesktop.org/wiki/
It includes getprogname(), fgetln(), the <sys/queue.h> macros, and arc4random().
Not sure if this has been ported to Solaris, but it might be helpful.
- Mark
More information about the libdispatch-dev
mailing list