This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Where does MUTEX_INITIALIZER come from on Hurd?
- From: Florian Weimer <fweimer at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 4 Nov 2015 17:55:42 +0100
- Subject: Where does MUTEX_INITIALIZER come from on Hurd?
- Authentication-results: sourceware.org; auth=none
We currently have malloc-machine.h and libc-lock.h. For NPTL targets,
malloc-machine.h provides MUTEX_INITIALIZER. But Hurd malloc-machine.h
does not provide it, and libc-lock.h references it. Where does it come
from? The generic definition (0) does not look like it would work on
Hurd because the lock is a struct.
The libc-lock.h wrappers currently do not seem to provide *any*
replacement for MUTEX_INITIALIZER. Should we assume that
zero-initialization works for mutexes?
Florian