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
196 curthread = _get_curthread(); in __thr_fcntl()
198 _thr_cancel_enter(curthread); in __thr_fcntl()
200 _thr_cancel_leave(curthread, ret == -1); in __thr_fcntl()
215 struct pthread *curthread; in __thr_fsync() local
218 curthread = _get_curthread(); in __thr_fsync()
219 _thr_cancel_enter2(curthread, 0); in __thr_fsync()
221 _thr_cancel_leave(curthread, 1); in __thr_fsync()
229 struct pthread *curthread; in __thr_fdatasync() local
232 curthread = _get_curthread(); in __thr_fdatasync()
233 _thr_cancel_enter2(curthread, 0); in __thr_fdatasync()
235 _thr_cancel_leave(curthread, 1); in __thr_fdatasync()
247 struct pthread *curthread; in __thr_msync() local
250 curthread = _get_curthread(); in __thr_msync()
251 _thr_cancel_enter2(curthread, 0); in __thr_msync()
253 _thr_cancel_leave(curthread, 1); in __thr_msync()
262 struct pthread *curthread; in __thr_clock_nanosleep() local
265 curthread = _get_curthread(); in __thr_clock_nanosleep()
266 _thr_cancel_enter(curthread); in __thr_clock_nanosleep()
269 _thr_cancel_leave(curthread, 1); in __thr_clock_nanosleep()
278 struct pthread *curthread; in __thr_nanosleep() local
281 curthread = _get_curthread(); in __thr_nanosleep()
282 _thr_cancel_enter(curthread); in __thr_nanosleep()
284 _thr_cancel_leave(curthread, 1); in __thr_nanosleep()
296 struct pthread *curthread; in __thr_openat() local
299 curthread = _get_curthread(); in __thr_openat()
300 _thr_cancel_enter(curthread); in __thr_openat()
302 _thr_cancel_leave(curthread, ret == -1); in __thr_openat()
315 struct pthread *curthread; in __thr_poll() local
318 curthread = _get_curthread(); in __thr_poll()
319 _thr_cancel_enter(curthread); in __thr_poll()
321 _thr_cancel_leave(curthread, ret == -1); in __thr_poll()
335 struct pthread *curthread; in __thr_ppoll() local
338 curthread = _get_curthread(); in __thr_ppoll()
339 _thr_cancel_enter(curthread); in __thr_ppoll()
341 _thr_cancel_leave(curthread, ret == -1); in __thr_ppoll()
355 struct pthread *curthread; in __thr_pselect() local
358 curthread = _get_curthread(); in __thr_pselect()
359 _thr_cancel_enter(curthread); in __thr_pselect()
361 _thr_cancel_leave(curthread, ret == -1); in __thr_pselect()
370 struct pthread *curthread; in __thr_kevent() local
380 curthread = _get_curthread(); in __thr_kevent()
381 _thr_cancel_enter(curthread); in __thr_kevent()
384 _thr_cancel_leave(curthread, ret == -1 && nchanges == 0); in __thr_kevent()
397 struct pthread *curthread; in __thr_read() local
400 curthread = _get_curthread(); in __thr_read()
401 _thr_cancel_enter(curthread); in __thr_read()
403 _thr_cancel_leave(curthread, ret == -1); in __thr_read()
416 struct pthread *curthread; in __thr_readv() local
419 curthread = _get_curthread(); in __thr_readv()
420 _thr_cancel_enter(curthread); in __thr_readv()
422 _thr_cancel_leave(curthread, ret == -1); in __thr_readv()
435 struct pthread *curthread; in __thr_recvfrom() local
438 curthread = _get_curthread(); in __thr_recvfrom()
439 _thr_cancel_enter(curthread); in __thr_recvfrom()
441 _thr_cancel_leave(curthread, ret == -1); in __thr_recvfrom()
453 struct pthread *curthread; in __thr_recvmsg() local
456 curthread = _get_curthread(); in __thr_recvmsg()
457 _thr_cancel_enter(curthread); in __thr_recvmsg()
459 _thr_cancel_leave(curthread, ret == -1); in __thr_recvmsg()
472 struct pthread *curthread; in __thr_select() local
475 curthread = _get_curthread(); in __thr_select()
476 _thr_cancel_enter(curthread); in __thr_select()
478 _thr_cancel_leave(curthread, ret == -1); in __thr_select()
490 struct pthread *curthread; in __thr_sendmsg() local
493 curthread = _get_curthread(); in __thr_sendmsg()
494 _thr_cancel_enter(curthread); in __thr_sendmsg()
496 _thr_cancel_leave(curthread, ret <= 0); in __thr_sendmsg()
509 struct pthread *curthread; in __thr_sendto() local
512 curthread = _get_curthread(); in __thr_sendto()
513 _thr_cancel_enter(curthread); in __thr_sendto()
515 _thr_cancel_leave(curthread, ret <= 0); in __thr_sendto()
522 struct pthread *curthread; in __thr_system() local
525 curthread = _get_curthread(); in __thr_system()
526 _thr_cancel_enter(curthread); in __thr_system()
528 _thr_cancel_leave(curthread, 1); in __thr_system()
540 struct pthread *curthread; in __thr_tcdrain() local
543 curthread = _get_curthread(); in __thr_tcdrain()
544 _thr_cancel_enter(curthread); in __thr_tcdrain()
546 _thr_cancel_leave(curthread, ret == -1); in __thr_tcdrain()
558 struct pthread *curthread; in __thr_wait4() local
561 curthread = _get_curthread(); in __thr_wait4()
562 _thr_cancel_enter(curthread); in __thr_wait4()
564 _thr_cancel_leave(curthread, ret <= 0); in __thr_wait4()
577 struct pthread *curthread; in __thr_wait6() local
580 curthread = _get_curthread(); in __thr_wait6()
581 _thr_cancel_enter(curthread); in __thr_wait6()
583 _thr_cancel_leave(curthread, ret <= 0); in __thr_wait6()
595 struct pthread *curthread; in __thr_write() local
598 curthread = _get_curthread(); in __thr_write()
599 _thr_cancel_enter(curthread); in __thr_write()
601 _thr_cancel_leave(curthread, (ret <= 0)); in __thr_write()
613 struct pthread *curthread; in __thr_writev() local
616 curthread = _get_curthread(); in __thr_writev()
617 _thr_cancel_enter(curthread); in __thr_writev()
619 _thr_cancel_leave(curthread, (ret <= 0)); in __thr_writev()