Lines Matching refs:ret

101 	int ret;  in __thr_accept()  local
105 ret = __sys_accept(s, addr, addrlen); in __thr_accept()
106 _thr_cancel_leave(curthread, ret == -1); in __thr_accept()
108 return (ret); in __thr_accept()
119 int ret; in __thr_accept4() local
123 ret = __sys_accept4(s, addr, addrlen, flags); in __thr_accept4()
124 _thr_cancel_leave(curthread, ret == -1); in __thr_accept4()
126 return (ret); in __thr_accept4()
134 int ret; in __thr_aio_suspend() local
138 ret = __sys_aio_suspend(iocbs, niocb, timeout); in __thr_aio_suspend()
141 return (ret); in __thr_aio_suspend()
155 int ret; in __thr_close() local
159 ret = __sys_close(fd); in __thr_close()
162 return (ret); in __thr_close()
173 int ret; in __thr_connect() local
177 ret = __sys_connect(fd, name, namelen); in __thr_connect()
178 _thr_cancel_leave(curthread, ret == -1); in __thr_connect()
180 return (ret); in __thr_connect()
194 int ret; in __thr_fcntl() local
199 ret = __sys_fcntl(fd, cmd, arg); in __thr_fcntl()
200 _thr_cancel_leave(curthread, ret == -1); in __thr_fcntl()
202 ret = __sys_fcntl(fd, cmd, arg); in __thr_fcntl()
205 return (ret); in __thr_fcntl()
216 int ret; in __thr_fsync() local
220 ret = __sys_fsync(fd); in __thr_fsync()
223 return (ret); in __thr_fsync()
230 int ret; in __thr_fdatasync() local
234 ret = __sys_fdatasync(fd); in __thr_fdatasync()
237 return (ret); in __thr_fdatasync()
248 int ret; in __thr_msync() local
252 ret = __sys_msync(addr, len, flags); in __thr_msync()
255 return (ret); in __thr_msync()
263 int ret; in __thr_clock_nanosleep() local
267 ret = __sys_clock_nanosleep(clock_id, flags, time_to_sleep, in __thr_clock_nanosleep()
271 return (ret); in __thr_clock_nanosleep()
279 int ret; in __thr_nanosleep() local
283 ret = __sys_nanosleep(time_to_sleep, time_remaining); in __thr_nanosleep()
286 return (ret); in __thr_nanosleep()
297 int ret; in __thr_openat() local
301 ret = __sys_openat(fd, path, flags, mode); in __thr_openat()
302 _thr_cancel_leave(curthread, ret == -1); in __thr_openat()
304 return (ret); in __thr_openat()
316 int ret; in __thr_poll() local
320 ret = __sys_poll(fds, nfds, timeout); in __thr_poll()
321 _thr_cancel_leave(curthread, ret == -1); in __thr_poll()
323 return (ret); in __thr_poll()
336 int ret; in __thr_ppoll() local
340 ret = __sys_ppoll(pfd, nfds, timeout, newsigmask); in __thr_ppoll()
341 _thr_cancel_leave(curthread, ret == -1); in __thr_ppoll()
343 return (ret); in __thr_ppoll()
356 int ret; in __thr_pselect() local
360 ret = __sys_pselect(count, rfds, wfds, efds, timo, mask); in __thr_pselect()
361 _thr_cancel_leave(curthread, ret == -1); in __thr_pselect()
363 return (ret); in __thr_pselect()
371 int ret; in __thr_kevent() local
382 ret = __sys_kevent(kq, changelist, nchanges, eventlist, nevents, in __thr_kevent()
384 _thr_cancel_leave(curthread, ret == -1 && nchanges == 0); in __thr_kevent()
386 return (ret); in __thr_kevent()
398 ssize_t ret; in __thr_read() local
402 ret = __sys_read(fd, buf, nbytes); in __thr_read()
403 _thr_cancel_leave(curthread, ret == -1); in __thr_read()
405 return (ret); in __thr_read()
417 ssize_t ret; in __thr_readv() local
421 ret = __sys_readv(fd, iov, iovcnt); in __thr_readv()
422 _thr_cancel_leave(curthread, ret == -1); in __thr_readv()
423 return (ret); in __thr_readv()
436 ssize_t ret; in __thr_recvfrom() local
440 ret = __sys_recvfrom(s, b, l, f, from, fl); in __thr_recvfrom()
441 _thr_cancel_leave(curthread, ret == -1); in __thr_recvfrom()
442 return (ret); in __thr_recvfrom()
454 ssize_t ret; in __thr_recvmsg() local
458 ret = __sys_recvmsg(s, m, f); in __thr_recvmsg()
459 _thr_cancel_leave(curthread, ret == -1); in __thr_recvmsg()
460 return (ret); in __thr_recvmsg()
473 int ret; in __thr_select() local
477 ret = __sys_select(numfds, readfds, writefds, exceptfds, timeout); in __thr_select()
478 _thr_cancel_leave(curthread, ret == -1); in __thr_select()
479 return (ret); in __thr_select()
491 ssize_t ret; in __thr_sendmsg() local
495 ret = __sys_sendmsg(s, m, f); in __thr_sendmsg()
496 _thr_cancel_leave(curthread, ret <= 0); in __thr_sendmsg()
497 return (ret); in __thr_sendmsg()
510 ssize_t ret; in __thr_sendto() local
514 ret = __sys_sendto(s, m, l, f, t, tl); in __thr_sendto()
515 _thr_cancel_leave(curthread, ret <= 0); in __thr_sendto()
516 return (ret); in __thr_sendto()
523 int ret; in __thr_system() local
527 ret = __libc_system(string); in __thr_system()
529 return (ret); in __thr_system()
541 int ret; in __thr_tcdrain() local
545 ret = __libc_tcdrain(fd); in __thr_tcdrain()
546 _thr_cancel_leave(curthread, ret == -1); in __thr_tcdrain()
547 return (ret); in __thr_tcdrain()
559 pid_t ret; in __thr_wait4() local
563 ret = __sys_wait4(pid, status, options, rusage); in __thr_wait4()
564 _thr_cancel_leave(curthread, ret <= 0); in __thr_wait4()
565 return (ret); in __thr_wait4()
578 pid_t ret; in __thr_wait6() local
582 ret = __sys_wait6(idtype, id, status, options, ru, infop); in __thr_wait6()
583 _thr_cancel_leave(curthread, ret <= 0); in __thr_wait6()
584 return (ret); in __thr_wait6()
596 ssize_t ret; in __thr_write() local
600 ret = __sys_write(fd, buf, nbytes); in __thr_write()
601 _thr_cancel_leave(curthread, (ret <= 0)); in __thr_write()
602 return (ret); in __thr_write()
614 ssize_t ret; in __thr_writev() local
618 ret = __sys_writev(fd, iov, iovcnt); in __thr_writev()
619 _thr_cancel_leave(curthread, (ret <= 0)); in __thr_writev()
620 return (ret); in __thr_writev()