about summary refs log tree commit diff
path: root/src/thread/sem_open.c
Commit message (Collapse)AuthorAgeFilesLines
* sem_open should make process-shared semaphoresRich Felker2012-09-291-1/+1
| | | | | this did not matter because we don't yet treat process-shared special. when private futex support is added, however, it will matter.
* use O_CLOEXEC to open semaphore files in sem_openRich Felker2012-09-291-2/+2
|
* fix useless use of potentially-uninitialized mode variable in sem_openRich Felker2011-06-261-1/+1
|
* fix failure behavior of sem_open when sem does not existRich Felker2011-03-101-1/+5
|
* fix sem_open and sem_close to obey posix semanticsRich Felker2011-03-101-26/+80
| | | | | | | | | 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.
* implement POSIX semaphoresRich Felker2011-03-041-0/+116