Lines Matching refs:curthread
100 struct pthread *curthread; in __thr_accept() local
103 curthread = _get_curthread(); in __thr_accept()
104 _thr_cancel_enter(curthread); in __thr_accept()
106 _thr_cancel_leave(curthread, ret == -1); in __thr_accept()
118 struct pthread *curthread; in __thr_accept4() local
121 curthread = _get_curthread(); in __thr_accept4()
122 _thr_cancel_enter(curthread); in __thr_accept4()
124 _thr_cancel_leave(curthread, ret == -1); in __thr_accept4()
133 struct pthread *curthread; in __thr_aio_suspend() local
136 curthread = _get_curthread(); in __thr_aio_suspend()
137 _thr_cancel_enter(curthread); in __thr_aio_suspend()
139 _thr_cancel_leave(curthread, 1); in __thr_aio_suspend()
154 struct pthread *curthread; in __thr_close() local
157 curthread = _get_curthread(); in __thr_close()
158 _thr_cancel_enter2(curthread, 0); in __thr_close()
160 _thr_cancel_leave(curthread, 1); in __thr_close()
172 struct pthread *curthread; in __thr_connect() local
175 curthread = _get_curthread(); in __thr_connect()
176 _thr_cancel_enter(curthread); in __thr_connect()
178 _thr_cancel_leave(curthread, ret == -1); in __thr_connect()
193 struct pthread *curthread; in __thr_fcntl() local
197 curthread = _get_curthread(); in __thr_fcntl()
200 _thr_cancel_enter(curthread); in __thr_fcntl()
202 _thr_cancel_leave(curthread, ret == -1); in __thr_fcntl()
218 struct pthread *curthread; in __thr_fsync() local
221 curthread = _get_curthread(); in __thr_fsync()
222 _thr_cancel_enter2(curthread, 0); in __thr_fsync()
224 _thr_cancel_leave(curthread, 1); in __thr_fsync()
232 struct pthread *curthread; in __thr_fdatasync() local
235 curthread = _get_curthread(); in __thr_fdatasync()
236 _thr_cancel_enter2(curthread, 0); in __thr_fdatasync()
238 _thr_cancel_leave(curthread, 1); in __thr_fdatasync()
250 struct pthread *curthread; in __thr_msync() local
253 curthread = _get_curthread(); in __thr_msync()
254 _thr_cancel_enter2(curthread, 0); in __thr_msync()
256 _thr_cancel_leave(curthread, 1); in __thr_msync()
265 struct pthread *curthread; in __thr_clock_nanosleep() local
268 curthread = _get_curthread(); in __thr_clock_nanosleep()
269 _thr_cancel_enter(curthread); in __thr_clock_nanosleep()
272 _thr_cancel_leave(curthread, 1); in __thr_clock_nanosleep()
281 struct pthread *curthread; in __thr_nanosleep() local
284 curthread = _get_curthread(); in __thr_nanosleep()
285 _thr_cancel_enter(curthread); in __thr_nanosleep()
287 _thr_cancel_leave(curthread, 1); in __thr_nanosleep()
299 struct pthread *curthread; in __thr_openat() local
314 curthread = _get_curthread(); in __thr_openat()
315 _thr_cancel_enter(curthread); in __thr_openat()
317 _thr_cancel_leave(curthread, ret == -1); in __thr_openat()
330 struct pthread *curthread; in __thr_poll() local
333 curthread = _get_curthread(); in __thr_poll()
334 _thr_cancel_enter(curthread); in __thr_poll()
336 _thr_cancel_leave(curthread, ret == -1); in __thr_poll()
350 struct pthread *curthread; in __thr_ppoll() local
353 curthread = _get_curthread(); in __thr_ppoll()
354 _thr_cancel_enter(curthread); in __thr_ppoll()
356 _thr_cancel_leave(curthread, ret == -1); in __thr_ppoll()
370 struct pthread *curthread; in __thr_pselect() local
373 curthread = _get_curthread(); in __thr_pselect()
374 _thr_cancel_enter(curthread); in __thr_pselect()
376 _thr_cancel_leave(curthread, ret == -1); in __thr_pselect()
385 struct pthread *curthread; in __thr_kevent() local
395 curthread = _get_curthread(); in __thr_kevent()
396 _thr_cancel_enter(curthread); in __thr_kevent()
399 _thr_cancel_leave(curthread, ret == -1 && nchanges == 0); in __thr_kevent()
412 struct pthread *curthread; in __thr_read() local
415 curthread = _get_curthread(); in __thr_read()
416 _thr_cancel_enter(curthread); in __thr_read()
418 _thr_cancel_leave(curthread, ret == -1); in __thr_read()
431 struct pthread *curthread; in __thr_readv() local
434 curthread = _get_curthread(); in __thr_readv()
435 _thr_cancel_enter(curthread); in __thr_readv()
437 _thr_cancel_leave(curthread, ret == -1); in __thr_readv()
450 struct pthread *curthread; in __thr_recvfrom() local
453 curthread = _get_curthread(); in __thr_recvfrom()
454 _thr_cancel_enter(curthread); in __thr_recvfrom()
456 _thr_cancel_leave(curthread, ret == -1); in __thr_recvfrom()
468 struct pthread *curthread; in __thr_recvmsg() local
471 curthread = _get_curthread(); in __thr_recvmsg()
472 _thr_cancel_enter(curthread); in __thr_recvmsg()
474 _thr_cancel_leave(curthread, ret == -1); in __thr_recvmsg()
487 struct pthread *curthread; in __thr_select() local
490 curthread = _get_curthread(); in __thr_select()
491 _thr_cancel_enter(curthread); in __thr_select()
493 _thr_cancel_leave(curthread, ret == -1); in __thr_select()
505 struct pthread *curthread; in __thr_sendmsg() local
508 curthread = _get_curthread(); in __thr_sendmsg()
509 _thr_cancel_enter(curthread); in __thr_sendmsg()
511 _thr_cancel_leave(curthread, ret <= 0); in __thr_sendmsg()
524 struct pthread *curthread; in __thr_sendto() local
527 curthread = _get_curthread(); in __thr_sendto()
528 _thr_cancel_enter(curthread); in __thr_sendto()
530 _thr_cancel_leave(curthread, ret <= 0); in __thr_sendto()
537 struct pthread *curthread; in __thr_system() local
540 curthread = _get_curthread(); in __thr_system()
541 _thr_cancel_enter(curthread); in __thr_system()
543 _thr_cancel_leave(curthread, 1); in __thr_system()
555 struct pthread *curthread; in __thr_tcdrain() local
558 curthread = _get_curthread(); in __thr_tcdrain()
559 _thr_cancel_enter(curthread); in __thr_tcdrain()
561 _thr_cancel_leave(curthread, ret == -1); in __thr_tcdrain()
573 struct pthread *curthread; in __thr_wait4() local
576 curthread = _get_curthread(); in __thr_wait4()
577 _thr_cancel_enter(curthread); in __thr_wait4()
579 _thr_cancel_leave(curthread, ret <= 0); in __thr_wait4()
592 struct pthread *curthread; in __thr_wait6() local
595 curthread = _get_curthread(); in __thr_wait6()
596 _thr_cancel_enter(curthread); in __thr_wait6()
598 _thr_cancel_leave(curthread, ret <= 0); in __thr_wait6()
610 struct pthread *curthread; in __thr_write() local
613 curthread = _get_curthread(); in __thr_write()
614 _thr_cancel_enter(curthread); in __thr_write()
616 _thr_cancel_leave(curthread, (ret <= 0)); in __thr_write()
628 struct pthread *curthread; in __thr_writev() local
631 curthread = _get_curthread(); in __thr_writev()
632 _thr_cancel_enter(curthread); in __thr_writev()
634 _thr_cancel_leave(curthread, (ret <= 0)); in __thr_writev()