fix wide scanf's handling of input failure on %c, and simplify %[
[musl] / src / thread / pthread_spin_trylock.c
1 #include "pthread_impl.h"
2
3 int pthread_spin_trylock(pthread_spinlock_t *s)
4 {
5         return -a_swap(s, 1) & EBUSY;
6 }