Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | Rich Felker | 2011-03-10 | 1 | -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 semaphores | Rich Felker | 2011-03-04 | 1 | -0/+116 |