Lines Matching refs:curthread

103 	struct pthread *curthread;  in __thr_accept()  local
106 curthread = _get_curthread(); in __thr_accept()
107 _thr_cancel_enter(curthread); in __thr_accept()
109 _thr_cancel_leave(curthread, ret == -1); in __thr_accept()
121 struct pthread *curthread; in __thr_accept4() local
124 curthread = _get_curthread(); in __thr_accept4()
125 _thr_cancel_enter(curthread); in __thr_accept4()
127 _thr_cancel_leave(curthread, ret == -1); in __thr_accept4()
136 struct pthread *curthread; in __thr_aio_suspend() local
139 curthread = _get_curthread(); in __thr_aio_suspend()
140 _thr_cancel_enter(curthread); in __thr_aio_suspend()
142 _thr_cancel_leave(curthread, 1); in __thr_aio_suspend()
157 struct pthread *curthread; in __thr_close() local
160 curthread = _get_curthread(); in __thr_close()
161 _thr_cancel_enter2(curthread, 0); in __thr_close()
163 _thr_cancel_leave(curthread, 1); in __thr_close()
175 struct pthread *curthread; in __thr_connect() local
178 curthread = _get_curthread(); in __thr_connect()
179 _thr_cancel_enter(curthread); in __thr_connect()
181 _thr_cancel_leave(curthread, ret == -1); in __thr_connect()
196 struct pthread *curthread; in __thr_fcntl() local
200 curthread = _get_curthread(); in __thr_fcntl()
203 _thr_cancel_enter(curthread); in __thr_fcntl()
205 _thr_cancel_leave(curthread, ret == -1); in __thr_fcntl()
221 struct pthread *curthread; in __thr_fsync() local
224 curthread = _get_curthread(); in __thr_fsync()
225 _thr_cancel_enter2(curthread, 0); in __thr_fsync()
227 _thr_cancel_leave(curthread, 1); in __thr_fsync()
235 struct pthread *curthread; in __thr_fdatasync() local
238 curthread = _get_curthread(); in __thr_fdatasync()
239 _thr_cancel_enter2(curthread, 0); in __thr_fdatasync()
241 _thr_cancel_leave(curthread, 1); in __thr_fdatasync()
253 struct pthread *curthread; in __thr_msync() local
256 curthread = _get_curthread(); in __thr_msync()
257 _thr_cancel_enter2(curthread, 0); in __thr_msync()
259 _thr_cancel_leave(curthread, 1); in __thr_msync()
268 struct pthread *curthread; in __thr_clock_nanosleep() local
271 curthread = _get_curthread(); in __thr_clock_nanosleep()
272 _thr_cancel_enter(curthread); in __thr_clock_nanosleep()
275 _thr_cancel_leave(curthread, 1); in __thr_clock_nanosleep()
284 struct pthread *curthread; in __thr_nanosleep() local
287 curthread = _get_curthread(); in __thr_nanosleep()
288 _thr_cancel_enter(curthread); in __thr_nanosleep()
290 _thr_cancel_leave(curthread, 1); in __thr_nanosleep()
302 struct pthread *curthread; in __thr_openat() local
317 curthread = _get_curthread(); in __thr_openat()
318 _thr_cancel_enter(curthread); in __thr_openat()
320 _thr_cancel_leave(curthread, ret == -1); in __thr_openat()
333 struct pthread *curthread; in __thr_poll() local
336 curthread = _get_curthread(); in __thr_poll()
337 _thr_cancel_enter(curthread); in __thr_poll()
339 _thr_cancel_leave(curthread, ret == -1); in __thr_poll()
353 struct pthread *curthread; in __thr_ppoll() local
356 curthread = _get_curthread(); in __thr_ppoll()
357 _thr_cancel_enter(curthread); in __thr_ppoll()
359 _thr_cancel_leave(curthread, ret == -1); in __thr_ppoll()
373 struct pthread *curthread; in __thr_pselect() local
376 curthread = _get_curthread(); in __thr_pselect()
377 _thr_cancel_enter(curthread); in __thr_pselect()
379 _thr_cancel_leave(curthread, ret == -1); in __thr_pselect()
388 struct pthread *curthread; in __thr_kevent() local
398 curthread = _get_curthread(); in __thr_kevent()
399 _thr_cancel_enter(curthread); in __thr_kevent()
402 _thr_cancel_leave(curthread, ret == -1 && nchanges == 0); in __thr_kevent()
415 struct pthread *curthread; in __thr_read() local
418 curthread = _get_curthread(); in __thr_read()
419 _thr_cancel_enter(curthread); in __thr_read()
421 _thr_cancel_leave(curthread, ret == -1); in __thr_read()
434 struct pthread *curthread; in __thr_readv() local
437 curthread = _get_curthread(); in __thr_readv()
438 _thr_cancel_enter(curthread); in __thr_readv()
440 _thr_cancel_leave(curthread, ret == -1); in __thr_readv()
453 struct pthread *curthread; in __thr_recvfrom() local
456 curthread = _get_curthread(); in __thr_recvfrom()
457 _thr_cancel_enter(curthread); in __thr_recvfrom()
459 _thr_cancel_leave(curthread, ret == -1); in __thr_recvfrom()
471 struct pthread *curthread; in __thr_recvmsg() local
474 curthread = _get_curthread(); in __thr_recvmsg()
475 _thr_cancel_enter(curthread); in __thr_recvmsg()
477 _thr_cancel_leave(curthread, ret == -1); in __thr_recvmsg()
490 struct pthread *curthread; in __thr_select() local
493 curthread = _get_curthread(); in __thr_select()
494 _thr_cancel_enter(curthread); in __thr_select()
496 _thr_cancel_leave(curthread, ret == -1); in __thr_select()
508 struct pthread *curthread; in __thr_sendmsg() local
511 curthread = _get_curthread(); in __thr_sendmsg()
512 _thr_cancel_enter(curthread); in __thr_sendmsg()
514 _thr_cancel_leave(curthread, ret <= 0); in __thr_sendmsg()
527 struct pthread *curthread; in __thr_sendto() local
530 curthread = _get_curthread(); in __thr_sendto()
531 _thr_cancel_enter(curthread); in __thr_sendto()
533 _thr_cancel_leave(curthread, ret <= 0); in __thr_sendto()
540 struct pthread *curthread; in __thr_system() local
543 curthread = _get_curthread(); in __thr_system()
544 _thr_cancel_enter(curthread); in __thr_system()
546 _thr_cancel_leave(curthread, 1); in __thr_system()
558 struct pthread *curthread; in __thr_tcdrain() local
561 curthread = _get_curthread(); in __thr_tcdrain()
562 _thr_cancel_enter(curthread); in __thr_tcdrain()
564 _thr_cancel_leave(curthread, ret == -1); in __thr_tcdrain()
576 struct pthread *curthread; in __thr_wait4() local
579 curthread = _get_curthread(); in __thr_wait4()
580 _thr_cancel_enter(curthread); in __thr_wait4()
582 _thr_cancel_leave(curthread, ret <= 0); in __thr_wait4()
595 struct pthread *curthread; in __thr_wait6() local
598 curthread = _get_curthread(); in __thr_wait6()
599 _thr_cancel_enter(curthread); in __thr_wait6()
601 _thr_cancel_leave(curthread, ret <= 0); in __thr_wait6()
613 struct pthread *curthread; in __thr_write() local
616 curthread = _get_curthread(); in __thr_write()
617 _thr_cancel_enter(curthread); in __thr_write()
619 _thr_cancel_leave(curthread, (ret <= 0)); in __thr_write()
631 struct pthread *curthread; in __thr_writev() local
634 curthread = _get_curthread(); in __thr_writev()
635 _thr_cancel_enter(curthread); in __thr_writev()
637 _thr_cancel_leave(curthread, (ret <= 0)); in __thr_writev()