Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 24 Jun 2017 12:12:23 +0200
From: Jens Gustedt <jens.gustedt@...ia.fr>
To: musl@...ts.openwall.com
Subject: flag 128

There is also one weird use of flag 128 in sem_init. Semantically it
encodes "private" so the complement of a shared flag as used for
mutexes:

	sem->__val[2] = pshared ? 0 : 128;

Musl only uses this as a Boolean, so the semantic would be the same if
we'd just have

	sem->__val[2] = !pshared;

Do you have any recollection if the "128" was needed for
compatibility, or is this just an artefact?

Thanks
Jens

-- 
:: INRIA Nancy Grand Est ::: Camus ::::::: ICube/ICPS :::
:: ::::::::::::::: office Strasbourg : +33 368854536   ::
:: :::::::::::::::::::::: gsm France : +33 651400183   ::
:: ::::::::::::::: gsm international : +49 15737185122 ::
:: http://icube-icps.unistra.fr/index.php/Jens_Gustedt ::

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.