Lines Matching refs:uap
83 linux32_sys_brk(struct lwp *l, const struct linux32_sys_brk_args *uap, register_t *retval)
95 linux32_sys_llseek(struct lwp *l, const struct linux32_sys_llseek_args *uap, register_t *retval)
116 linux32_sys_select(struct lwp *l, const struct linux32_sys_select_args *uap, register_t *retval)
126 return linux32_select1(l, retval, SCARG(uap, nfds),
127 SCARG_P32(uap, readfds),
128 SCARG_P32(uap, writefds),
129 SCARG_P32(uap, exceptfds),
130 SCARG_P32(uap, timeout));
134 linux32_sys_oldselect(struct lwp *l, const struct linux32_sys_oldselect_args *uap, register_t *retval)
142 if ((error = copyin(SCARG_P32(uap, lsp), &lsp32, sizeof(lsp32))) != 0)
230 linux32_sys_pselect6(struct lwp *l, const struct linux32_sys_pselect6_args *uap,
251 if ((p = SCARG_P32(uap, ss)) != NULL) {
264 if ((p = SCARG_P32(uap, timeout)) != NULL) {
279 error = selcommon(retval, SCARG(uap, nfds), SCARG_P32(uap, readfds),
280 SCARG_P32(uap, writefds), SCARG_P32(uap, exceptfds), tsp, ssp);
300 error = copyout(<s, SCARG_P32(uap, timeout), sizeof(lts));
307 linux32_sys_pipe(struct lwp *l, const struct linux32_sys_pipe_args *uap,
318 if ((error = copyout(f, SCARG_P32(uap, fd), sizeof(f))) != 0)
325 linux32_sys_pipe2(struct lwp *l, const struct linux32_sys_pipe2_args *uap,
333 flags = linux_to_bsd_ioflags(SCARG(uap, flags));
340 if ((error = copyout(f, SCARG_P32(uap, fd), sizeof(f))) != 0)
347 linux32_sys_dup3(struct lwp *l, const struct linux32_sys_dup3_args *uap,
366 linux32_sys_openat(struct lwp *l, const struct linux32_sys_openat_args *uap, register_t *retval)
385 linux32_sys_mknodat(struct lwp *l, const struct linux32_sys_mknodat_args *uap, register_t *retval)
404 linux32_sys_linkat(struct lwp *l, const struct linux32_sys_linkat_args *uap, register_t *retval)
413 int fd1 = SCARG(uap, fd1);
414 const char *name1 = SCARG_P32(uap, name1);
415 int fd2 = SCARG(uap, fd2);
416 const char *name2 = SCARG_P32(uap, name2);
419 follow = SCARG(uap, flags) & LINUX_AT_SYMLINK_FOLLOW;
425 linux32_sys_unlink(struct lwp *l, const struct linux32_sys_unlink_args *uap, register_t *retval)
438 linux32_sys_unlinkat(struct lwp *l, const struct linux32_sys_unlinkat_args *uap, register_t *retval)
455 linux32_sys_fchmodat(struct lwp *l, const struct linux32_sys_fchmodat_args *uap, register_t *retval)
463 return do_sys_chmodat(l, SCARG(uap, fd), SCARG_P32(uap, path),
464 SCARG(uap, mode), AT_SYMLINK_FOLLOW);
468 linux32_sys_fchownat(struct lwp *l, const struct linux32_sys_fchownat_args *uap, register_t *retval)
479 flag = linux_to_bsd_atflags(SCARG(uap, flag));
480 return do_sys_chownat(l, SCARG(uap, fd), SCARG_P32(uap, path),
481 SCARG(uap, owner), SCARG(uap, group), flag);
485 linux32_sys_faccessat(struct lwp *l, const struct linux32_sys_faccessat_args *uap, register_t *retval)
493 return do_sys_accessat(l, SCARG(uap, fd), SCARG_P32(uap, path),
494 SCARG(uap, amode), AT_SYMLINK_FOLLOW);
498 linux32_sys_utimensat(struct lwp *l, const struct linux32_sys_utimensat_args *uap, register_t *retval)
510 if (SCARG_P32(uap, times)) {
511 error = copyin(SCARG_P32(uap, times), <s, sizeof(lts));
519 return linux_do_sys_utimensat(l, SCARG(uap, fd), SCARG_P32(uap, path),
520 tsp, SCARG(uap, flag), retval);
524 linux32_sys_creat(struct lwp *l, const struct linux32_sys_creat_args *uap, register_t *retval)
540 linux32_sys_mknod(struct lwp *l, const struct linux32_sys_mknod_args *uap, register_t *retval)
558 linux32_sys_break(struct lwp *l, const struct linux32_sys_break_args *uap, register_t *retval)
571 linux32_sys_swapon(struct lwp *l, const struct linux32_sys_swapon_args *uap, register_t *retval)
579 SCARG(&ua, arg) = SCARG_P32(uap, name);
585 linux32_sys_swapoff(struct lwp *l, const struct linux32_sys_swapoff_args *uap, register_t *retval)
593 SCARG(&ua, arg) = SCARG_P32(uap, path);
600 linux32_sys_reboot(struct lwp *l, const struct linux32_sys_reboot_args *uap, register_t *retval)
619 linux32_sys_setresuid(struct lwp *l, const struct linux32_sys_setresuid_args *uap, register_t *retval)
636 linux32_sys_getresuid(struct lwp *l, const struct linux32_sys_getresuid_args *uap, register_t *retval)
648 uap, ruid), sizeof(uid_t))) != 0)
652 if ((error = copyout(&uid, SCARG_P32(uap, euid), sizeof(uid_t))) != 0)
656 return copyout(&uid, SCARG_P32(uap, suid), sizeof(uid_t));
660 linux32_sys_setresgid(struct lwp *l, const struct linux32_sys_setresgid_args *uap, register_t *retval)
677 linux32_sys_getresgid(struct lwp *l, const struct linux32_sys_getresgid_args *uap, register_t *retval)
689 if ((error = copyout(&gid, SCARG_P32(uap, rgid), sizeof(gid_t))) != 0)
693 if ((error = copyout(&gid, SCARG_P32(uap, egid), sizeof(gid_t))) != 0)
697 return copyout(&gid, SCARG_P32(uap, sgid), sizeof(gid_t));
701 linux32_sys_nice(struct lwp *l, const struct linux32_sys_nice_args *uap, register_t *retval)
712 SCARG(&bsa, prio) = p->p_nice - NZERO + SCARG(uap, incr);
719 linux32_sys_alarm(struct lwp *l, const struct linux32_sys_alarm_args *uap, register_t *retval)
732 linux32_sys_fdatasync(struct lwp *l, const struct linux32_sys_fdatasync_args *uap, register_t *retval)
745 linux32_sys_setfsuid(struct lwp *l, const struct linux32_sys_setfsuid_args *uap, register_t *retval)
758 linux32_sys_setfsgid(struct lwp *l, const struct linux32_sys_setfsgid_args *uap, register_t *retval)
775 const struct linux32_sys_pread_args *uap, register_t *retval)
785 SCARG(&pra, fd) = SCARG(uap, fd);
786 SCARG(&pra, buf) = SCARG_P32(uap, buf);
787 SCARG(&pra, nbyte) = SCARG(uap, nbyte);
789 SCARG(&pra, offset) = SCARG(uap, offset);
799 const struct linux32_sys_pwrite_args *uap, register_t *retval)
809 SCARG(&pra, fd) = SCARG(uap, fd);
810 SCARG(&pra, buf) = SCARG_P32(uap, buf);
811 SCARG(&pra, nbyte) = SCARG(uap, nbyte);
813 SCARG(&pra, offset) = SCARG(uap, offset);
823 const struct linux32_sys_fallocate_args *uap, register_t *retval)