/freebsd-12-stable/sys/kern/ |
H A D | kern_ntptime.c | 284 sys_ntp_gettime(struct thread *td, struct ntp_gettime_args *uap) argument 295 return (copyout(&ntv, uap->ntvp, sizeof(ntv))); 477 sys_ntp_adjtime(struct thread *td, struct ntp_adjtime_args *uap) argument 482 error = copyin(uap->tp, &ntv, sizeof(ntv)); 486 error = copyout(&ntv, uap->tp, sizeof(ntv)); 975 sys_adjtime(struct thread *td, struct adjtime_args *uap) argument 980 if (uap->delta) { 981 error = copyin(uap->delta, &delta, sizeof(delta)); 988 if (uap->olddelta && error == 0) 989 error = copyout(&olddelta, uap [all...] |
H A D | kern_linker.c | 1090 sys_kldload(struct thread *td, struct kldload_args *uap) argument 1098 error = copyinstr(uap->file, pathname, MAXPATHLEN, NULL); 1148 sys_kldunload(struct thread *td, struct kldunload_args *uap) argument 1151 return (kern_kldunload(td, uap->fileid, LINKER_UNLOAD_NORMAL)); 1155 sys_kldunloadf(struct thread *td, struct kldunloadf_args *uap) argument 1158 if (uap->flags != LINKER_UNLOAD_NORMAL && 1159 uap->flags != LINKER_UNLOAD_FORCE) 1161 return (kern_kldunload(td, uap->fileid, uap->flags)); 1165 sys_kldfind(struct thread *td, struct kldfind_args *uap) argument 1198 sys_kldnext(struct thread *td, struct kldnext_args *uap) argument 1235 sys_kldstat(struct thread *td, struct kldstat_args *uap) argument 1316 sys_kldfirstmod(struct thread *td, struct kldfirstmod_args *uap) argument 1345 sys_kldsym(struct thread *td, struct kldsym_args *uap) argument [all...] |
H A D | kern_fork.c | 105 sys_fork(struct thread *td, struct fork_args *uap) argument 123 sys_pdfork(struct thread *td, struct pdfork_args *uap) argument 132 fr.fr_pd_flags = uap->flags; 142 error = copyout(&fd, uap->fdp, sizeof(fd)); 149 sys_vfork(struct thread *td, struct vfork_args *uap) argument 166 sys_rfork(struct thread *td, struct rfork_args *uap) argument 172 if ((uap->flags & RFKERNELONLY) != 0) 175 if ((uap->flags & RFSPAWN) != 0 && uap->flags != RFSPAWN) 178 AUDIT_ARG_FFLAGS(uap [all...] |
H A D | kern_sysctl.c | 2147 sys___sysctl(struct thread *td, struct sysctl_args *uap) argument 2152 if (uap->namelen > CTL_MAXNAME || uap->namelen < 2) 2155 error = copyin(uap->name, &name, uap->namelen * sizeof(int)); 2159 error = userland_sysctl(td, name, uap->namelen, 2160 uap->old, uap->oldlenp, 0, 2161 uap->new, uap 2219 sys___sysctlbyname(struct thread *td, struct __sysctlbyname_args *uap) argument [all...] |
H A D | kern_uuid.c | 179 sys_uuidgen(struct thread *td, struct uuidgen_args *uap) argument 191 if (uap->count < 1 || uap->count > 2048) 194 count = uap->count; 197 error = copyout(store, uap->store, count * sizeof(struct uuid));
|
H A D | kern_acct.c | 205 sys_acct(struct thread *td, struct acct_args *uap) argument 218 if (uap->path != NULL) { 220 UIO_USERSPACE, uap->path, td); 258 replacing = (acct_vp != NULL && uap->path != NULL); 269 if (uap->path == NULL) {
|
H A D | subr_prof.c | 408 sys_profil(struct thread *td, struct profil_args *uap) argument 413 if (uap->scale > (1 << 16)) 417 if (uap->scale == 0) { 426 upp->pr_off = uap->offset; 427 upp->pr_scale = uap->scale; 428 upp->pr_base = uap->samples; 429 upp->pr_size = uap->size;
|
H A D | kern_ktrace.c | 910 sys_ktrace(struct thread *td, struct ktrace_args *uap) argument 916 int facs = uap->facs & ~KTRFAC_ROOT; 917 int ops = KTROP(uap->ops); 918 int descend = uap->ops & KTRFLAG_DESCEND; 935 NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_USERSPACE, uap->fname, td); 984 if (uap->pid < 0) { 988 pg = pgfind(-uap->pid); 1022 p = pfind(uap->pid); 1053 sys_utrace(struct thread *td, struct utrace_args *uap) argument 1063 if (uap [all...] |
H A D | vfs_mount.c | 387 sys_nmount(struct thread *td, struct nmount_args *uap) argument 399 flags = uap->flags; 403 uap->iovp, uap->iovcnt, flags); 414 iovcnt = uap->iovcnt; 421 uap->iovcnt); 425 error = copyinuio(uap->iovp, iovcnt, &auio); 773 sys_mount(struct thread *td, struct mount_args *uap) argument 786 flags = uap->flags; 800 error = copyinstr(uap 1210 sys_unmount(struct thread *td, struct unmount_args *uap) argument [all...] |
H A D | kern_descrip.c | 345 sys_getdtablesize(struct thread *td, struct getdtablesize_args *uap) argument 377 sys_dup2(struct thread *td, struct dup2_args *uap) argument 380 return (kern_dup(td, FDDUP_FIXED, 0, (int)uap->from, (int)uap->to)); 393 sys_dup(struct thread *td, struct dup_args *uap) argument 396 return (kern_dup(td, FDDUP_NORMAL, 0, (int)uap->fd, 0)); 411 sys_fcntl(struct thread *td, struct fcntl_args *uap) argument 414 return (kern_fcntl_freebsd(td, uap->fd, uap->cmd, uap 1265 sys_close(struct thread *td, struct close_args *uap) argument 1342 sys_close_range(struct thread *td, struct close_range_args *uap) argument 1361 sys_closefrom(struct thread *td, struct closefrom_args *uap) argument 1387 ofstat(struct thread *td, struct ofstat_args *uap) argument 1404 freebsd11_fstat(struct thread *td, struct freebsd11_fstat_args *uap) argument 1431 sys_fstat(struct thread *td, struct fstat_args *uap) argument 1485 freebsd11_nfstat(struct thread *td, struct freebsd11_nfstat_args *uap) argument 1511 sys_fpathconf(struct thread *td, struct fpathconf_args *uap) argument 3073 sys_flock(struct thread *td, struct flock_args *uap) argument [all...] |
H A D | sys_procdesc.c | 210 sys_pdgetpid(struct thread *td, struct pdgetpid_args *uap) argument 215 AUDIT_ARG_FD(uap->fd); 216 error = kern_pdgetpid(td, uap->fd, &cap_pdgetpid_rights, &pid); 218 error = copyout(&pid, uap->pidp, sizeof(pid));
|
H A D | kern_exec.c | 215 sys_execve(struct thread *td, struct execve_args *uap) argument 224 error = exec_copyin_args(&args, uap->fname, UIO_USERSPACE, 225 uap->argv, uap->envv); 241 sys_fexecve(struct thread *td, struct fexecve_args *uap) argument 251 uap->argv, uap->envv); 253 args.fd = uap->fd; 271 sys___mac_execve(struct thread *td, struct __mac_execve_args *uap) argument 281 error = exec_copyin_args(&args, uap [all...] |
H A D | tty_pts.c | 835 sys_posix_openpt(struct thread *td, struct posix_openpt_args *uap) argument 844 if (uap->flags & ~(O_RDWR|O_NOCTTY|O_CLOEXEC)) 847 error = falloc(td, &fp, &fd, uap->flags); 852 error = pts_alloc(FFLAGS(uap->flags & O_ACCMODE), td, fp);
|
H A D | init_main.c | 722 char *ucp, **uap, *arg0, *arg1; local 802 uap = (char **)rounddown2((intptr_t)ucp, sizeof(intptr_t)); 803 (void)suword((caddr_t)--uap, (long)0); /* terminator */ 804 (void)suword((caddr_t)--uap, (long)(intptr_t)arg1); 805 (void)suword((caddr_t)--uap, (long)(intptr_t)arg0); 811 args.argv = uap;
|
H A D | kern_jail.c | 260 sys_jail(struct thread *td, struct jail_args *uap) argument 266 error = copyin(uap->jail, &version, sizeof(uint32_t)); 277 error = copyin(uap->jail, &j0, sizeof(struct jail_v0)); 296 error = copyin(uap->jail, &j, sizeof(struct jail)); 475 sys_jail_set(struct thread *td, struct jail_set_args *uap) argument 481 if (uap->iovcnt & 1) 484 error = copyinuio(uap->iovp, uap->iovcnt, &auio); 487 error = kern_jail_set(td, auio, uap->flags); 1945 sys_jail_get(struct thread *td, struct jail_get_args *uap) argument 2255 sys_jail_remove(struct thread *td, struct jail_remove_args *uap) argument 2361 sys_jail_attach(struct thread *td, struct jail_attach_args *uap) argument [all...] |
H A D | uipc_shm.c | 856 sys_shm_open(struct thread *td, struct shm_open_args *uap) argument 859 return (kern_shm_open(td, uap->path, uap->flags | O_CLOEXEC, uap->mode, 864 sys_shm_unlink(struct thread *td, struct shm_unlink_args *uap) argument 876 error = copyinstr(uap->path, path + pr_pathlen, MAXPATHLEN - pr_pathlen,
|
/freebsd-12-stable/sys/amd64/ia32/ |
H A D | ia32_signal.c | 256 freebsd32_getcontext(struct thread *td, struct freebsd32_getcontext_args *uap) argument 261 if (uap->ucp == NULL) 270 ret = copyout(&uc, uap->ucp, UC_COPY_SIZE); 276 freebsd32_setcontext(struct thread *td, struct freebsd32_setcontext_args *uap) argument 281 if (uap->ucp == NULL) 284 ret = copyin(uap->ucp, &uc, UC_COPY_SIZE); 297 freebsd32_swapcontext(struct thread *td, struct freebsd32_swapcontext_args *uap) argument 302 if (uap->oucp == NULL || uap->ucp == NULL) 310 ret = copyout(&uc, uap 702 ofreebsd32_sigreturn(struct thread *td, struct ofreebsd32_sigreturn_args *uap) argument [all...] |
/freebsd-12-stable/sys/compat/linux/ |
H A D | linux_misc.c | 1167 linux_setitimer(struct thread *td, struct linux_setitimer_args *uap) argument 1173 if (uap->itv == NULL) { 1174 uap->itv = uap->oitv; 1175 return (linux_getitimer(td, (struct linux_getitimer_args *)uap)); 1178 error = copyin(uap->itv, &ls, sizeof(ls)); 1182 error = kern_setitimer(td, uap->which, &aitv, &oitv); 1183 if (error != 0 || uap->oitv == NULL) 1187 return (copyout(&ls, uap->oitv, sizeof(ls))); 1191 linux_getitimer(struct thread *td, struct linux_getitimer_args *uap) argument 1740 linux_capget(struct thread *td, struct linux_capget_args *uap) argument 1787 linux_capset(struct thread *td, struct linux_capset_args *uap) argument 1925 linux_sched_setparam(struct thread *td, struct linux_sched_setparam_args *uap) argument 1979 linux_sched_getparam(struct thread *td, struct linux_sched_getparam_args *uap) argument 2281 linux_sched_rr_get_interval(struct thread *td, struct linux_sched_rr_get_interval_args *uap) argument [all...] |
/freebsd-12-stable/sys/vm/ |
H A D | vm_unix.c | 70 sys_break(struct thread *td, struct break_args *uap) argument 76 addr = (uintptr_t)uap->nsize; 243 freebsd11_vadvise(struct thread *td, struct freebsd11_vadvise_args *uap) argument
|
/freebsd-12-stable/sys/geom/part/ |
H A D | g_part_gpt.c | 309 struct g_part_uuid_alias *uap; local 311 for (uap = &gpt_uuid_alias_match[0]; uap->uuid; uap++) { 312 if (EQUUID(t, uap->uuid)) 313 return (uap->mbrtype); 597 struct g_part_uuid_alias *uap; local 608 for (uap = &gpt_uuid_alias_match[0]; uap->uuid; uap 1139 struct g_part_uuid_alias *uap; local [all...] |
/freebsd-12-stable/contrib/ngatm/sscop/ |
H A D | common.c | 398 tfunc(int tid __unused, void *uap) argument 401 tfunc(evContext ctx __unused, void *uap, struct timespec due __unused, 405 struct timer *t = uap;
|
/freebsd-12-stable/sys/compat/cloudabi/ |
H A D | cloudabi_futex.c | 1097 struct cloudabi_sys_condvar_signal_args *uap) 1104 nwaiters = uap->nwaiters; 1111 error = futex_condvar_lookup(td, uap->condvar, uap->scope, &fc); 1147 error = futex_condvar_unmanage(fc, uap->condvar); 1154 struct cloudabi_sys_lock_unlock_args *uap) 1159 error = futex_lock_lookup(td, uap->lock, uap->scope, &fl); 1162 error = futex_lock_unlock(fl, td, uap->lock); 1096 cloudabi_sys_condvar_signal(struct thread *td, struct cloudabi_sys_condvar_signal_args *uap) argument 1153 cloudabi_sys_lock_unlock(struct thread *td, struct cloudabi_sys_lock_unlock_args *uap) argument
|
/freebsd-12-stable/contrib/ntp/lib/isc/ |
H A D | heap.c | 257 isc_heap_foreach(isc_heap_t *heap, isc_heapaction_t action, void *uap) { argument 264 (action)(heap->array[i], uap);
|
/freebsd-12-stable/sys/kgssapi/ |
H A D | gss_impl.c | 88 sys_gssd_syscall(struct thread *td, struct gssd_syscall_args *uap) argument 100 error = copyinstr(uap->path, path, sizeof(path), NULL);
|
/freebsd-12-stable/sys/fs/nfsclient/ |
H A D | nfs_clport.c | 1243 nfssvc_nfscl(struct thread *td, struct nfssvc_args *uap) argument 1256 if (uap->flag & NFSSVC_CBADDSOCK) { 1257 error = copyin(uap->argp, (caddr_t)&nfscbdarg, sizeof(nfscbdarg)); 1279 } else if (uap->flag & NFSSVC_NFSCBD) { 1280 if (uap->argp == NULL) 1282 error = copyin(uap->argp, (caddr_t)&nfscbdarg2, 1287 } else if (uap->flag & NFSSVC_DUMPMNTOPTS) { 1288 error = copyin(uap->argp, &dumpmntopts, sizeof(dumpmntopts)); 1309 } else if (uap->flag & NFSSVC_FORCEDISM) { 1311 error = copyinstr(uap [all...] |