/xnu-2422.115.4/bsd/kern/ |
H A D | pthread_shims.c | 205 bsdthread_create(struct proc *p, struct bsdthread_create_args *uap, user_addr_t *retval) argument 207 return pthread_functions->bsdthread_create(p, uap->func, uap->func_arg, uap->stack, uap->pthread, uap->flags, retval); 211 bsdthread_register(struct proc *p, struct bsdthread_register_args *uap, __unused int32_t *retval) argument 213 return pthread_functions->bsdthread_register(p, uap->threadstart, uap->wqthread, uap 218 bsdthread_terminate(struct proc *p, struct bsdthread_terminate_args *uap, int32_t *retval) argument 224 thread_selfid(struct proc *p, __unused struct thread_selfid_args *uap, uint64_t *retval) argument 230 workq_kernreturn(struct proc *p, struct workq_kernreturn_args *uap, int32_t *retval) argument 236 workq_open(struct proc *p, __unused struct workq_open_args *uap, int32_t *retval) argument 244 psynch_mutexwait(proc_t p, struct psynch_mutexwait_args *uap, uint32_t *retval) argument 250 psynch_mutexdrop(proc_t p, struct psynch_mutexdrop_args *uap, uint32_t *retval) argument 256 psynch_cvbroad(proc_t p, struct psynch_cvbroad_args *uap, uint32_t *retval) argument 262 psynch_cvsignal(proc_t p, struct psynch_cvsignal_args *uap, uint32_t *retval) argument 268 psynch_cvwait(proc_t p, struct psynch_cvwait_args * uap, uint32_t * retval) argument 274 psynch_cvclrprepost(proc_t p, struct psynch_cvclrprepost_args * uap, int *retval) argument 280 psynch_rw_longrdlock(proc_t p, struct psynch_rw_longrdlock_args * uap, uint32_t *retval) argument 286 psynch_rw_rdlock(proc_t p, struct psynch_rw_rdlock_args * uap, uint32_t * retval) argument 292 psynch_rw_unlock(proc_t p, struct psynch_rw_unlock_args *uap, uint32_t *retval) argument 298 psynch_rw_unlock2(__unused proc_t p, __unused struct psynch_rw_unlock2_args *uap, __unused uint32_t *retval) argument 304 psynch_rw_wrlock(proc_t p, struct psynch_rw_wrlock_args *uap, uint32_t *retval) argument 310 psynch_rw_yieldwrlock(proc_t p, struct psynch_rw_yieldwrlock_args *uap, uint32_t *retval) argument 316 psynch_rw_upgrade(__unused proc_t p, __unused struct psynch_rw_upgrade_args * uap, __unused uint32_t *retval) argument 322 psynch_rw_downgrade(__unused proc_t p, __unused struct psynch_rw_downgrade_args * uap, __unused int *retval) argument [all...] |
H A D | kern_xxx.c | 91 reboot(struct proc *p, register struct reboot_args *uap, __unused int32_t *retval) argument 100 AUDIT_ARG(cmd, uap->opt); 107 if (uap->opt & RB_COMMAND) 108 error = copyinstr(uap->command, 114 error = mac_system_check_reboot(my_cred, uap->opt); 119 error = boot(RB_BOOT, uap->opt, command);
|
H A D | kern_guarded.c | 308 guarded_open_np(proc_t p, struct guarded_open_np_args *uap, int32_t *retval) argument 310 if ((uap->flags & O_CLOEXEC) == 0) 317 if (((uap->guardflags & GUARD_REQUIRED) != GUARD_REQUIRED) || 318 ((uap->guardflags & ~GUARD_ALL) != 0)) 323 .gca_attrs = uap->guardflags 326 if ((error = copyin(uap->guard, 343 cmode = ((uap->mode & ~fdp->fd_cmask) & ALLPERMS) & ~S_ISTXT; 347 uap->path, ctx); 349 return (open1(ctx, &nd, uap->flags | O_CLOFORK, &va, 365 guarded_kqueue_np(proc_t p, struct guarded_kqueue_np_args *uap, int32_ argument 390 guarded_close_np(proc_t p, struct guarded_close_np_args *uap, __unused int32_t *retval) argument 473 change_fdguard_np(proc_t p, struct change_fdguard_np_args *uap, __unused int32_t *retval) argument [all...] |
H A D | kern_prot.c | 149 * Parameters: uap->flag New value for flag 156 setprivexec(proc_t p, struct setprivexec_args *uap, int32_t *retval) argument 158 AUDIT_ARG(value32, uap->flag); 160 p->p_debugger = (uap->flag != 0); 177 getpid(proc_t p, __unused struct getpid_args *uap, int32_t *retval) argument 197 getppid(proc_t p, __unused struct getppid_args *uap, int32_t *retval) argument 217 getpgrp(proc_t p, __unused struct getpgrp_args *uap, int32_t *retval) argument 230 * Parameters: uap->pid The target pid 242 getpgid(proc_t p, struct getpgid_args *uap, int32_t *retval) argument 248 if (uap 279 getsid(proc_t p, struct getsid_args *uap, int32_t *retval) argument 313 getuid(__unused proc_t p, __unused struct getuid_args *uap, int32_t *retval) argument 331 geteuid(__unused proc_t p, __unused struct geteuid_args *uap, int32_t *retval) argument 351 gettid(__unused proc_t p, struct gettid_args *uap, int32_t *retval) argument 383 getgid(__unused proc_t p, __unused struct getgid_args *uap, int32_t *retval) argument 407 getegid(__unused proc_t p, __unused struct getegid_args *uap, int32_t *retval) argument 446 getgroups(__unused proc_t p, struct getgroups_args *uap, int32_t *retval) argument 487 getsgroups(__unused proc_t p, __unused struct getsgroups_args *uap, __unused int32_t *retval) argument 500 getwgroups(__unused proc_t p, __unused struct getwgroups_args *uap, __unused int32_t *retval) argument 531 setsid(proc_t p, __unused struct setsid_args *uap, int32_t *retval) argument 586 setpgid(proc_t curp, register struct setpgid_args *uap, __unused int32_t *retval) argument 676 issetugid(proc_t p, __unused struct issetugid_args *uap, int32_t *retval) argument 713 setuid(proc_t p, struct setuid_args *uap, __unused int32_t *retval) argument 833 seteuid(proc_t p, struct seteuid_args *uap, __unused int32_t *retval) argument 935 setreuid(proc_t p, struct setreuid_args *uap, __unused int32_t *retval) argument 1076 setgid(proc_t p, struct setgid_args *uap, __unused int32_t *retval) argument 1178 setegid(proc_t p, struct setegid_args *uap, __unused int32_t *retval) argument 1282 setregid(proc_t p, struct setregid_args *uap, __unused int32_t *retval) argument 1397 settid(proc_t p, struct settid_args *uap, __unused int32_t *retval) argument 1469 settid_with_pid(proc_t p, struct settid_with_pid_args *uap, __unused int32_t *retval) argument 1728 initgroups(proc_t p, struct initgroups_args *uap, __unused int32_t *retval) argument 1762 setgroups(proc_t p, struct setgroups_args *uap, __unused int32_t *retval) argument 1778 setsgroups(__unused proc_t p, __unused struct setsgroups_args *uap, __unused int32_t *retval) argument 1791 setwgroups(__unused proc_t p, __unused struct setwgroups_args *uap, __unused int32_t *retval) argument 1868 getlogin(proc_t p, struct getlogin_args *uap, __unused int32_t *retval) argument 1908 setlogin(proc_t p, struct setlogin_args *uap, __unused int32_t *retval) argument 2045 setlcid(proc_t p0, struct setlcid_args *uap, __unused int32_t *retval) argument 2151 getlcid(proc_t p0, struct getlcid_args *uap, int32_t *retval) argument 2188 setlcid(proc_t p0, struct setlcid_args *uap, int32_t *retval) argument 2195 getlcid(proc_t p0, struct getlcid_args *uap, int32_t *retval) argument [all...] |
H A D | mach_process.c | 115 ptrace(struct proc *p, struct ptrace_args *uap, int32_t *retval) argument 125 AUDIT_ARG(cmd, uap->req); 126 AUDIT_ARG(pid, uap->pid); 127 AUDIT_ARG(addr, uap->addr); 128 AUDIT_ARG(value32, uap->data); 130 if (uap->req == PT_DENY_ATTACH) { 147 if (uap->req == PT_FORCEQUOTA) { 158 if (uap->req == PT_TRACE_ME) { 174 if (uap->req == PT_SIGEXC) { 189 if (uap [all...] |
H A D | uipc_syscalls.c | 177 struct socket_args *uap, 180 return (socket_common(p, uap->domain, uap->type, uap->protocol, 186 struct socket_delegate_args *uap, 189 return socket_common(p, uap->domain, uap->type, uap->protocol, 190 uap->epid, retval, 1); 263 bind(__unused proc_t p, struct bind_args *uap, __unuse argument 176 socket(struct proc *p, struct socket_args *uap, int32_t *retval) argument 185 socket_delegate(struct proc *p, struct socket_delegate_args *uap, int32_t *retval) argument 319 listen(__unused struct proc *p, struct listen_args *uap, __unused int32_t *retval) argument 364 accept_nocancel(struct proc *p, struct accept_nocancel_args *uap, int32_t *retval) argument 579 accept(struct proc *p, struct accept_args *uap, int32_t *retval) argument 609 connect(struct proc *p, struct connect_args *uap, int32_t *retval) argument 616 connect_nocancel(proc_t p, struct connect_nocancel_args *uap, int32_t *retval) argument 664 connectx_nocancel(struct proc *p, struct connectx_args *uap, int *retval) argument 722 connectx(struct proc *p, struct connectx_args *uap, int *retval) argument 842 peeloff(struct proc *p, struct peeloff_args *uap, int *retval) argument 853 peeloff_nocancel(struct proc *p, struct peeloff_args *uap, int *retval) argument 921 disconnectx(struct proc *p, struct disconnectx_args *uap, int *retval) argument 932 disconnectx_nocancel(struct proc *p, struct disconnectx_args *uap, int *retval) argument 971 socketpair(struct proc *p, struct socketpair_args *uap, __unused int32_t *retval) argument 1171 sendto(struct proc *p, struct sendto_args *uap, int32_t *retval) argument 1178 sendto_nocancel(struct proc *p, struct sendto_nocancel_args *uap, int32_t *retval) argument 1223 sendmsg(struct proc *p, struct sendmsg_args *uap, int32_t *retval) argument 1230 sendmsg_nocancel(struct proc *p, struct sendmsg_nocancel_args *uap, int32_t *retval) argument 1556 recvfrom(struct proc *p, struct recvfrom_args *uap, int32_t *retval) argument 1563 recvfrom_nocancel(struct proc *p, struct recvfrom_nocancel_args *uap, int32_t *retval) argument 1617 recvmsg(struct proc *p, struct recvmsg_args *uap, int32_t *retval) argument 1624 recvmsg_nocancel(struct proc *p, struct recvmsg_nocancel_args *uap, int32_t *retval) argument 1762 shutdown(__unused struct proc *p, struct shutdown_args *uap, __unused int32_t *retval) argument 1799 setsockopt(struct proc *p, struct setsockopt_args *uap, __unused int32_t *retval) argument 1851 getsockopt(struct proc *p, struct getsockopt_args *uap, __unused int32_t *retval) argument 1915 getsockname(__unused struct proc *p, struct getsockname_args *uap, __unused int32_t *retval) argument 1983 getpeername(__unused struct proc *p, struct getpeername_args *uap, __unused int32_t *retval) argument 2341 sendfile(struct proc *p, struct sendfile_args *uap, __unused int *retval) argument [all...] |
H A D | kern_mman.c | 139 mmap(proc_t p, struct mmap_args *uap, user_addr_t *retval) argument 164 int fd = uap->fd; 168 user_addr = (vm_map_offset_t)uap->addr; 169 user_size = (vm_map_size_t) uap->len; 173 AUDIT_ARG(fd, uap->fd); 175 prot = (uap->prot & VM_PROT_ALL); 187 flags = uap->flags; 195 file_pos = (vm_object_offset_t)uap->pos; 301 uap->addr = (user_addr_t)user_addr; 302 uap 631 msync(__unused proc_t p, struct msync_args *uap, int32_t *retval) argument 638 msync_nocancel(__unused proc_t p, struct msync_nocancel_args *uap, __unused int32_t *retval) argument 704 munmap(__unused proc_t p, struct munmap_args *uap, __unused int32_t *retval) argument 739 mprotect(__unused proc_t p, struct mprotect_args *uap, __unused int32_t *retval) argument 840 minherit(__unused proc_t p, struct minherit_args *uap, __unused int32_t *retval) argument 869 madvise(__unused proc_t p, struct madvise_args *uap, __unused int32_t *retval) argument 935 mincore(__unused proc_t p, struct mincore_args *uap, __unused int32_t *retval) argument 1037 mlock(__unused proc_t p, struct mlock_args *uap, __unused int32_t *retvalval) argument 1074 munlock(__unused proc_t p, struct munlock_args *uap, __unused int32_t *retval) argument 1095 mlockall(__unused proc_t p, __unused struct mlockall_args *uap, __unused int32_t *retval) argument 1101 munlockall(__unused proc_t p, __unused struct munlockall_args *uap, __unused int32_t *retval) argument [all...] |
H A D | sysv_shm.c | 121 static int oshmctl(void *p, void *uap, void *retval); 122 static int shmget_allocate_segment(struct proc *p, struct shmget_args *uap, int mode, int * retval); 123 static int shmget_existing(struct shmget_args *uap, int mode, int segnum, int * retval); 311 shmdt(struct proc *p, struct shmdt_args *uap, int32_t *retval) argument 320 AUDIT_ARG(svipc_addr, uap->shmaddr); 335 shmmap_s->va == (mach_vm_offset_t)uap->shmaddr) 362 shmat(struct proc *p, struct shmat_args *uap, user_addr_t *retval) argument 379 AUDIT_ARG(svipc_id, uap->shmid); 380 AUDIT_ARG(svipc_addr, uap->shmaddr); 401 shmseg = shm_find_segment_by_shmid(uap 529 oshmctl(__unused void *p, __unused void *uap, __unused void *retval) argument 543 shmctl(__unused struct proc *p, struct shmctl_args *uap, int32_t *retval) argument 663 shmget_existing(struct shmget_args *uap, int mode, int segnum, int *retval) argument 710 shmget_allocate_segment(struct proc *p, struct shmget_args *uap, int mode, int *retval) argument 837 shmget(struct proc *p, struct shmget_args *uap, int32_t *retval) argument 896 shmsys(struct proc *p, struct shmsys_args *uap, int32_t *retval) argument [all...] |
H A D | sys_generic.c | 207 read(struct proc *p, struct read_args *uap, user_ssize_t *retval) argument 210 return(read_nocancel(p, (struct read_nocancel_args *)uap, retval)); 214 read_nocancel(struct proc *p, struct read_nocancel_args *uap, user_ssize_t *retval) argument 218 int fd = uap->fd; 227 error = dofileread(&context, fp, uap->cbuf, uap->nbyte, 246 pread(struct proc *p, struct pread_args *uap, user_ssize_t *retval) argument 249 return(pread_nocancel(p, (struct pread_nocancel_args *)uap, retval)); 253 pread_nocancel(struct proc *p, struct pread_nocancel_args *uap, user_ssize_t *retval) argument 256 int fd = uap 399 readv(struct proc *p, struct readv_args *uap, user_ssize_t *retval) argument 406 readv_nocancel(struct proc *p, struct readv_nocancel_args *uap, user_ssize_t *retval) argument 460 write(struct proc *p, struct write_args *uap, user_ssize_t *retval) argument 468 write_nocancel(struct proc *p, struct write_nocancel_args *uap, user_ssize_t *retval) argument 507 pwrite(struct proc *p, struct pwrite_args *uap, user_ssize_t *retval) argument 514 pwrite_nocancel(struct proc *p, struct pwrite_nocancel_args *uap, user_ssize_t *retval) argument 616 writev(struct proc *p, struct writev_args *uap, user_ssize_t *retval) argument 623 writev_nocancel(struct proc *p, struct writev_nocancel_args *uap, user_ssize_t *retval) argument 754 ioctl(struct proc *p, struct ioctl_args *uap, __unused int32_t *retval) argument 942 select(struct proc *p, struct select_args *uap, int32_t *retval) argument 949 select_nocancel(struct proc *p, struct select_nocancel_args *uap, int32_t *retval) argument 1125 struct select_args *uap; local 1384 poll(struct proc *p, struct poll_args *uap, int32_t *retval) argument 1392 poll_nocancel(struct proc *p, struct poll_nocancel_args *uap, int32_t *retval) argument 2268 watchevent(proc_t p, struct watchevent_args *uap, __unused int *retval) argument 2395 waitevent(proc_t p, struct waitevent_args *uap, int *retval) argument 2533 modwatch(proc_t p, struct modwatch_args *uap, __unused int *retval) argument 2770 gethostuuid(struct proc *p, struct gethostuuid_args *uap, __unused int32_t *retval) argument [all...] |
H A D | kern_time.c | 118 struct gettimeofday_args *uap, 124 if (uap->tp) { 133 if (uap->tzp) { 138 error = copyout((caddr_t)<z, CAST_USER_ADDR_T(uap->tzp), sizeof (tz)); 149 settimeofday(__unused struct proc *p, struct settimeofday_args *uap, __unused int32_t *retval) argument 165 if (uap->tv) { 168 error = copyin(uap->tv, &user_atv, sizeof(user_atv)); 173 error = copyin(uap->tv, &user_atv, sizeof(user_atv)); 180 if (uap->tzp && (error = copyin(uap 116 gettimeofday( __unused struct proc *p, struct gettimeofday_args *uap, int32_t *retval) argument 208 adjtime(struct proc *p, struct adjtime_args *uap, __unused int32_t *retval) argument 319 getitimer(struct proc *p, struct getitimer_args *uap, __unused int32_t *retval) argument 390 setitimer(struct proc *p, struct setitimer_args *uap, int32_t *retval) argument [all...] |
H A D | kern_resource.c | 171 getpriority(struct proc *curp, struct getpriority_args *uap, int32_t *retval) argument 179 /* would also test (uap->who < 0), but id_t is unsigned */ 180 if (uap->who > 0x7fffffff) 183 switch (uap->which) { 186 if (uap->who == 0) { 190 p = proc_find(uap->who); 202 if (uap->who == 0) { 205 } else if ((pg = pgfind(uap->who)) == PGRP_NULL) { 220 if (uap->who == 0) 221 uap 324 setpriority(struct proc *curp, struct setpriority_args *uap, __unused int32_t *retval) argument 662 setrlimit(struct proc *p, struct setrlimit_args *uap, __unused int32_t *retval) argument 932 getrlimit(struct proc *p, struct getrlimit_args *uap, __unused int32_t *retval) argument 1019 getrusage(struct proc *p, struct getrusage_args *uap, __unused int32_t *retval) argument 1230 iopolicysys(struct proc *p, struct iopolicysys_args *uap, __unused int32_t *retval) argument 1600 proc_rlimit_control(__unused struct proc *p, struct proc_rlimit_control_args *uap, int32_t *retval) argument [all...] |
H A D | kern_aio.c | 498 * outstanding against file descriptor uap->fd. If uap->aiocbp is not 499 * NULL then only one specific IO is cancelled (if possible). If uap->aiocbp 504 aio_cancel(proc_t p, struct aio_cancel_args *uap, int *retval ) argument 510 (int)p, (int)uap->aiocbp, 0, 0, 0 ); 520 if ( uap->aiocbp != USER_ADDR_NULL ) { 524 result = copyin( uap->aiocbp, &aiocb64, sizeof(aiocb64) ); 531 result = copyin( uap->aiocbp, &aiocb32, sizeof(aiocb32) ); 545 if ( uap->fd != my_aiocb.aio_fildes ) { 552 result = do_aio_cancel_locked( p, uap 631 aio_error(proc_t p, struct aio_error_args *uap, int *retval ) argument 693 aio_fsync(proc_t p, struct aio_fsync_args *uap, int *retval ) argument 731 aio_read(proc_t p, struct aio_read_args *uap, int *retval ) argument 760 aio_return(proc_t p, struct aio_return_args *uap, user_ssize_t *retval ) argument 1095 aio_suspend(proc_t p, struct aio_suspend_args *uap, int *retval ) argument 1103 aio_suspend_nocancel(proc_t p, struct aio_suspend_nocancel_args *uap, int *retval ) argument 1240 aio_write(proc_t p, struct aio_write_args *uap, int *retval ) argument 1455 lio_listio(proc_t p, struct lio_listio_args *uap, int *retval ) argument [all...] |
H A D | kern_sig.c | 366 sigaction(proc_t p, struct sigaction_args *uap, __unused int32_t *retval) argument 377 signum = uap->signum; 382 if (uap->osa) { 406 error = copyout(&vec64, uap->osa, sizeof(vec64)); 411 error = copyout(&vec32, uap->osa, sizeof(vec32)); 416 if (uap->nsa) { 420 error = copyin(uap->nsa, &__vec64, sizeof(__vec64)); 425 error = copyin(uap->nsa, &__vec32, sizeof(__vec32)); 725 sigprocmask(proc_t p, struct sigprocmask_args *uap, __unused int32_t *retval) argument 729 user_addr_t omask = uap 770 sigpending(__unused proc_t p, struct sigpending_args *uap, __unused int32_t *retval) argument 797 sigsuspend(proc_t p, struct sigsuspend_args *uap, int32_t *retval) argument 804 sigsuspend_nocancel(proc_t p, struct sigsuspend_nocancel_args *uap, __unused int32_t *retval) argument 827 __disable_threadsignal(__unused proc_t p, __unused struct __disable_threadsignal_args *uap, __unused int32_t *retval) argument 866 __pthread_markcancel(__unused proc_t p, struct __pthread_markcancel_args *uap, __unused int32_t *retval) argument 898 __pthread_canceled(__unused proc_t p, struct __pthread_canceled_args *uap, __unused int32_t *retval) argument 954 __old_semwait_signal(proc_t p, struct __old_semwait_signal_args *uap, int32_t *retval) argument 962 __old_semwait_signal_nocancel(proc_t p, struct __old_semwait_signal_nocancel_args *uap, __unused int32_t *retval) argument 1054 __semwait_signal(proc_t p, struct __semwait_signal_args *uap, int32_t *retval) argument 1062 __semwait_signal_nocancel(__unused proc_t p, struct __semwait_signal_nocancel_args *uap, __unused int32_t *retval) argument 1133 __pthread_kill(__unused proc_t p, struct __pthread_kill_args *uap, __unused int32_t *retval) argument 1166 __pthread_sigmask(__unused proc_t p, struct __pthread_sigmask_args *uap, __unused int32_t *retval) argument 1221 __sigwait(proc_t p, struct __sigwait_args *uap, int32_t *retval) argument 1228 __sigwait_nocancel(proc_t p, struct __sigwait_nocancel_args *uap, __unused int32_t *retval) argument 1322 sigaltstack(__unused proc_t p, struct sigaltstack_args *uap, __unused int32_t *retval) argument 1386 kill(proc_t cp, struct kill_args *uap, __unused int32_t *retval) argument [all...] |
H A D | proc_uuid_policy.c | 310 int proc_uuid_policy(struct proc *p __unused, struct proc_uuid_policy_args *uap, int32_t *retval __unused) argument 324 switch (uap->operation) { 330 if (uap->uuidlen != sizeof(uuid_t)) { 335 error = copyin(uap->uuid, uuid, sizeof(uuid_t)); 339 error = proc_uuid_policy_insert(uuid, uap->flags); 343 if (uap->uuidlen != sizeof(uuid_t)) { 348 error = copyin(uap->uuid, uuid, sizeof(uuid_t));
|
H A D | sysv_msg.c | 332 * uap User argument descriptor (see below) 335 * Indirect parameters: uap->which msg call to invoke (index in array of msg calls) 336 * uap->a2 User argument descriptor 349 msgsys(struct proc *p, struct msgsys_args *uap, int32_t *retval) argument 351 if (uap->which >= sizeof(msgcalls)/sizeof(msgcalls[0])) 353 return ((*msgcalls[uap->which])(p, &uap->a2, retval)); 388 msgctl(struct proc *p, struct msgctl_args *uap, int32_t *retval) argument 390 int msqid = uap->msqid; 391 int cmd = uap 588 msgget(__unused struct proc *p, struct msgget_args *uap, int32_t *retval) argument 708 msgsnd(struct proc *p, struct msgsnd_args *uap, int32_t *retval) argument 715 msgsnd_nocancel(struct proc *p, struct msgsnd_nocancel_args *uap, int32_t *retval) argument 1123 msgrcv(struct proc *p, struct msgrcv_args *uap, user_ssize_t *retval) argument 1130 msgrcv_nocancel(struct proc *p, struct msgrcv_nocancel_args *uap, user_ssize_t *retval) argument [all...] |
H A D | process_policy.c | 95 process_policy(__unused struct proc *p, struct process_policy_args * uap, __unused int32_t *retval) argument 98 int scope = uap->scope; 99 int policy = uap->policy; 100 int action = uap->action; 101 int policy_subtype = uap->policy_subtype; 102 user_addr_t attrp = uap->attrp; 103 pid_t target_pid = uap->target_pid; 104 uint64_t target_threadid = uap->target_threadid;
|
H A D | kern_exit.c | 229 exit(proc_t p, struct exit_args *uap, int *retval) argument 231 exit1(p, W_EXITCODE(uap->rval, 0), retval); 1188 wait4(proc_t q, struct wait4_args *uap, int32_t *retval) argument 1191 return(wait4_nocancel(q, (struct wait4_nocancel_args *)uap, retval)); 1195 wait4_nocancel(proc_t q, struct wait4_nocancel_args *uap, int32_t *retval) argument 1202 AUDIT_ARG(pid, uap->pid); 1204 if (uap->pid == 0) 1205 uap->pid = -q->p_pgrpid; 1216 if (uap->pid != WAIT_ANY && 1217 p->p_pid != uap 1407 waitid(proc_t q, struct waitid_args *uap, int32_t *retval) argument 1414 waitid_nocancel(proc_t q, struct waitid_nocancel_args *uap, __unused int32_t *retval) argument [all...] |
H A D | kern_descrip.c | 335 getdtablesize(proc_t p, __unused struct getdtablesize_args *uap, int32_t *retval) argument 508 * uap->fd The fd to dup 518 dup(proc_t p, struct dup_args *uap, int32_t *retval) argument 521 int old = uap->fd; 554 * uap->from The fd to dup 555 * uap->to The fd to dup it to 565 dup2(proc_t p, struct dup2_args *uap, int32_t *retval) argument 568 int old = uap->from, new = uap->to; 668 * uap 684 fcntl(proc_t p, struct fcntl_args *uap, int32_t *retval) argument 746 fcntl_nocancel(proc_t p, struct fcntl_nocancel_args *uap, int32_t *retval) argument 2431 close(proc_t p, struct close_args *uap, int32_t *retval) argument 2439 close_nocancel(proc_t p, struct close_nocancel_args *uap, __unused int32_t *retval) argument 2779 fstat_extended(proc_t p, struct fstat_extended_args *uap, __unused int32_t *retval) argument 2798 fstat(proc_t p, register struct fstat_args *uap, __unused int32_t *retval) argument 2821 fstat64_extended(proc_t p, struct fstat64_extended_args *uap, __unused int32_t *retval) argument 2841 fstat64(proc_t p, register struct fstat64_args *uap, __unused int32_t *retval) argument 2867 fpathconf(proc_t p, struct fpathconf_args *uap, int32_t *retval) argument 4911 flock(proc_t p, struct flock_args *uap, __unused int32_t *retval) argument 4985 fileport_makeport(proc_t p, struct fileport_makeport_args *uap, __unused int *retval) argument 5085 fileport_makefd(proc_t p, struct fileport_makefd_args *uap, int32_t *retval) argument [all...] |
H A D | posix_sem.c | 359 sem_open(proc_t p, struct sem_open_args *uap, user_addr_t *retval) argument 374 int cmode = uap->mode; 375 int value = uap->value; 380 AUDIT_ARG(fflags, uap->oflag); 381 AUDIT_ARG(mode, uap->mode); 382 AUDIT_ARG(value32, uap->value); 397 error = copyinstr(uap->name, pnbuf, MAXPATHLEN, &pathlen); 466 fmode = FFLAGS(uap->oflag); 665 sem_unlink(__unused proc_t p, struct sem_unlink_args *uap, __unused int32_t *retval) argument 685 error = copyinstr(uap 781 sem_close(proc_t p, struct sem_close_args *uap, __unused int32_t *retval) argument 805 sem_wait(proc_t p, struct sem_wait_args *uap, int32_t *retval) argument 812 sem_wait_nocancel(proc_t p, struct sem_wait_nocancel_args *uap, __unused int32_t *retval) argument 872 sem_trywait(proc_t p, struct sem_trywait_args *uap, __unused int32_t *retval) argument 937 sem_post(proc_t p, struct sem_post_args *uap, __unused int32_t *retval) argument 996 sem_init(__unused proc_t p, __unused struct sem_init_args *uap, __unused int32_t *retval) argument 1002 sem_destroy(__unused proc_t p, __unused struct sem_destroy_args *uap, __unused int32_t *retval) argument 1008 sem_getvalue(__unused proc_t p, __unused struct sem_getvalue_args *uap, __unused int32_t *retval) argument [all...] |
/xnu-2422.115.4/bsd/security/audit/ |
H A D | audit_syscalls.c | 150 audit(proc_t p, struct audit_args *uap, __unused int32_t *retval) argument 162 if ((uap->length <= 0) || (uap->length > (int)audit_qctrl.aq_bufsz)) { 190 if (uap->length > MAX_AUDIT_RECORD_SIZE) 193 rec = malloc(uap->length, M_AUDITDATA, M_WAITOK); 195 error = copyin(uap->record, rec, uap->length); 200 error = mac_system_check_audit(kauth_cred_get(), rec, uap->length); 220 ar->k_ulen = uap->length; 246 auditon(proc_t p, struct auditon_args *uap, __unuse argument 742 getauid(proc_t p, struct getauid_args *uap, __unused int32_t *retval) argument 766 setauid(proc_t p, struct setauid_args *uap, __unused int32_t *retval) argument 825 getaudit_addr(proc_t p, struct getaudit_addr_args *uap, __unused int32_t *retval) argument 842 setaudit_addr(proc_t p, struct setaudit_addr_args *uap, __unused int32_t *retval) argument 905 auditctl(proc_t p, struct auditctl_args *uap, __unused int32_t *retval) argument 980 audit(proc_t p, struct audit_args *uap, int32_t *retval) argument 988 auditon(proc_t p, struct auditon_args *uap, int32_t *retval) argument 996 getauid(proc_t p, struct getauid_args *uap, int32_t *retval) argument 1004 setauid(proc_t p, struct setauid_args *uap, int32_t *retval) argument 1012 getaudit_addr(proc_t p, struct getaudit_addr_args *uap, int32_t *retval) argument 1020 setaudit_addr(proc_t p, struct setaudit_addr_args *uap, int32_t *retval) argument 1028 auditctl(proc_t p, struct auditctl_args *uap, int32_t *retval) argument [all...] |
/xnu-2422.115.4/bsd/vfs/ |
H A D | vfs_syscalls.c | 156 static int fsync_common(proc_t p, struct fsync_args *uap, int flags); 260 mount(proc_t p, struct mount_args *uap, __unused int32_t *retval) argument 264 muap.type = uap->type; 265 muap.path = uap->path; 266 muap.flags = uap->flags; 267 muap.data = uap->data; 285 * uap User argument descriptor (see below) 288 * Indirect: uap->type Filesystem type 289 * uap->path Path to mount 290 * uap 301 __mac_mount(struct proc *p, register struct __mac_mount_args *uap, __unused int32_t *retval) argument 1695 unmount(__unused proc_t p, struct unmount_args *uap, __unused int32_t *retval) argument 2096 sync(__unused proc_t p, __unused struct sync_args *uap, __unused int32_t *retval) argument 2118 quotactl(proc_t p, struct quotactl_args *uap, int32_t *retval) argument 2130 quotactl_funneled(proc_t p, struct quotactl_args *uap, __unused int32_t *retval) argument 2225 quotactl(__unused proc_t p, __unused struct quotactl_args *uap, __unused int32_t *retval) argument 2241 statfs(__unused proc_t p, struct statfs_args *uap, __unused int32_t *retval) argument 2276 fstatfs(__unused proc_t p, struct fstatfs_args *uap, __unused int32_t *retval) argument 2355 statfs64(__unused struct proc *p, struct statfs64_args *uap, __unused int32_t *retval) argument 2390 fstatfs64(__unused struct proc *p, struct fstatfs64_args *uap, __unused int32_t *retval) argument 2490 getfsstat(__unused proc_t p, struct getfsstat_args *uap, int *retval) argument 2522 __mac_getfsstat(__unused proc_t p, struct __mac_getfsstat_args *uap, int *retval) argument 2647 getfsstat64(__unused proc_t p, struct getfsstat64_args *uap, int *retval) argument 2684 common_fchdir(proc_t p, struct fchdir_args *uap, int per_thread) argument 2787 fchdir(proc_t p, struct fchdir_args *uap, __unused int32_t *retval) argument 2793 __pthread_fchdir(proc_t p, struct __pthread_fchdir_args *uap, __unused int32_t *retval) argument 2808 common_chdir(proc_t p, struct chdir_args *uap, int per_thread) argument 2873 chdir(proc_t p, struct chdir_args *uap, __unused int32_t *retval) argument 2896 __pthread_chdir(proc_t p, struct __pthread_chdir_args *uap, __unused int32_t *retval) argument 2907 chroot(proc_t p, struct chroot_args *uap, __unused int32_t *retval) argument 3224 open_extended(proc_t p, struct open_extended_args *uap, int32_t *retval) argument 3266 open_dprotected_np(__unused proc_t p, struct open_dprotected_np_args *uap, int32_t *retval) argument 3315 open(proc_t p, struct open_args *uap, int32_t *retval) argument 3322 open_nocancel(proc_t p, struct open_nocancel_args *uap, int32_t *retval) argument 3348 mknod(proc_t p, struct mknod_args *uap, __unused int32_t *retval) argument 3515 mkfifo_extended(proc_t p, struct mkfifo_extended_args *uap, __unused int32_t *retval) argument 3547 mkfifo(proc_t p, struct mkfifo_args *uap, __unused int32_t *retval) argument 3647 link(__unused proc_t p, struct link_args *uap, __unused int32_t *retval) argument 3830 symlink(proc_t p, struct symlink_args *uap, __unused int32_t *retval) argument 3965 undelete(__unused proc_t p, struct undelete_args *uap, __unused int32_t *retval) argument 4199 unlink(__unused proc_t p, struct unlink_args *uap, __unused int32_t *retval) argument 4213 delete(__unused proc_t p, struct delete_args *uap, __unused int32_t *retval) argument 4227 lseek(proc_t p, struct lseek_args *uap, off_t *retval) argument 4419 access_extended(__unused proc_t p, struct access_extended_args *uap, __unused int32_t *retval) argument 4653 access(__unused proc_t p, struct access_args *uap, __unused int32_t *retval) argument 4891 stat_extended(__unused proc_t p, struct stat_extended_args *uap, __unused int32_t *retval) argument 4901 stat(__unused proc_t p, struct stat_args *uap, __unused int32_t *retval) argument 4907 stat64(__unused proc_t p, struct stat64_args *uap, __unused int32_t *retval) argument 4929 stat64_extended(__unused proc_t p, struct stat64_extended_args *uap, __unused int32_t *retval) argument 4965 lstat_extended(__unused proc_t p, struct lstat_extended_args *uap, __unused int32_t *retval) argument 4971 lstat(__unused proc_t p, struct lstat_args *uap, __unused int32_t *retval) argument 4977 lstat64(__unused proc_t p, struct lstat64_args *uap, __unused int32_t *retval) argument 5000 lstat64_extended(__unused proc_t p, struct lstat64_extended_args *uap, __unused int32_t *retval) argument 5022 pathconf(__unused proc_t p, struct pathconf_args *uap, int32_t *retval) argument 5046 readlink(proc_t p, struct readlink_args *uap, int32_t *retval) argument 5131 chflags(__unused proc_t p, struct chflags_args *uap, __unused int32_t *retval) argument 5157 fchflags(__unused proc_t p, struct fchflags_args *uap, __unused int32_t *retval) argument 5274 chmod_extended(__unused proc_t p, struct chmod_extended_args *uap, __unused int32_t *retval) argument 5318 chmod(__unused proc_t p, struct chmod_args *uap, __unused int32_t *retval) argument 5373 fchmod_extended(proc_t p, struct fchmod_extended_args *uap, __unused int32_t *retval) argument 5421 fchmod(proc_t p, struct fchmod_args *uap, __unused int32_t *retval) argument 5437 chown1(vfs_context_t ctx, struct chown_args *uap, __unused int32_t *retval, int follow) argument 5489 chown(__unused proc_t p, struct chown_args *uap, int32_t *retval) argument 5495 lchown(__unused proc_t p, struct lchown_args *uap, int32_t *retval) argument 5506 fchown(__unused proc_t p, struct fchown_args *uap, __unused int32_t *retval) argument 5645 utimes(__unused proc_t p, struct utimes_args *uap, __unused int32_t *retval) argument 5684 futimes(__unused proc_t p, struct futimes_args *uap, __unused int32_t *retval) argument 5713 truncate(__unused proc_t p, struct truncate_args *uap, __unused int32_t *retval) argument 5756 ftruncate(proc_t p, struct ftruncate_args *uap, int32_t *retval) argument 5821 fsync(proc_t p, struct fsync_args *uap, __unused int32_t *retval) argument 5836 fsync_nocancel(proc_t p, struct fsync_nocancel_args *uap, __unused int32_t *retval) argument 5847 fdatasync(proc_t p, struct fdatasync_args *uap, __unused int32_t *retval) argument 5880 fsync_common(proc_t p, struct fsync_args *uap, int flags) argument 5925 copyfile(__unused proc_t p, struct copyfile_args *uap, __unused int32_t *retval) argument 6009 rename(__unused proc_t p, struct rename_args *uap, __unused int32_t *retval) argument 6652 mkdir_extended(proc_t p, struct mkdir_extended_args *uap, __unused int32_t *retval) argument 6677 mkdir(proc_t p, struct mkdir_args *uap, __unused int32_t *retval) argument 6692 rmdir(__unused proc_t p, struct rmdir_args *uap, __unused int32_t *retval) argument 7083 getdirentries(__unused struct proc *p, struct getdirentries_args *uap, int32_t *retval) argument 7106 getdirentries64(__unused struct proc *p, struct getdirentries64_args *uap, user_ssize_t *retval) argument 7157 umask_extended(proc_t p, struct umask_extended_args *uap, int32_t *retval) argument 7178 umask(proc_t p, struct umask_args *uap, int32_t *retval) argument 7189 revoke(proc_t p, struct revoke_args *uap, __unused int32_t *retval) argument 7250 getdirentriesattr(proc_t p, struct getdirentriesattr_args *uap, int32_t *retval) argument 7395 exchangedata(__unused proc_t p, struct exchangedata_args *uap, __unused int32_t *retval) argument 7561 searchfs(proc_t p, struct searchfs_args *uap, __unused int32_t *retval) argument 7824 searchfs(__unused proc_t p, __unused struct searchfs_args *uap, __unused int32_t *retval) argument 8938 fsctl(proc_t p, struct fsctl_args *uap, __unused int32_t *retval) argument 8973 ffsctl(proc_t p, struct ffsctl_args *uap, __unused int32_t *retval) argument 9035 getxattr(proc_t p, struct getxattr_args *uap, user_ssize_t *retval) argument 9119 fgetxattr(proc_t p, struct fgetxattr_args *uap, user_ssize_t *retval) argument 9170 setxattr(proc_t p, struct setxattr_args *uap, int *retval) argument 9229 fsetxattr(proc_t p, struct fsetxattr_args *uap, int *retval) argument 9283 removexattr(proc_t p, struct removexattr_args *uap, int *retval) argument 9329 fremovexattr(__unused proc_t p, struct fremovexattr_args *uap, int *retval) argument 9375 listxattr(proc_t p, struct listxattr_args *uap, user_ssize_t *retval) argument 9419 flistxattr(proc_t p, struct flistxattr_args *uap, user_ssize_t *retval) argument 9463 fsgetpath(__unused proc_t p, struct fsgetpath_args *uap, user_ssize_t *retval) argument 9864 vfs_purge(__unused struct proc *p, __unused struct vfs_purge_args *uap, __unused int32_t *retval) argument [all...] |
H A D | vfs_attrlist.c | 786 getvolattrlist(vnode_t vp, struct getattrlist_args *uap, struct attrlist *alp, argument 809 pack_invalid = (uap->options & FSOPT_PACK_INVAL_ATTRS); 1016 ab.allocated = ulmin(uap->bufferSize, fixedsize + varsize); 1317 *(uint32_t *)ab.base = (uap->options & FSOPT_REPORT_FULLSIZE) ? ab.needed : imin(ab.allocated, ab.needed); 1329 error = copyout(ab.base, uap->attributeBuffer, ab.allocated); 1348 getattrlist_internal(vnode_t vp, struct getattrlist_args *uap, argument 1381 if ((error = copyin(uap->alist, &al, sizeof(al))) != 0) 1390 (uap->options & FSOPT_NOFOLLOW) ? "no":"", vp->v_name); 1409 error = getvolattrlist(vp, uap, &al, ctx, proc_is64); 1415 pack_invalid = (uap 2181 fgetattrlist(proc_t p, struct fgetattrlist_args *uap, __unused int32_t *retval) argument 2216 getattrlist(proc_t p, struct getattrlist_args *uap, __unused int32_t *retval) argument 2286 setattrlist_internal(vnode_t vp, struct setattrlist_args *uap, proc_t p, vfs_context_t ctx) argument 2638 setattrlist(proc_t p, struct setattrlist_args *uap, __unused int32_t *retval) argument 2668 fsetattrlist(proc_t p, struct fsetattrlist_args *uap, __unused int32_t *retval) argument [all...] |
/xnu-2422.115.4/bsd/nfs/ |
H A D | nfs_upcall.c | 311 struct nfsrv_uc_arg *uap = (struct nfsrv_uc_arg *)arg; local 312 int qi = uap->nua_qi; 316 DPRINT("nfsrv_uc_proxy called for %p (%p)\n", uap, uap->nua_slp); 318 if (uap->nua_flags & NFS_UC_QUEUED) { 323 uap->nua_so = so; 324 uap->nua_waitflag = waitflag; 326 TAILQ_INSERT_TAIL(myqueue->ucq_queue, uap, nua_svcq); 328 uap->nua_flags |= NFS_UC_QUEUED;
|
/xnu-2422.115.4/security/ |
H A D | mac_base.c | 1301 __mac_get_pid(struct proc *p, struct __mac_get_pid_args *uap, int *ret __unused) argument 1310 AUDIT_ARG(pid, uap->pid); 1313 error = copyin(uap->mac_p, &mac64, sizeof(mac64)); 1318 error = copyin(uap->mac_p, &mac32, sizeof(mac32)); 1329 tproc = proc_find(uap->pid); 1357 __mac_get_proc(proc_t p, struct __mac_get_proc_args *uap, int *ret __unused) argument 1367 error = copyin(uap->mac_p, &mac64, sizeof(mac64)); 1372 error = copyin(uap->mac_p, &mac32, sizeof(mac32)); 1406 __mac_set_proc(proc_t p, struct __mac_set_proc_args *uap, int *ret __unused) argument 1417 error = copyin(uap 1491 __mac_get_lcid(proc_t p, struct __mac_get_lcid_args *uap, int *ret __unused) argument 1560 __mac_get_lctx(proc_t p, struct __mac_get_lctx_args *uap, int *ret __unused) argument 1615 __mac_set_lctx(proc_t p, struct __mac_set_lctx_args *uap, int *ret __unused) argument 1699 __mac_get_fd(proc_t p, struct __mac_get_fd_args *uap, int *ret __unused) argument 1882 __mac_get_file(proc_t p, struct __mac_get_file_args *uap, int *ret __unused) argument 1890 __mac_get_link(proc_t p, struct __mac_get_link_args *uap, int *ret __unused) argument 1898 __mac_set_fd(proc_t p, struct __mac_set_fd_args *uap, int *ret __unused) argument 2082 __mac_set_file(proc_t p, struct __mac_set_file_args *uap, int *ret __unused) argument 2090 __mac_set_link(proc_t p, struct __mac_set_link_args *uap, int *ret __unused) argument 2113 __mac_syscall(proc_t p, struct __mac_syscall_args *uap, int *retv __unused) argument 2223 __mac_get_mount(proc_t p __unused, struct __mac_get_mount_args *uap, int *ret __unused) argument [all...] |
/xnu-2422.115.4/bsd/dev/chud/ |
H A D | chud_bsd_callback.c | 139 * uap User argument descriptor (see below) 142 * Indirect parameters: uap->code Selects the operation to do. This is broken down into a 158 * uap->arg1 Number of frames to skip 159 * uap->arg2 Pointer to a uint64_t containing a timestamp for the 161 * uap->arg3 Pointer to a uint64_t containing a timestamp for the end 163 * uap->arg4 Pointer to auxiliary data to be recorded with the sample 164 * uap->arg5 Size of the auxiliary data pointed to by arg4. 174 chud(__unused proc_t p, struct chud_args *uap, int32_t *retval) argument 188 *retval = fn(uap->code, uap [all...] |