testwait
int testwait(sem_t *, u_int *);
if (testwait(id, &elapsed) < 0) {
if (testwait(&id, &elapsed) < 0) {