Lines Matching refs:ret

94 #define SEM_ERROR ret
320 int ret = hg_rtld_bind_clear(flags); in _ti_bind_clear_intercept_WRK() local
323 return ret; in _ti_bind_clear_intercept_WRK()
405 int ret; in pthread_create_WRK() local
427 CALL_FN_W_WWWW(ret, fn, thread,attr,mythread_wrapper,&xargs[0]); in pthread_create_WRK()
431 if (ret == 0) { in pthread_create_WRK()
444 DO_PthAPIerror( "pthread_create", ret ); in pthread_create_WRK()
452 fprintf(stderr, " :: pth_create -> %d >>\n", ret); in pthread_create_WRK()
454 return ret; in pthread_create_WRK()
493 int ret; in thr_create_WRK() local
509 CALL_FN_W_6W(ret, fn, stk, stksize, mythread_wrapper, start, flags, in thr_create_WRK()
514 if (ret == 0) { in thr_create_WRK()
520 DO_PthAPIerror("thr_create", ret); in thr_create_WRK()
526 fprintf(stderr, " :: thr_create -> %d >>\n", ret); in thr_create_WRK()
528 return ret; in thr_create_WRK()
546 int ret; in pthread_join_WRK() local
553 CALL_FN_W_WW(ret, fn, thread,value_pointer); in pthread_join_WRK()
558 if (ret == 0 /*success*/) { in pthread_join_WRK()
561 DO_PthAPIerror( "pthread_join", ret ); in pthread_join_WRK()
565 fprintf(stderr, " :: pth_join -> %d >>\n", ret); in pthread_join_WRK()
567 return ret; in pthread_join_WRK()
640 int ret; in thr_join_WRK() local
647 CALL_FN_W_WWW(ret, fn, joinee, departed, thread_return); in thr_join_WRK()
649 if (ret == 0 /*success*/) { in thr_join_WRK()
652 DO_PthAPIerror("thr_join", ret); in thr_join_WRK()
656 fprintf(stderr, " :: thr_join -> %d >>\n", ret); in thr_join_WRK()
658 return ret; in thr_join_WRK()
760 int ret; in PTH_FUNC() local
776 CALL_FN_W_WW(ret, fn, mutex,attr); in PTH_FUNC()
778 if (ret == 0 /*success*/) { in PTH_FUNC()
782 DO_PthAPIerror( "pthread_mutex_init", ret ); in PTH_FUNC()
786 fprintf(stderr, " :: mxinit -> %d >>\n", ret); in PTH_FUNC()
788 return ret; in PTH_FUNC()
797 int ret; in PTH_FUNC() local
807 CALL_FN_W_WWW(ret, fn, mutex, type, arg); in PTH_FUNC()
809 if (ret == 0 /*success*/) { in PTH_FUNC()
813 DO_PthAPIerror("mutex_init", ret); in PTH_FUNC()
817 fprintf(stderr, " :: mxinit -> %d >>\n", ret); in PTH_FUNC()
819 return ret; in PTH_FUNC()
831 int ret; in mutex_destroy_WRK() local
850 CALL_FN_W_W(ret, fn, mutex); in mutex_destroy_WRK()
852 if (ret != 0) { in mutex_destroy_WRK()
853 DO_PthAPIerror( "pthread_mutex_destroy", ret ); in mutex_destroy_WRK()
857 fprintf(stderr, " :: mxdestroy -> %d >>\n", ret); in mutex_destroy_WRK()
859 return ret; in mutex_destroy_WRK()
884 int ret; in mutex_lock_WRK() local
894 CALL_FN_W_W(ret, fn, mutex); in mutex_lock_WRK()
902 pthread_mutex_t *, mutex, long, (ret == 0) ? True : False); in mutex_lock_WRK()
904 if (ret != 0) { in mutex_lock_WRK()
905 DO_PthAPIerror( "pthread_mutex_lock", ret ); in mutex_lock_WRK()
909 fprintf(stderr, " :: mxlock -> %d >>\n", ret); in mutex_lock_WRK()
911 return ret; in mutex_lock_WRK()
969 int ret; in mutex_trylock_WRK() local
979 CALL_FN_W_W(ret, fn, mutex); in mutex_trylock_WRK()
987 pthread_mutex_t *, mutex, long, (ret == 0) ? True : False); in mutex_trylock_WRK()
989 if (ret != 0) { in mutex_trylock_WRK()
990 if (ret != EBUSY) in mutex_trylock_WRK()
991 DO_PthAPIerror( "pthread_mutex_trylock", ret ); in mutex_trylock_WRK()
995 fprintf(stderr, " :: mxtrylock -> %d >>\n", ret); in mutex_trylock_WRK()
997 return ret; in mutex_trylock_WRK()
1025 int ret; in mutex_timedlock_WRK() local
1036 CALL_FN_W_WW(ret, fn, mutex,timeout); in mutex_timedlock_WRK()
1044 pthread_mutex_t *, mutex, long, (ret == 0) ? True : False); in mutex_timedlock_WRK()
1046 if (ret != 0) { in mutex_timedlock_WRK()
1047 if (ret != ETIMEDOUT) in mutex_timedlock_WRK()
1048 DO_PthAPIerror( "pthread_mutex_timedlock", ret ); in mutex_timedlock_WRK()
1052 fprintf(stderr, " :: mxtimedlock -> %d >>\n", ret); in mutex_timedlock_WRK()
1054 return ret; in mutex_timedlock_WRK()
1078 int ret; in mutex_unlock_WRK() local
1089 CALL_FN_W_W(ret, fn, mutex); in mutex_unlock_WRK()
1094 if (ret != 0) { in mutex_unlock_WRK()
1095 DO_PthAPIerror( "pthread_mutex_unlock", ret ); in mutex_unlock_WRK()
1099 fprintf(stderr, " mxunlk -> %d >>\n", ret); in mutex_unlock_WRK()
1101 return ret; in mutex_unlock_WRK()
1167 int ret; in pthread_cond_wait_WRK() local
1195 CALL_FN_W_WW(ret, fn, cond,mutex); in pthread_cond_wait_WRK()
1202 pthread_mutex_t *, mutex, long, (ret == 0) ? True : False); in pthread_cond_wait_WRK()
1207 long, (ret == 0 && mutex_is_valid) ? True : False); in pthread_cond_wait_WRK()
1209 if (ret != 0) { in pthread_cond_wait_WRK()
1210 DO_PthAPIerror( "pthread_cond_wait", ret ); in pthread_cond_wait_WRK()
1214 fprintf(stderr, " cowait -> %d >>\n", ret); in pthread_cond_wait_WRK()
1217 return ret; in pthread_cond_wait_WRK()
1256 int ret; in pthread_cond_timedwait_WRK() local
1287 CALL_FN_W_WWW(ret, fn, cond,mutex,abstime); in pthread_cond_timedwait_WRK()
1289 if (mutex_is_valid && !abstime_is_valid && ret != EINVAL) { in pthread_cond_timedwait_WRK()
1292 " EINVAL", ret); in pthread_cond_timedwait_WRK()
1299 long, (ret == 0 || ret == timeout_error) ? True : False); in pthread_cond_timedwait_WRK()
1304 long,ret == timeout_error, in pthread_cond_timedwait_WRK()
1305 long, (ret == 0 || ret == timeout_error) && mutex_is_valid in pthread_cond_timedwait_WRK()
1308 if (ret != 0 && ret != timeout_error) { in pthread_cond_timedwait_WRK()
1309 DO_PthAPIerror( "pthread_cond_timedwait", ret ); in pthread_cond_timedwait_WRK()
1313 fprintf(stderr, " cotimedwait -> %d >>\n", ret); in pthread_cond_timedwait_WRK()
1316 return ret; in pthread_cond_timedwait_WRK()
1367 int ret; in pthread_cond_signal_WRK() local
1379 CALL_FN_W_W(ret, fn, cond); in pthread_cond_signal_WRK()
1384 if (ret != 0) { in pthread_cond_signal_WRK()
1385 DO_PthAPIerror( "pthread_cond_signal", ret ); in pthread_cond_signal_WRK()
1389 fprintf(stderr, " cosig -> %d >>\n", ret); in pthread_cond_signal_WRK()
1392 return ret; in pthread_cond_signal_WRK()
1428 int ret; in pthread_cond_broadcast_WRK() local
1440 CALL_FN_W_W(ret, fn, cond); in pthread_cond_broadcast_WRK()
1445 if (ret != 0) { in pthread_cond_broadcast_WRK()
1446 DO_PthAPIerror( "pthread_cond_broadcast", ret ); in pthread_cond_broadcast_WRK()
1450 fprintf(stderr, " cobro -> %d >>\n", ret); in pthread_cond_broadcast_WRK()
1453 return ret; in pthread_cond_broadcast_WRK()
1487 int ret; in pthread_cond_init_WRK() local
1496 CALL_FN_W_WW(ret, fn, cond, cond_attr); in pthread_cond_init_WRK()
1498 if (ret == 0) { in pthread_cond_init_WRK()
1502 DO_PthAPIerror( "pthread_cond_init", ret ); in pthread_cond_init_WRK()
1506 fprintf(stderr, " coinit -> %d >>\n", ret); in pthread_cond_init_WRK()
1509 return ret; in pthread_cond_init_WRK()
1530 int ret; in PTH_FUNC() local
1538 CALL_FN_W_WWW(ret, fn, cond, type, arg); in PTH_FUNC()
1540 if (ret == 0) { in PTH_FUNC()
1546 DO_PthAPIerror("cond_init", ret); in PTH_FUNC()
1550 fprintf(stderr, " cond_init -> %d >>\n", ret); in PTH_FUNC()
1553 return ret; in PTH_FUNC()
1568 int ret; in pthread_cond_destroy_WRK() local
1589 CALL_FN_W_W(ret, fn, cond); in pthread_cond_destroy_WRK()
1591 if (ret != 0) { in pthread_cond_destroy_WRK()
1592 DO_PthAPIerror( "pthread_cond_destroy", ret ); in pthread_cond_destroy_WRK()
1596 fprintf(stderr, " codestr -> %d >>\n", ret); in pthread_cond_destroy_WRK()
1599 return ret; in pthread_cond_destroy_WRK()
1646 int ret; in PTH_FUNC() local
1661 CALL_FN_W_WWW(ret, fn, bar,attr,count); in PTH_FUNC()
1663 if (ret != 0) { in PTH_FUNC()
1664 DO_PthAPIerror( "pthread_barrier_init", ret ); in PTH_FUNC()
1668 fprintf(stderr, " pthread_barrier_init -> %d >>\n", ret); in PTH_FUNC()
1671 return ret; in PTH_FUNC()
1682 int ret; in PTH_FUNC() local
1699 CALL_FN_W_W(ret, fn, bar); in PTH_FUNC()
1701 if (ret != 0 && ret != PTHREAD_BARRIER_SERIAL_THREAD) { in PTH_FUNC()
1702 DO_PthAPIerror( "pthread_barrier_wait", ret ); in PTH_FUNC()
1706 fprintf(stderr, " pthread_barrier_wait -> %d >>\n", ret); in PTH_FUNC()
1709 return ret; in PTH_FUNC()
1720 int ret; in PTH_FUNC() local
1732 CALL_FN_W_W(ret, fn, bar); in PTH_FUNC()
1734 if (ret != 0) { in PTH_FUNC()
1735 DO_PthAPIerror( "pthread_barrier_destroy", ret ); in PTH_FUNC()
1739 fprintf(stderr, " pthread_barrier_destroy -> %d >>\n", ret); in PTH_FUNC()
1742 return ret; in PTH_FUNC()
1778 int ret; in pthread_spin_init_or_unlock_WRK() local
1788 CALL_FN_W_WW(ret, fn, lock,pshared); in pthread_spin_init_or_unlock_WRK()
1790 if (ret == 0 /*success*/) { in pthread_spin_init_or_unlock_WRK()
1794 DO_PthAPIerror( "pthread_spinlock_{init,unlock}", ret ); in pthread_spin_init_or_unlock_WRK()
1798 fprintf(stderr, " :: spiniORu -> %d >>\n", ret); in pthread_spin_init_or_unlock_WRK()
1800 return ret; in pthread_spin_init_or_unlock_WRK()
1834 int ret; in pthread_spin_destroy_WRK() local
1845 CALL_FN_W_W(ret, fn, lock); in pthread_spin_destroy_WRK()
1847 if (ret != 0) { in pthread_spin_destroy_WRK()
1848 DO_PthAPIerror( "pthread_spin_destroy", ret ); in pthread_spin_destroy_WRK()
1852 fprintf(stderr, " :: spindestroy -> %d >>\n", ret); in pthread_spin_destroy_WRK()
1854 return ret; in pthread_spin_destroy_WRK()
1879 int ret; in pthread_spin_lock_WRK() local
1890 CALL_FN_W_W(ret, fn, lock); in pthread_spin_lock_WRK()
1897 if (ret == 0 /*success*/) { in pthread_spin_lock_WRK()
1901 DO_PthAPIerror( "pthread_spin_lock", ret ); in pthread_spin_lock_WRK()
1905 fprintf(stderr, " :: spinlock -> %d >>\n", ret); in pthread_spin_lock_WRK()
1907 return ret; in pthread_spin_lock_WRK()
1932 int ret; in pthread_spin_trylock_WRK() local
1943 CALL_FN_W_W(ret, fn, lock); in pthread_spin_trylock_WRK()
1950 if (ret == 0 /*success*/) { in pthread_spin_trylock_WRK()
1954 if (ret != EBUSY) in pthread_spin_trylock_WRK()
1955 DO_PthAPIerror( "pthread_spin_trylock", ret ); in pthread_spin_trylock_WRK()
1959 fprintf(stderr, " :: spin_trylock -> %d >>\n", ret); in pthread_spin_trylock_WRK()
1961 return ret; in pthread_spin_trylock_WRK()
2009 int ret; in pthread_rwlock_init_WRK() local
2016 CALL_FN_W_WW(ret, fn, rwl,attr); in pthread_rwlock_init_WRK()
2018 if (ret == 0 /*success*/) { in pthread_rwlock_init_WRK()
2022 DO_PthAPIerror( "pthread_rwlock_init", ret ); in pthread_rwlock_init_WRK()
2026 fprintf(stderr, " :: rwl_init -> %d >>\n", ret); in pthread_rwlock_init_WRK()
2028 return ret; in pthread_rwlock_init_WRK()
2056 int ret; in PTH_FUNC() local
2063 CALL_FN_W_WWW(ret, fn, rwlock, type, arg); in PTH_FUNC()
2065 if (ret == 0 /*success*/) { in PTH_FUNC()
2069 DO_PthAPIerror("rwlock_init", ret); in PTH_FUNC()
2073 fprintf(stderr, " :: rwl_init -> %d >>\n", ret); in PTH_FUNC()
2075 return ret; in PTH_FUNC()
2089 int ret; in pthread_rwlock_destroy_WRK() local
2099 CALL_FN_W_W(ret, fn, rwl); in pthread_rwlock_destroy_WRK()
2101 if (ret != 0) { in pthread_rwlock_destroy_WRK()
2102 DO_PthAPIerror( "pthread_rwlock_destroy", ret ); in pthread_rwlock_destroy_WRK()
2106 fprintf(stderr, " :: rwl_destroy -> %d >>\n", ret); in pthread_rwlock_destroy_WRK()
2108 return ret; in pthread_rwlock_destroy_WRK()
2139 int ret; in pthread_rwlock_wrlock_WRK() local
2150 CALL_FN_W_W(ret, fn, rwlock); in pthread_rwlock_wrlock_WRK()
2154 long, (ret == 0) ? True : False); in pthread_rwlock_wrlock_WRK()
2155 if (ret != 0) { in pthread_rwlock_wrlock_WRK()
2156 DO_PthAPIerror( "pthread_rwlock_wrlock", ret ); in pthread_rwlock_wrlock_WRK()
2160 fprintf(stderr, " :: rwl_wlk -> %d >>\n", ret); in pthread_rwlock_wrlock_WRK()
2162 return ret; in pthread_rwlock_wrlock_WRK()
2219 int ret; in pthread_rwlock_rdlock_WRK() local
2230 CALL_FN_W_W(ret, fn, rwlock); in pthread_rwlock_rdlock_WRK()
2234 long, (ret == 0) ? True : False); in pthread_rwlock_rdlock_WRK()
2235 if (ret != 0) { in pthread_rwlock_rdlock_WRK()
2236 DO_PthAPIerror( "pthread_rwlock_rdlock", ret ); in pthread_rwlock_rdlock_WRK()
2240 fprintf(stderr, " :: rwl_rlk -> %d >>\n", ret); in pthread_rwlock_rdlock_WRK()
2242 return ret; in pthread_rwlock_rdlock_WRK()
2299 int ret; in pthread_rwlock_trywrlock_WRK() local
2310 CALL_FN_W_W(ret, fn, rwlock); in pthread_rwlock_trywrlock_WRK()
2319 long, (ret == 0) ? True : False); in pthread_rwlock_trywrlock_WRK()
2320 if (ret != 0) { in pthread_rwlock_trywrlock_WRK()
2321 if (ret != EBUSY) in pthread_rwlock_trywrlock_WRK()
2322 DO_PthAPIerror( "pthread_rwlock_trywrlock", ret ); in pthread_rwlock_trywrlock_WRK()
2326 fprintf(stderr, " :: rwl_trywlk -> %d >>\n", ret); in pthread_rwlock_trywrlock_WRK()
2328 return ret; in pthread_rwlock_trywrlock_WRK()
2359 int ret; in pthread_rwlock_tryrdlock_WRK() local
2370 CALL_FN_W_W(ret, fn, rwlock); in pthread_rwlock_tryrdlock_WRK()
2379 long, (ret == 0) ? True : False); in pthread_rwlock_tryrdlock_WRK()
2381 if (ret != 0) { in pthread_rwlock_tryrdlock_WRK()
2382 if (ret != EBUSY) in pthread_rwlock_tryrdlock_WRK()
2383 DO_PthAPIerror( "pthread_rwlock_tryrdlock", ret ); in pthread_rwlock_tryrdlock_WRK()
2387 fprintf(stderr, " :: rwl_tryrlk -> %d >>\n", ret); in pthread_rwlock_tryrdlock_WRK()
2389 return ret; in pthread_rwlock_tryrdlock_WRK()
2421 int ret; in pthread_rwlock_timedrdlock_WRK() local
2432 CALL_FN_W_WW(ret, fn, rwlock, timeout); in pthread_rwlock_timedrdlock_WRK()
2436 long, (ret == 0) ? True : False); in pthread_rwlock_timedrdlock_WRK()
2437 if (ret != 0) { in pthread_rwlock_timedrdlock_WRK()
2438 DO_PthAPIerror("pthread_rwlock_timedrdlock", ret); in pthread_rwlock_timedrdlock_WRK()
2442 fprintf(stderr, " :: rwl_timedrdl -> %d >>\n", ret); in pthread_rwlock_timedrdlock_WRK()
2444 return ret; in pthread_rwlock_timedrdlock_WRK()
2474 int ret; in pthread_rwlock_timedwrlock_WRK() local
2485 CALL_FN_W_WW(ret, fn, rwlock, timeout); in pthread_rwlock_timedwrlock_WRK()
2489 long, (ret == 0) ? True : False); in pthread_rwlock_timedwrlock_WRK()
2490 if (ret != 0) { in pthread_rwlock_timedwrlock_WRK()
2491 DO_PthAPIerror("pthread_rwlock_timedwrlock", ret); in pthread_rwlock_timedwrlock_WRK()
2495 fprintf(stderr, " :: rwl_timedwrl -> %d >>\n", ret); in pthread_rwlock_timedwrlock_WRK()
2497 return ret; in pthread_rwlock_timedwrlock_WRK()
2525 int ret; in pthread_rwlock_unlock_WRK() local
2535 CALL_FN_W_W(ret, fn, rwlock); in pthread_rwlock_unlock_WRK()
2539 if (ret != 0) { in pthread_rwlock_unlock_WRK()
2540 DO_PthAPIerror( "pthread_rwlock_unlock", ret ); in pthread_rwlock_unlock_WRK()
2544 fprintf(stderr, " :: rwl_unlk -> %d >>\n", ret); in pthread_rwlock_unlock_WRK()
2546 return ret; in pthread_rwlock_unlock_WRK()
2607 int ret; in sem_init_WRK() local
2615 CALL_FN_W_WWW(ret, fn, sem,pshared,value); in sem_init_WRK()
2617 if (ret == 0) { in sem_init_WRK()
2625 fprintf(stderr, " sem_init -> %d >>\n", ret); in sem_init_WRK()
2629 return ret; in sem_init_WRK()
2653 int ret; in PTH_FUNC() local
2661 CALL_FN_W_WWWW(ret, fn, sem, value, type, arg); in PTH_FUNC()
2663 if (ret == 0) { in PTH_FUNC()
2667 DO_PthAPIerror("sema_init", ret); in PTH_FUNC()
2671 fprintf(stderr, " sema_init -> %d >>\n", ret); in PTH_FUNC()
2675 return ret; in PTH_FUNC()
2690 int ret; in sem_destroy_WRK() local
2700 CALL_FN_W_W(ret, fn, sem); in sem_destroy_WRK()
2702 if (ret != 0) { in sem_destroy_WRK()
2707 fprintf(stderr, " sem_destroy -> %d >>\n", ret); in sem_destroy_WRK()
2711 return ret; in sem_destroy_WRK()
2747 int ret; in sem_wait_WRK() local
2757 CALL_FN_W_W(ret, fn, sem); in sem_wait_WRK()
2760 long, (ret == 0) ? True : False); in sem_wait_WRK()
2762 if (ret != 0) { in sem_wait_WRK()
2767 fprintf(stderr, " sem_wait -> %d >>\n", ret); in sem_wait_WRK()
2771 return ret; in sem_wait_WRK()
2808 int ret; in sem_post_WRK() local
2819 CALL_FN_W_W(ret, fn, sem); in sem_post_WRK()
2823 if (ret != 0) { in sem_post_WRK()
2828 fprintf(stderr, " sem_post -> %d >>\n", ret); in sem_post_WRK()
2832 return ret; in sem_post_WRK()
2865 sem_t* ret; in PTH_FUNC() local
2874 CALL_FN_W_WWWW(ret, fn, name,oflag,mode,value); in PTH_FUNC()
2876 if (ret != SEM_FAILED && (oflag & O_CREAT)) { in PTH_FUNC()
2878 sem_t*, ret, unsigned long, value); in PTH_FUNC()
2880 if (ret == SEM_FAILED) { in PTH_FUNC()
2885 fprintf(stderr, " sem_open -> %p >>\n", ret); in PTH_FUNC()
2889 return ret; in PTH_FUNC()
2900 int ret; in PTH_FUNC() local
2910 CALL_FN_W_W(ret, fn, sem); in PTH_FUNC()
2912 if (ret != 0) { in PTH_FUNC()
2917 fprintf(stderr, " close -> %d >>\n", ret); in PTH_FUNC()
2921 return ret; in PTH_FUNC()
3089 long ret; in QMutex_tryLock_WRK() local
3098 CALL_FN_W_W(ret, fn, self); in QMutex_tryLock_WRK()
3102 void *, self, long, (ret & 0xFF) ? True : False); in QMutex_tryLock_WRK()
3105 fprintf(stderr, " :: Q::tryLock -> %lu >>\n", ret); in QMutex_tryLock_WRK()
3108 return ret; in QMutex_tryLock_WRK()
3125 long ret; in QMutex_tryLock_int_WRK() local
3135 CALL_FN_W_WW(ret, fn, self,arg2); in QMutex_tryLock_int_WRK()
3139 void *, self, long, (ret & 0xFF) ? True : False); in QMutex_tryLock_int_WRK()
3142 fprintf(stderr, " :: Q::tryLock(int) -> %lu >>\n", ret); in QMutex_tryLock_int_WRK()
3145 return ret; in QMutex_tryLock_int_WRK()
3168 long ret; in QMutex_constructor_WRK() local
3170 CALL_FN_W_WW(ret, fn, mutex, recmode); in QMutex_constructor_WRK()
3174 return (void*)ret; in QMutex_constructor_WRK()
3190 long ret; in QMutex_destructor_WRK() local
3194 CALL_FN_W_W(ret, fn, mutex); in QMutex_destructor_WRK()
3195 return (void*)ret; in QMutex_destructor_WRK()