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