|author||Rich Felker <firstname.lastname@example.org>||2011-03-10 21:34:19 -0500|
|committer||Rich Felker <email@example.com>||2011-03-10 21:34:19 -0500|
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.
Diffstat (limited to 'src/thread/sem_timedwait.c')
0 files changed, 0 insertions, 0 deletions