[Zlib-devel] #ifdef out strerror prototype for VMS

Cosmin Truta cosmin at cs.toronto.edu
Mon Jun 28 23:52:00 EDT 2004


On Sat, 26 Jun 2004, Mark Brown wrote:

> On Sat, Jun 26, 2004 at 10:42:18AM -0700, Mark Adler wrote:
>
> > If anyone knows of portable semaphore operations common in C libraries,
> > I could try to fix this.  A quick look on Mac OS X reveals semget() and
> > semop(), but I don't know if those are common.
>
> These are reasonably portable on Unix systems, though not the preferred
> solution where pthreads is avaliable.  If you're getting into stuff like
> that my feeling would be that it's probably better to either provide a
> documented non-reentrant initialisation function for people using
> threads or start having a porting layer that people can use.

A non-reentrant initialization is portable and much less painful. What
porting layer were you thinking about? One that works with Sys/V
semaphores, or with POSIX threads, or with Win32 threads, or with all of
these, or with something else?

Let's stay out of trouble. Even staying with the 8k overhead isn't such
a bad idea...

Best regards,
Cosmin




More information about the Zlib-devel mailing list