Home
last modified time | relevance | path

Searched refs:uap (Results 1 – 25 of 111) sorted by relevance

12345

/freebsd/sys/kern/
H A Dkern_xxx.c49 ogethostname(struct thread *td, struct ogethostname_args *uap) in ogethostname() argument
52 size_t len = uap->len; in ogethostname()
56 return (userland_sysctl(td, name, 2, uap->hostname, &len, in ogethostname()
61 osethostname(struct thread *td, struct osethostname_args *uap) in osethostname() argument
67 return (userland_sysctl(td, name, 2, 0, 0, 0, uap->hostname, in osethostname()
68 uap->len, 0, 0)); in osethostname()
78 ogethostid(struct thread *td, struct ogethostid_args *uap) in ogethostid() argument
90 osethostid(struct thread *td, struct osethostid_args *uap) in osethostid() argument
96 return (kernel_sysctl(td, name, 2, NULL, NULL, &uap->hostid, in osethostid()
97 sizeof(uap->hostid), NULL, 0)); in osethostid()
[all …]
H A Dvfs_extattr.c78 sys_extattrctl(struct thread *td, struct extattrctl_args *uap) in sys_extattrctl() argument
86 AUDIT_ARG_CMD(uap->cmd); in sys_extattrctl()
87 AUDIT_ARG_VALUE(uap->attrnamespace); in sys_extattrctl()
92 if (uap->attrname != NULL) { in sys_extattrctl()
93 error = copyinstr(uap->attrname, attrname, sizeof(attrname), in sys_extattrctl()
102 if (uap->filename != NULL) { in sys_extattrctl()
104 uap->filename); in sys_extattrctl()
114 uap->path); in sys_extattrctl()
145 error = VFS_EXTATTRCTL(mp, uap->cmd, filename_vp, uap->attrnamespace, in sys_extattrctl()
146 uap->attrname != NULL ? attrname : NULL); in sys_extattrctl()
[all …]
H A Dkern_thr.c116 sys_thr_create(struct thread *td, struct thr_create_args *uap)
122 if ((error = copyin(uap->ctx, &args.ctx, sizeof(args.ctx)))) in sys_thr_create()
124 args.tid = uap->id; in sys_thr_create()
129 sys_thr_new(struct thread *td, struct thr_new_args *uap)
135 if (uap->param_size < 0 || uap->param_size > sizeof(param)) in sys_thr_new()
138 if ((error = copyin(uap->param, &param, uap->param_size))) in sys_thr_new()
297 sys_thr_self(struct thread *td, struct thr_self_args *uap)
302 error = suword_lwpid(uap in sys_thr_self()
117 sys_thr_create(struct thread * td,struct thr_create_args * uap) sys_thr_create() argument
130 sys_thr_new(struct thread * td,struct thr_new_args * uap) sys_thr_new() argument
298 sys_thr_self(struct thread * td,struct thr_self_args * uap) sys_thr_self() argument
310 sys_thr_exit(struct thread * td,struct thr_exit_args * uap) sys_thr_exit() argument
389 sys_thr_kill(struct thread * td,struct thr_kill_args * uap) sys_thr_kill() argument
436 sys_thr_kill2(struct thread * td,struct thr_kill2_args * uap) sys_thr_kill2() argument
493 sys_thr_suspend(struct thread * td,struct thr_suspend_args * uap) sys_thr_suspend() argument
555 sys_thr_wake(struct thread * td,struct thr_wake_args * uap) sys_thr_wake() argument
579 sys_thr_set_name(struct thread * td,struct thr_set_name_args * uap) sys_thr_set_name() argument
[all...]
H A Dvfs_acl.c351 sys___acl_get_file(struct thread *td, struct __acl_get_file_args *uap) in sys___acl_get_file() argument
354 return (kern___acl_get_path(td, uap->path, uap->type, uap->aclp, in sys___acl_get_file()
362 sys___acl_get_link(struct thread *td, struct __acl_get_link_args *uap) in sys___acl_get_link() argument
365 return(kern___acl_get_path(td, uap->path, uap->type, uap->aclp, in sys___acl_get_link()
390 sys___acl_set_file(struct thread *td, struct __acl_set_file_args *uap) in sys___acl_set_file() argument
393 return(kern___acl_set_path(td, uap->path, uap->type, uap->aclp, in sys___acl_set_file()
401 sys___acl_set_link(struct thread *td, struct __acl_set_link_args *uap) in sys___acl_set_link() argument
404 return(kern___acl_set_path(td, uap->path, uap->type, uap->aclp, in sys___acl_set_link()
429 sys___acl_get_fd(struct thread *td, struct __acl_get_fd_args *uap) in sys___acl_get_fd() argument
435 AUDIT_ARG_FD(uap->filedes); in sys___acl_get_fd()
[all …]
H A Dvfs_syscalls.c172 sys_sync(struct thread *td, struct sync_args *uap) in sys_sync() argument
190 sys_quotactl(struct thread *td, struct quotactl_args *uap) in sys_quotactl() argument
197 AUDIT_ARG_CMD(uap->cmd); in sys_quotactl()
198 AUDIT_ARG_UID(uap->uid); in sys_quotactl()
202 uap->path); in sys_quotactl()
215 error = VFS_QUOTACTL(mp, uap->cmd, uap->uid, uap->arg, &mp_busy); in sys_quotactl()
313 sys_statfs(struct thread *td, struct statfs_args *uap) in sys_statfs() argument
319 error = kern_statfs(td, uap->path, UIO_USERSPACE, sfp); in sys_statfs()
321 error = copyout(sfp, uap->buf, sizeof(struct statfs)); in sys_statfs()
354 sys_fstatfs(struct thread *td, struct fstatfs_args *uap) in sys_fstatfs() argument
[all …]
H A Duipc_syscalls.c132 sys_socket(struct thread *td, struct socket_args *uap) in sys_socket() argument
135 return (kern_socket(td, uap->domain, uap->type, uap->protocol)); in sys_socket()
181 sys_bind(struct thread *td, struct bind_args *uap) in sys_bind() argument
186 error = getsockaddr(&sa, uap->name, uap->namelen); in sys_bind()
188 error = kern_bindat(td, AT_FDCWD, uap->s, sa); in sys_bind()
236 sys_bindat(struct thread *td, struct bindat_args *uap) in sys_bindat() argument
241 error = getsockaddr(&sa, uap in sys_bindat()
250 sys_listen(struct thread * td,struct listen_args * uap) sys_listen() argument
427 sys_accept(struct thread * td,struct accept_args * uap) sys_accept() argument
434 sys_accept4(struct thread * td,struct accept4_args * uap) sys_accept4() argument
445 oaccept(struct thread * td,struct oaccept_args * uap) oaccept() argument
454 sys_connect(struct thread * td,struct connect_args * uap) sys_connect() argument
530 sys_connectat(struct thread * td,struct connectat_args * uap) sys_connectat() argument
634 sys_socketpair(struct thread * td,struct socketpair_args * uap) sys_socketpair() argument
797 sys_sendto(struct thread * td,struct sendto_args * uap) sys_sendto() argument
818 osend(struct thread * td,struct osend_args * uap) osend() argument
835 osendmsg(struct thread * td,struct osendmsg_args * uap) osendmsg() argument
856 sys_sendmsg(struct thread * td,struct sendmsg_args * uap) sys_sendmsg() argument
1081 sys_recvfrom(struct thread * td,struct recvfrom_args * uap) sys_recvfrom() argument
1090 orecvfrom(struct thread * td,struct orecvfrom_args * uap) orecvfrom() argument
1099 orecv(struct thread * td,struct orecv_args * uap) orecv() argument
1121 orecvmsg(struct thread * td,struct orecvmsg_args * uap) orecvmsg() argument
1145 sys_recvmsg(struct thread * td,struct recvmsg_args * uap) sys_recvmsg() argument
1174 sys_shutdown(struct thread * td,struct shutdown_args * uap) sys_shutdown() argument
1210 sys_setsockopt(struct thread * td,struct setsockopt_args * uap) sys_setsockopt() argument
1258 sys_getsockopt(struct thread * td,struct getsockopt_args * uap) sys_getsockopt() argument
1373 sys_getsockname(struct thread * td,struct getsockname_args * uap) sys_getsockname() argument
1380 ogetsockname(struct thread * td,struct ogetsockname_args * uap) ogetsockname() argument
1442 sys_getpeername(struct thread * td,struct getpeername_args * uap) sys_getpeername() argument
1449 ogetpeername(struct thread * td,struct ogetpeername_args * uap) ogetpeername() argument
[all...]
H A Dp1003_1b.c62 syscall_not_present(struct thread *td, const char *s, struct nosys_args *uap) in syscall_not_present() argument
110 sys_sched_setparam(struct thread *td, struct sched_setparam_args *uap)
117 e = copyin(uap->param, &sched_param, sizeof(sched_param));
121 if (uap->pid == 0) {
126 targetp = pfind(uap->pid);
155 sys_sched_getparam(struct thread *td, struct sched_getparam_args *uap)
162 if (uap->pid == 0) {
167 targetp = pfind(uap->pid);
177 e = copyout(&sched_param, uap->param, sizeof(sched_param));
198 sys_sched_setscheduler(struct thread *td, struct sched_setscheduler_args *uap)
[all …]
H A Dsys_capability.c101 sys_cap_enter(struct thread *td, struct cap_enter_args *uap) in sys_cap_enter() argument
124 sys_cap_getmode(struct thread *td, struct cap_getmode_args *uap) in sys_cap_getmode() argument
129 return (copyout(&i, uap->modep, sizeof(i))); in sys_cap_getmode()
135 sys_cap_enter(struct thread *td, struct cap_enter_args *uap) in sys_cap_enter() argument
142 sys_cap_getmode(struct thread *td, struct cap_getmode_args *uap) in sys_cap_getmode() argument
267 sys_cap_rights_limit(struct thread *td, struct cap_rights_limit_args *uap) in sys_cap_rights_limit() argument
274 error = copyin(uap->rightsp, &rights, sizeof(rights.cr_rights[0])); in sys_cap_rights_limit()
281 error = copyin(uap->rightsp, &rights, in sys_cap_rights_limit()
301 AUDIT_ARG_FD(uap->fd); in sys_cap_rights_limit()
303 return (kern_cap_rights_limit(td, uap->fd, &rights)); in sys_cap_rights_limit()
[all …]
H A Dsys_generic.c189 sys_read(struct thread *td, struct read_args *uap) in sys_read() argument
195 if (uap->nbyte > IOSIZE_MAX) in sys_read()
197 aiov.iov_base = uap->buf; in sys_read()
198 aiov.iov_len = uap->nbyte; in sys_read()
201 auio.uio_resid = uap->nbyte; in sys_read()
203 error = kern_readv(td, uap->fd, &auio); in sys_read()
220 sys_pread(struct thread *td, struct pread_args *uap) in sys_pread() argument
223 return (kern_pread(td, uap->fd, uap->buf, uap in sys_pread()
247 freebsd6_pread(struct thread * td,struct freebsd6_pread_args * uap) freebsd6_pread() argument
265 sys_readv(struct thread * td,struct readv_args * uap) sys_readv() argument
304 sys_preadv(struct thread * td,struct preadv_args * uap) sys_preadv() argument
390 sys_write(struct thread * td,struct write_args * uap) sys_write() argument
421 sys_pwrite(struct thread * td,struct pwrite_args * uap) sys_pwrite() argument
449 freebsd6_pwrite(struct thread * td,struct freebsd6_pwrite_args * uap) freebsd6_pwrite() argument
467 sys_writev(struct thread * td,struct writev_args * uap) sys_writev() argument
506 sys_pwritev(struct thread * td,struct pwritev_args * uap) sys_pwritev() argument
625 sys_ftruncate(struct thread * td,struct ftruncate_args * uap) sys_ftruncate() argument
639 oftruncate(struct thread * td,struct oftruncate_args * uap) oftruncate() argument
655 sys_ioctl(struct thread * td,struct ioctl_args * uap) sys_ioctl() argument
826 sys_posix_fallocate(struct thread * td,struct posix_fallocate_args * uap) sys_posix_fallocate() argument
867 sys_fspacectl(struct thread * td,struct fspacectl_args * uap) sys_fspacectl() argument
1014 sys_pselect(struct thread * td,struct pselect_args * uap) sys_pselect() argument
1071 sys_select(struct thread * td,struct select_args * uap) sys_select() argument
1474 sys_poll(struct thread * td,struct poll_args * uap) sys_poll() argument
1563 sys_ppoll(struct thread * td,struct ppoll_args * uap) sys_ppoll() argument
2162 sys_kcmp(struct thread * td,struct kcmp_args * uap) sys_kcmp() argument
[all...]
H A Dkern_context.c61 sys_getcontext(struct thread *td, struct getcontext_args *uap) in sys_getcontext() argument
66 if (uap->ucp == NULL) in sys_getcontext()
74 ret = copyout(&uc, uap->ucp, UC_COPY_SIZE); in sys_getcontext()
80 sys_setcontext(struct thread *td, struct setcontext_args *uap) in sys_setcontext() argument
85 if (uap->ucp == NULL) in sys_setcontext()
88 ret = copyin(uap->ucp, &uc, UC_COPY_SIZE); in sys_setcontext()
101 sys_swapcontext(struct thread *td, struct swapcontext_args *uap) in sys_swapcontext() argument
106 if (uap->oucp == NULL || uap->ucp == NULL) in sys_swapcontext()
114 ret = copyout(&uc, uap->oucp, UC_COPY_SIZE); in sys_swapcontext()
116 ret = copyin(uap->ucp, &uc, UC_COPY_SIZE); in sys_swapcontext()
H A Duipc_sem.c621 sys_ksem_init(struct thread *td, struct ksem_init_args *uap) in sys_ksem_init() argument
624 return (ksem_create(td, NULL, uap->idp, S_IRWXU | S_IRWXG, uap->value, in sys_ksem_init()
638 sys_ksem_open(struct thread *td, struct ksem_open_args *uap) in sys_ksem_open() argument
643 if ((uap->oflag & ~(O_CREAT | O_EXCL)) != 0) in sys_ksem_open()
645 return (ksem_create(td, uap->name, uap->idp, uap->mode, uap->value, in sys_ksem_open()
646 uap->oflag, 0)); in sys_ksem_open()
655 sys_ksem_unlink(struct thread *td, struct ksem_unlink_args *uap) in sys_ksem_unlink() argument
667 error = copyinstr(uap->name, path + pr_pathlen, MAXPATHLEN - pr_pathlen, in sys_ksem_unlink()
690 sys_ksem_close(struct thread *td, struct ksem_close_args *uap) in sys_ksem_close() argument
697 AUDIT_ARG_FD(uap->id); in sys_ksem_close()
[all …]
H A Dsysv_shm.c367 sys_shmdt(struct thread *td, struct shmdt_args *uap) in sys_shmdt() argument
372 error = kern_shmdt_locked(td, uap->shmaddr); in sys_shmdt()
486 sys_shmat(struct thread *td, struct shmat_args *uap) in sys_shmat() argument
489 return (kern_shmat(td, uap->shmid, uap->shmaddr, uap->shmflg)); in sys_shmat()
615 sys_shmctl(struct thread *td, struct shmctl_args *uap) in sys_shmctl() argument
626 if (uap->cmd == IPC_INFO || uap->cmd == SHM_INFO || in sys_shmctl()
627 uap->cmd == SHM_STAT) in sys_shmctl()
631 if (uap->cmd == IPC_SET) { in sys_shmctl()
632 if ((error = copyin(uap->buf, &buf, sizeof(struct shmid_ds)))) in sys_shmctl()
636 error = kern_shmctl(td, uap->shmid, uap->cmd, (void *)&buf, &bufsz); in sys_shmctl()
[all …]
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_misc.c223 freebsd32_wait4(struct thread *td, struct freebsd32_wait4_args *uap) in freebsd32_wait4() argument
229 if (uap->rusage != NULL) in freebsd32_wait4()
233 error = kern_wait(td, uap->pid, &status, uap->options, rup); in freebsd32_wait4()
236 if (uap->status != NULL) in freebsd32_wait4()
237 error = copyout(&status, uap->status, sizeof(status)); in freebsd32_wait4()
238 if (uap->rusage != NULL && error == 0) { in freebsd32_wait4()
240 error = copyout(&ru32, uap->rusage, sizeof(ru32)); in freebsd32_wait4()
246 freebsd32_wait6(struct thread *td, struct freebsd32_wait6_args *uap) in freebsd32_wait6() argument
254 if (uap->wrusage != NULL) in freebsd32_wait6()
258 if (uap->info != NULL) { in freebsd32_wait6()
[all …]
H A Dfreebsd32_ioctl.c59 struct freebsd32_ioctl_args *uap, struct file *fp) in freebsd32_ioctl_memrange() argument
66 if ((error = copyin(uap->data, &mro32, sizeof(mro32))) != 0) in freebsd32_ioctl_memrange()
73 com = _IOC_NEWTYPE(uap->com, struct mem_range_op); in freebsd32_ioctl_memrange()
82 error = copyout(&mro32, uap->data, sizeof(mro32)); in freebsd32_ioctl_memrange()
90 struct freebsd32_ioctl_args *uap, struct file *fp) in freebsd32_ioctl_barmmap() argument
96 error = copyin(uap->data, &pbm32, sizeof(pbm32)); in freebsd32_ioctl_barmmap()
117 error = copyout(&pbm32, uap->data, sizeof(pbm32)); in freebsd32_ioctl_barmmap()
124 struct freebsd32_ioctl_args *uap, struct file *fp) in freebsd32_ioctl_sg() argument
130 if ((error = copyin(uap->data, &io32, sizeof(io32))) != 0) in freebsd32_ioctl_sg()
182 error = copyout(&io32, uap->data, sizeof(io32)); in freebsd32_ioctl_sg()
[all …]
H A Dfreebsd32_capability.c53 struct freebsd32_cap_ioctls_limit_args *uap) in freebsd32_cap_ioctls_limit() argument
61 ncmds = uap->ncmds; in freebsd32_cap_ioctls_limit()
70 error = copyin(uap->cmds, cmds32, sizeof(cmds32[0]) * ncmds); in freebsd32_cap_ioctls_limit()
81 return (kern_cap_ioctls_limit(td, uap->fd, cmds, ncmds)); in freebsd32_cap_ioctls_limit()
86 struct freebsd32_cap_ioctls_get_args *uap) in freebsd32_cap_ioctls_get() argument
96 fd = uap->fd; in freebsd32_cap_ioctls_get()
97 cmds32 = uap->cmds; in freebsd32_cap_ioctls_get()
98 maxcmds = uap->maxcmds; in freebsd32_cap_ioctls_get()
141 struct freebsd32_cap_ioctls_limit_args *uap) in freebsd32_cap_ioctls_limit() argument
149 struct freebsd32_cap_ioctls_get_args *uap) in freebsd32_cap_ioctls_get() argument
/freebsd/sys/amd64/amd64/
H A Dsys_machdep.c98 sysarch_ldt(struct thread *td, struct sysarch_args *uap, int uap_space) in sysarch_ldt() argument
108 AUDIT_ARG_CMD(uap->op); in sysarch_ldt()
110 error = copyin(uap->parms, &la, sizeof(struct i386_ldt_args)); in sysarch_ldt()
115 largs = (struct i386_ldt_args *)uap->parms; in sysarch_ldt()
117 switch (uap->op) { in sysarch_ldt()
172 sysarch(struct thread *td, struct sysarch_args *uap) in sysarch() argument
191 switch (uap->op) { in sysarch()
214 ktrcapfail(CAPFAIL_SYSCALL, &uap->op); in sysarch()
221 if (uap->op == I386_GET_LDT || uap->op == I386_SET_LDT) in sysarch()
222 return (sysarch_ldt(td, uap, UIO_USERSPACE)); in sysarch()
[all …]
/freebsd/sys/netinet/
H A Dsctp_syscalls.c140 sys_sctp_peeloff(struct thread *td, struct sctp_peeloff_args *uap) in sys_sctp_peeloff() argument
149 AUDIT_ARG_FD(uap->sd); in sys_sctp_peeloff()
150 error = getsock_cap(td, uap->sd, in sys_sctp_peeloff()
160 error = sctp_can_peel_off(head, (sctp_assoc_t)uap->name); in sys_sctp_peeloff()
181 error = sctp_do_peeloff(head, so, (sctp_assoc_t)uap->name); in sys_sctp_peeloff()
208 sys_sctp_generic_sendmsg(struct thread *td, struct sctp_generic_sendmsg_args *uap) in sys_sctp_generic_sendmsg() argument
222 if (uap->sinfo != NULL) { in sys_sctp_generic_sendmsg()
223 error = copyin(uap->sinfo, &sinfo, sizeof (sinfo)); in sys_sctp_generic_sendmsg()
230 if (uap->tolen != 0) { in sys_sctp_generic_sendmsg()
231 error = getsockaddr(&to, uap->to, uap->tolen); in sys_sctp_generic_sendmsg()
[all …]
/freebsd/sys/i386/i386/
H A Dsys_machdep.c135 sysarch(struct thread *td, struct sysarch_args *uap) in sysarch() argument
147 AUDIT_ARG_CMD(uap->op); in sysarch()
155 switch (uap->op) { in sysarch()
169 ktrcapfail(CAPFAIL_SYSCALL, &uap->op); in sysarch()
176 switch (uap->op) { in sysarch()
179 if ((error = copyin(uap->parms, &kargs.iargs, in sysarch()
185 if ((error = copyin(uap->parms, &kargs.largs, in sysarch()
190 if ((error = copyin(uap->parms, &kargs.xfpu, in sysarch()
198 switch (uap->op) { in sysarch()
220 error = copyout(&kargs.iargs, uap->parms, in sysarch()
[all …]
/freebsd/sys/security/audit/
H A Daudit_syscalls.c68 sys_audit(struct thread *td, struct audit_args *uap) in sys_audit() argument
80 if ((uap->length <= 0) || (uap->length > audit_qctrl.aq_bufsz)) in sys_audit()
105 if (uap->length > MAX_AUDIT_RECORD_SIZE) in sys_audit()
108 rec = malloc(uap->length, M_AUDITDATA, M_WAITOK); in sys_audit()
110 error = copyin(uap->record, rec, uap->length); in sys_audit()
121 error = mac_system_check_audit(td->td_ucred, rec, uap->length); in sys_audit()
135 ar->k_ulen = uap->length; in sys_audit()
161 sys_auditon(struct thread *td, struct auditon_args *uap) in sys_auditon() argument
170 AUDIT_ARG_CMD(uap->cmd); in sys_auditon()
173 error = mac_system_check_auditon(td->td_ucred, uap->cmd); in sys_auditon()
[all …]
/freebsd/sys/security/mac/
H A Dmac_syscalls.c82 sys___mac_get_pid(struct thread *td, struct __mac_get_pid_args *uap) in sys___mac_get_pid() argument
90 error = copyin(uap->mac_p, &mac, sizeof(mac)); in sys___mac_get_pid()
98 tproc = pfind(uap->pid); in sys___mac_get_pid()
131 sys___mac_get_proc(struct thread *td, struct __mac_get_proc_args *uap) in sys___mac_get_proc() argument
137 error = copyin(uap->mac_p, &mac, sizeof(mac)); in sys___mac_get_proc()
164 sys___mac_set_proc(struct thread *td, struct __mac_set_proc_args *uap) in sys___mac_set_proc() argument
176 error = copyin(uap->mac_p, &mac, sizeof(mac)); in sys___mac_set_proc()
225 sys___mac_get_fd(struct thread *td, struct __mac_get_fd_args *uap) in sys___mac_get_fd() argument
237 error = copyin(uap->mac_p, &mac, sizeof(mac)); in sys___mac_get_fd()
253 error = fget(td, uap->fd, cap_rights_init_one(&rights, CAP_MAC_GET), in sys___mac_get_fd()
[all …]
/freebsd/sys/i386/linux/
H A Dlinux_ptrace_machdep.c234 linux_ptrace(struct thread *td, struct linux_ptrace_args *uap) in linux_ptrace() argument
253 req = uap->req; in linux_ptrace()
254 pid = (pid_t)uap->pid; in linux_ptrace()
255 addr = (void *)uap->addr; in linux_ptrace()
262 error = kern_ptrace(td, req, pid, addr, uap->data); in linux_ptrace()
270 error = copyout(td->td_retval, (void *)uap->data, in linux_ptrace()
277 map_signum(uap->data)); in linux_ptrace()
282 map_signum(uap->data)); in linux_ptrace()
285 error = kern_ptrace(td, PT_ATTACH, pid, addr, uap->data); in linux_ptrace()
292 error = copyout(&r.reg, (void *)uap in linux_ptrace()
[all...]
/freebsd/sys/dev/filemon/
H A Dfilemon_wrapper.c93 filemon_wrapper_chdir(struct thread *td, struct chdir_args *uap) in filemon_wrapper_chdir() argument
98 if ((ret = sys_chdir(td, uap)) == 0) { in filemon_wrapper_chdir()
100 if ((error = copyinstr(uap->path, filemon->fname1, in filemon_wrapper_chdir()
214 filemon_wrapper_open(struct thread *td, struct open_args *uap) in filemon_wrapper_open() argument
218 if ((ret = sys_open(td, uap)) == 0) in filemon_wrapper_open()
219 _filemon_wrapper_openat(td, uap->path, uap->flags, AT_FDCWD); in filemon_wrapper_open()
225 filemon_wrapper_openat(struct thread *td, struct openat_args *uap) in filemon_wrapper_openat() argument
229 if ((ret = sys_openat(td, uap)) == 0) in filemon_wrapper_openat()
230 _filemon_wrapper_openat(td, uap->path, uap->flag, uap->fd); in filemon_wrapper_openat()
236 filemon_wrapper_rename(struct thread *td, struct rename_args *uap) in filemon_wrapper_rename() argument
[all …]
/freebsd/sys/compat/linux/
H A Dlinux_ptrace.c454 linux_ptrace(struct thread *td, struct linux_ptrace_args *uap) in linux_ptrace() argument
463 pid = (pid_t)uap->pid; in linux_ptrace()
464 addr = (void *)uap->addr; in linux_ptrace()
466 switch (uap->req) { in linux_ptrace()
472 error = linux_ptrace_peek(td, pid, addr, (void *)uap->data); in linux_ptrace()
479 (void *)(uap->addr + 4), (void *)(uap->data + 4)); in linux_ptrace()
482 error = linux_ptrace_peekuser(td, pid, addr, (void *)uap->data); in linux_ptrace()
486 error = kern_ptrace(td, PT_WRITE_D, pid, addr, uap->data); in linux_ptrace()
493 (void *)(uap->addr + 4), uap->data >> 32); in linux_ptrace()
496 error = linux_ptrace_pokeuser(td, pid, addr, (void *)uap->data); in linux_ptrace()
[all …]
/freebsd/sys/nfs/
H A Dnfs_nfssvc.c77 sys_nfssvc(struct thread *td, struct nfssvc_args *uap) in sys_nfssvc() argument
83 AUDIT_ARG_CMD(uap->flag); in sys_nfssvc()
86 if ((uap->flag & ~(NFSSVC_GETSTATS | NFSSVC_NEWSTRUCT)) != 0) { in sys_nfssvc()
92 if ((uap->flag & (NFSSVC_ADDSOCK | NFSSVC_OLDNFSD | NFSSVC_NFSD)) && in sys_nfssvc()
94 error = (*nfsd_call_nfsserver)(td, uap); in sys_nfssvc()
95 else if ((uap->flag & (NFSSVC_CBADDSOCK | NFSSVC_NFSCBD | in sys_nfssvc()
97 error = (*nfsd_call_nfscl)(td, uap); in sys_nfssvc()
98 else if ((uap->flag & (NFSSVC_IDNAME | NFSSVC_GETSTATS | in sys_nfssvc()
102 error = (*nfsd_call_nfscommon)(td, uap); in sys_nfssvc()
103 else if ((uap->flag & (NFSSVC_NFSDNFSD | NFSSVC_NFSDADDSOCK | in sys_nfssvc()
[all …]
/freebsd/lib/libc/isc/
H A Dev_timers.c61 void * uap; member
180 void *uap, in evSetTimer() argument
190 ctx, func, uap, in evSetTimer()
218 id->uap = uap; in evSetTimer()
298 void *uap, in evResetTimer() argument
330 timer->uap = uap; in evResetTimer()
357 void *uap, in evSetIdleTimer() argument
367 tt->uap = uap; in evSetIdleTimer()
386 idle_timer *tt = del->uap; in evClearIdleTimer()
396 void *uap, in evResetIdleTimer() argument
[all …]

12345