| Commit message (Expand) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | fix temp file leak in sem_open on successful creation of new semaphore | Rich Felker | 2013-06-26 | 1 | -2/+2 |
| * | fix bug whereby sem_open leaked its own internal slots on failure | Rich Felker | 2013-06-26 | 1 | -3/+6 |
| * | in sem_open, don't leak vm mapping if fstat fails•••fstat should not fail under normal circumstances, so this fix is mostly theoretical. | Rich Felker | 2013-06-26 | 1 | -2/+2 |
| * | protect sem_open against cancellation•••also fix one minor bug: failure to free the early-reserved slot when the semaphore later found to already be mapped. | Rich Felker | 2012-09-30 | 1 | -13/+19 |
| * | 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. | Rich Felker | 2012-09-30 | 1 | -105/+96 |
| * | sem_open should make process-shared semaphores•••this did not matter because we don't yet treat process-shared special. when private futex support is added, however, it will matter. | Rich Felker | 2012-09-29 | 1 | -1/+1 |
| * | use O_CLOEXEC to open semaphore files in sem_open | Rich Felker | 2012-09-29 | 1 | -2/+2 |
| * | fix useless use of potentially-uninitialized mode variable in sem_open | Rich Felker | 2011-06-26 | 1 | -1/+1 |
| * | fix failure behavior of sem_open when sem does not exist | Rich Felker | 2011-03-10 | 1 | -1/+5 |
| * | fix sem_open and sem_close to obey posix semantics•••multiple opens of the same named semaphore must return the same pointer, and only the last close can unmap it. thus the ugly global state keeping track of mappings. the maximum number of distinct named semaphores that can be opened is limited sufficiently small that the linear searches take trivial time, especially compared to the syscall overhead of these functions. | Rich Felker | 2011-03-10 | 1 | -26/+80 |
| * | implement POSIX semaphores | Rich Felker | 2011-03-04 | 1 | -0/+116 |
