fix some semaphore wait semantics (race condition deadlock and error checking)
[musl] / crt / x86_64 /
2011-02-15 Nicholas J. KainPort musl to x86-64. One giant commit!