History log of /seL4-refos-master/libs/libmuslc/src/mman/shm_open.c
Revision Date Author Comments
# ce8a9957 20-Jul-2013 Rich Felker <dalias@aerifal.cx>

fix shm_open wrongly being cancellable


# bf258341 30-Sep-2012 Rich Felker <dalias@aerifal.cx>

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.


# 6e2372a8 30-Sep-2012 Rich Felker <dalias@aerifal.cx>

clean up, bugfixes, and general improvement for shm_open/shm_unlink

1. don't make non-cloexec file descriptors
2. cancellation safety (cleanup handlers were missing, now unneeded)
3. share name validation/mapping code between open/unlink functions
4. avoid wasteful/slow syscalls


# ebd7af69 02-Mar-2011 Rich Felker <dalias@aerifal.cx>

implement POSIX shared memory