diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-09-30 19:35:40 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-09-30 19:35:40 -0400 |
commit | bf258341b71711461ce19891674d43c135827d0e (patch) | |
tree | 29b3526a1039a2b5cce1eb73a67a99a2f6fcf0cd /include/endian.h | |
parent | 6e2372a86c7e862ed931910f8a5f4b908639d689 (diff) | |
download | musl-bf258341b71711461ce19891674d43c135827d0e.tar.gz musl-bf258341b71711461ce19891674d43c135827d0e.tar.bz2 musl-bf258341b71711461ce19891674d43c135827d0e.tar.xz musl-bf258341b71711461ce19891674d43c135827d0e.zip |
overhaul sem_open
this function was overly complicated and not even obviously correct.
avoid using openat/linkat just like in shm_open, and instead expand
pathname using code shared with shm_open. remove bogus (and dangerous,
with priorities) use of spinlocks.
this commit also heavily streamlines the code and ensures there are no
failure cases that can happen after a new semaphore has been created
in the filesystem, since that case is unreportable.
Diffstat (limited to 'include/endian.h')
0 files changed, 0 insertions, 0 deletions