This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 5/5] Add arc4random() etc. from OpenBSD 5.8


On Mar 18 19:07, Sebastian Huber wrote:
> ----- Am 18. Mrz 2016 um 18:01 schrieb Corinna Vinschen vinschen@redhat.com:
> > Patch proposal:
> > [...]
> Out of curiosity, why is this __isthreaded stuff not covered by <sys/lock.h> or only necessary here, e.g. in contrast to for example the atexit lock?

It's copied from OpenBSD, see their lib/libc/include/thread_private.h.
The foo_lock functions don't test for __isthreaded by themselves.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]