The text 3c6448d9fc13, as FreeBSD 10.1-RELEASE shipped it.
lock a semaphore
sem_timedwait(3) on FreeBSD now