tangled
alpha
login
or
join now
jcs.org
/
openbsd-src
0
fork
atom
jcs's openbsd hax
openbsd
0
fork
atom
overview
issues
pulls
pipelines
openbsd-src
/
regress
/
lib
/
libpthread
/
semaphore
/
sem_getvalue
/
at
master
2 files
Makefile
Basic semaphore tests
14 years ago
sem_getvalue.c
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.
14 years ago