1 #include "pthread_impl.h"
4 static pthread_once_t check_robust_once;
5 static int check_robust_result;
7 static void check_robust()
11 check_robust_result = -__syscall(SYS_get_robust_list, 0, &p, &l);
14 int pthread_mutexattr_setrobust(pthread_mutexattr_t *a, int robust)
16 if (robust > 1U) return EINVAL;
18 pthread_once(&check_robust_once, check_robust);
19 if (check_robust_result) return check_robust_result;