History log of /openbsd/regress/lib/libpthread/semaphore/sem_trywait/sem_trywait.c (Results 1 – 2 of 2)
Revision Date Author Comments
# ce8a7339 03-Mar-2012 guenther <guenther@openbsd.org>

While we guarantee that a zero-filled sem_t variable will trigger
EINVAL errors, a sem_t on the stack may have garbage, so make the
tests portable by moving the sem_t from function to file scope.

pr

While we guarantee that a zero-filled sem_t variable will trigger
EINVAL errors, a sem_t on the stack may have garbage, so make the
tests portable by moving the sem_t from function to file scope.

problem found by miod@

show more ...


# 3fbe19a4 04-Jan-2012 mpi <mpi@openbsd.org>

Basic semaphore tests

ok guenther@