[Zlib-devel] #ifdef out strerror prototype for VMS
Mark Brown
broonie at sirena.org.uk
Sat Jun 26 17:17:37 EDT 2004
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.
--
"You grabbed my hand and we fell into it, like a daydream - or a fever."
More information about the Zlib-devel
mailing list