Lines Matching defs:retval
144 int rd_uio(struct proc *p, int fdes, uio_t uio, user_ssize_t *retval);
145 int wr_uio(struct proc *p, int fdes, uio_t uio, user_ssize_t *retval);
151 off_t offset, int flags, user_ssize_t *retval);
154 off_t offset, int flags, user_ssize_t *retval);
196 read(struct proc *p, struct read_args *uap, user_ssize_t *retval)
199 return(read_nocancel(p, (struct read_nocancel_args *)uap, retval));
203 read_nocancel(struct proc *p, struct read_nocancel_args *uap, user_ssize_t *retval)
217 (off_t)-1, 0, retval);
235 pread(struct proc *p, struct pread_args *uap, user_ssize_t *retval)
238 return(pread_nocancel(p, (struct pread_nocancel_args *)uap, retval));
242 pread_nocancel(struct proc *p, struct pread_nocancel_args *uap, user_ssize_t *retval)
256 uap->offset, FOF_OFFSET, retval);
350 user_ssize_t *retval)
378 *retval = bytecnt;
393 readv(struct proc *p, struct readv_args *uap, user_ssize_t *retval)
396 return(readv_nocancel(p, (struct readv_nocancel_args *)uap, retval));
400 readv_nocancel(struct proc *p, struct readv_nocancel_args *uap, user_ssize_t *retval)
433 error = rd_uio(p, uap->fd, auio, retval);
451 write(struct proc *p, struct write_args *uap, user_ssize_t *retval)
454 return(write_nocancel(p, (struct write_nocancel_args *)uap, retval));
459 write_nocancel(struct proc *p, struct write_nocancel_args *uap, user_ssize_t *retval)
477 (off_t)-1, 0, retval);
498 pwrite(struct proc *p, struct pwrite_args *uap, user_ssize_t *retval)
501 return(pwrite_nocancel(p, (struct pwrite_nocancel_args *)uap, retval));
505 pwrite_nocancel(struct proc *p, struct pwrite_nocancel_args *uap, user_ssize_t *retval)
543 uap->offset, FOF_OFFSET, retval);
566 user_ssize_t *retval)
598 *retval = bytecnt;
607 writev(struct proc *p, struct writev_args *uap, user_ssize_t *retval)
610 return(writev_nocancel(p, (struct writev_nocancel_args *)uap, retval));
614 writev_nocancel(struct proc *p, struct writev_nocancel_args *uap, user_ssize_t *retval)
649 error = wr_uio(p, uap->fd, auio, retval);
660 wr_uio(struct proc *p, int fdes, uio_t uio, user_ssize_t *retval)
688 *retval = count - uio_resid(uio);
700 rd_uio(struct proc *p, int fdes, uio_t uio, user_ssize_t *retval)
721 *retval = count - uio_resid(uio);
742 ioctl(struct proc *p, struct ioctl_args *uap, __unused int32_t *retval)
959 int nfd, int32_t *retval, int sel_pass, wait_queue_sub_t wqsub);
973 select(struct proc *p, struct select_args *uap, int32_t *retval)
976 return(select_nocancel(p, (struct select_nocancel_args *)uap, retval));
980 select_nocancel(struct proc *p, struct select_nocancel_args *uap, int32_t *retval)
993 retval = (int *)get_bsduthreadrval(th_act);
994 *retval = 0;
1156 int *retval;
1167 retval = (int *)get_bsduthreadrval(th_act);
1192 error = selscan(p, sel, uap->nd, retval, sel_pass, (wait_queue_sub_t)uth->uu_wqset);
1193 if (error || *retval) {
1301 * retval The per thread system call return area
1312 selscan(struct proc *p, struct _select *sel, int nfd, int32_t *retval,
1335 *retval=0;
1400 *retval = n;
1413 poll(struct proc *p, struct poll_args *uap, int32_t *retval)
1416 return(poll_nocancel(p, (struct poll_nocancel_args *)uap, retval));
1421 poll_nocancel(struct proc *p, struct poll_nocancel_args *uap, int32_t *retval)
1557 *retval = rfds;
2285 watchevent(proc_t p, struct watchevent_args *uap, __unused int *retval)
2412 waitevent(proc_t p, struct waitevent_args *uap, int *retval)
2443 *retval = 1;
2512 *retval = 1; // poll failed
2533 *retval = 1;
2550 modwatch(proc_t p, struct modwatch_args *uap, __unused int *retval)
2786 gethostuuid(struct proc *p, struct gethostuuid_args *uap, __unused int32_t *retval)
2833 ledger(struct proc *p, struct ledger_args *args, __unused int32_t *retval)