Home
last modified time | relevance | path

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

123

/dragonfly/sys/kern/
H A Dkern_acl.c150 const struct __acl_get_file_args *uap) in sys___acl_get_file() argument
164 error = vacl_get_acl(vp, uap->type, uap->aclp); in sys___acl_get_file()
175 const struct __acl_set_file_args *uap) in sys___acl_set_file() argument
189 error = vacl_set_acl(vp, uap->type, uap->aclp); in sys___acl_set_file()
200 const struct __acl_get_fd_args *uap) in sys___acl_get_fd() argument
208 error = vacl_get_acl((struct vnode *)fp->f_data, uap->type, uap->aclp); in sys___acl_get_fd()
219 const struct __acl_set_fd_args *uap) in sys___acl_set_fd() argument
227 error = vacl_set_acl((struct vnode *)fp->f_data, uap->type, uap->aclp); in sys___acl_set_fd()
252 error = vacl_delete(vp, uap->type); in sys___acl_delete_file()
297 error = vacl_aclcheck(vp, uap->type, uap->aclp); in sys___acl_aclcheck_file()
[all …]
H A Dvfs_syscalls.c1228 error = VFS_QUOTACTL(mp, uap->cmd, uap->uid, in sys_quotactl()
1272 if (uap->ctllen < 0 || uap->ctllen > 1024) in sys_mountctl()
1289 error = copyin(uap->ctl, ctl, uap->ctllen); in sys_mountctl()
2395 umajor(uap->dev), uminor(uap->dev)); in sys_mknod()
2417 umajor(uap->dev), uminor(uap->dev)); in sys_mknodat()
2915 error = kern_lseek(uap->fd, uap->offset, uap->whence, in sys_lseek()
4482 uap->oldfd, uap->old, in sys_renameat()
4486 uap->newfd, uap->new, in sys_renameat()
4671 error = kern_getdirentries(uap->fd, uap->buf, uap->count, &base, in sys_getdirentries()
4687 error = kern_getdirentries(uap->fd, uap->buf, uap->count, NULL, in sys_getdents()
[all …]
H A Duipc_syscalls.c143 error = kern_socket(uap->domain, uap->type, uap->protocol, in sys_socket()
176 error = getsockaddr(&sa, uap->name, uap->namelen); in sys_bind()
215 error = kern_listen(uap->s, uap->backlog); in sys_listen()
633 error = getsockaddr(&sa, uap->name, uap->namelen); in sys_connect()
658 error = getsockaddr(&sa, uap->name, uap->namelen); in sys_extconnect()
753 error = kern_socketpair(uap->domain, uap->type, uap->protocol, sockv); in sys_socketpair()
842 error = getsockaddr(&sa, uap->to, uap->tolen); in sys_sendto()
860 error = kern_sendmsg(uap->s, sa, &auio, NULL, uap->flags, in sys_sendto()
1030 if (uap->from && uap->fromlenaddr) { in sys_recvfrom()
1249 if (uap->val) in sys_setsockopt()
[all …]
H A Dkern_usched.c194 if (uap->pid != 0 && uap->pid != curthread->td_proc->p_pid) in sys_usched_set()
200 switch (uap->cmd) { in sys_usched_set()
237 if (uap->bytes != sizeof(int)) { in sys_usched_set()
260 if (uap->bytes != sizeof(int)) { in sys_usched_set()
371 if (uap->pid < 0) in sys_lwp_getaffinity()
374 if (uap->pid == 0) { in sys_lwp_getaffinity()
384 if (uap->tid < 0) { in sys_lwp_getaffinity()
424 uap->pid != 0) in sys_lwp_setaffinity()
436 if (uap->pid < 0) in sys_lwp_setaffinity()
442 if (uap->pid == 0) { in sys_lwp_setaffinity()
[all …]
H A Dkern_prot.c319 if (uap->len) in sys_lwp_getname()
371 if (uap->pid != 0 && uap->pid != curp->p_pid) { in sys_setpgid()
460 uid = uap->uid; in sys_setuid()
528 euid = uap->euid; in sys_seteuid()
571 gid = uap->gid; in sys_setgid()
898 if (uap->ruid) in sys_getresuid()
901 if (uap->euid) in sys_getresuid()
904 if (uap->suid) in sys_getresuid()
917 if (uap->rgid) in sys_getresgid()
920 if (uap->egid) in sys_getresgid()
[all …]
H A Dsys_generic.c192 error = iovec_copyin(uap->iovp, &iov, aiov, uap->iovcnt, in sys_readv()
224 error = iovec_copyin(uap->iovp, &iov, aiov, uap->iovcnt, in sys_extpreadv()
396 error = iovec_copyin(uap->iovp, &iov, aiov, uap->iovcnt, in sys_writev()
428 error = iovec_copyin(uap->iovp, &iov, aiov, uap->iovcnt, in sys_extpwritev()
538 error = mapped_ioctl(uap->fd, uap->com, uap->data, NULL, sysmsg); in sys_ioctl()
800 if (uap->tv != NULL) { in sys_select()
813 error = doselect(uap->nd, uap->in, uap->ou, uap->ex, ktsp, in sys_select()
835 if (uap->ts != NULL) { in sys_pselect()
861 error = doselect(uap->nd, uap->in, uap->ou, uap->ex, ktsp, in sys_pselect()
1239 error = dopoll(uap->nfds, uap->fds, tsp, &sysmsg->sysmsg_result, 0); in sys_poll()
[all …]
H A Dkern_time.c429 error = kern_getcpuclockid(uap->pid, uap->lwp_id, &clk_id); in sys_getcpuclockid()
598 error = clock_nanosleep1(uap->clock_id, uap->flags, &rqt, &rmt); in sys_clock_nanosleep()
659 if (uap->tp) { in sys_gettimeofday()
668 if (uap->tzp) in sys_gettimeofday()
692 if (uap->tv) { in sys_settimeofday()
701 if (uap->tzp && in sys_settimeofday()
712 if (uap->tzp) in sys_settimeofday()
795 if (uap->olddelta) { in sys_adjtime()
973 itvp = uap->itv; in sys_setitimer()
978 if (uap->oitv) { in sys_setitimer()
[all …]
H A Dkern_p1003_1b.c195 const struct sched_setparam_args *uap)
204 if ((e = p31b_proc(uap->pid, &p)) == 0) {
223 const struct sched_getparam_args *uap)
230 if ((e = p31b_proc(uap->pid, &targetp)) == 0) {
260 if ((e = p31b_proc(uap->pid, &p)) == 0) {
266 lp, uap->policy,
286 if ((e = p31b_proc(uap->pid, &targetp)) == 0) {
307 const struct sched_yield_args *uap)
334 const struct sched_rr_get_interval_args *uap)
341 if ((e = p31b_proc(uap->pid, &p)) == 0) {
[all …]
H A Dkern_caps.c80 int cap = uap->cap & ~__SYSCAP_XFLAGS; in sys_syscap_get()
88 if (uap->bytes && uap->bytes < sizeof(syscap_base_t)) in sys_syscap_get()
95 if (uap->cap & __SYSCAP_INPARENT) { in sys_syscap_get()
113 if (uap->data && uap->bytes) { in sys_syscap_get()
131 if (uap->cap & __SYSCAP_INPARENT) in sys_syscap_get()
145 int cap = uap->cap & ~__SYSCAP_XFLAGS; in sys_syscap_set()
148 int flags = uap->flags; in sys_syscap_set()
155 if (uap->data || uap->bytes) in sys_syscap_set()
164 if (uap->cap & __SYSCAP_INPARENT) { in sys_syscap_set()
204 ((__syscapelm_t)uap->flags << in sys_syscap_set()
[all …]
H A Dsysv_shm.c332 if (uap->shmaddr) { in sys_shmat()
334 if (uap->shmflg & SHM_RND) { in sys_shmat()
384 shmmap_s->shmid = uap->shmid; in sys_shmat()
420 switch (uap->cmd) { in sys_shmctl()
489 if (uap->size && uap->size > shmseg->shm_segsz) in shmget_existing()
505 if (uap->size < shminfo.shmmin || uap->size > shminfo.shmmax) in shmget_allocate_segment()
509 size = round_page(uap->size); in shmget_allocate_segment()
531 shmseg->shm_perm.key = uap->key; in shmget_allocate_segment()
555 shmseg->shm_segsz = uap->size; in shmget_allocate_segment()
621 mode = uap->shmflg & ACCESSPERMS; in sys_shmget()
[all …]
H A Dsys_mqueue.c431 oflag = uap->oflag; in sys_mq_open()
463 if (uap->attr) { in sys_mq_open()
738 error = mq_receive1(curthread->td_lwp, uap->mqdes, uap->msg_ptr, in sys_mq_receive()
739 uap->msg_len, uap->msg_prio, 0, &mlen); in sys_mq_receive()
770 error = mq_receive1(curthread->td_lwp, uap->mqdes, uap->msg_ptr, in sys_mq_timedreceive()
771 uap->msg_len, uap->msg_prio, tsp, &mlen); in sys_mq_timedreceive()
924 return mq_send1(curthread->td_lwp, uap->mqdes, uap->msg_ptr, in sys_mq_send()
925 uap->msg_len, uap->msg_prio, 0); in sys_mq_send()
951 return mq_send1(curthread->td_lwp, uap->mqdes, uap->msg_ptr, in sys_mq_timedsend()
952 uap->msg_len, uap->msg_prio, tsp); in sys_mq_timedsend()
[all …]
H A Dkern_resource.c93 int who = uap->who; in sys_getpriority()
96 switch (uap->which) { in sys_getpriority()
195 int who = uap->who; in sys_setpriority()
197 switch (uap->which) { in sys_setpriority()
336 int who = uap->who; in sys_ioprio_get()
437 int who = uap->who; in sys_ioprio_set()
569 if (uap->pid < 0) in sys_lwp_rtprio()
572 if (uap->pid == 0) { in sys_lwp_rtprio()
584 if (uap->tid < -1) { in sys_lwp_rtprio()
720 if (uap->pid) { in sys_rtprio()
[all …]
H A Dkern_umtx.c110 sys_umtx_sleep(struct sysmsg *sysmsg, const struct umtx_sleep_args *uap) in sys_umtx_sleep() argument
120 volatile const int *ptr = uap->ptr; in sys_umtx_sleep()
122 if (uap->timeout < 0) in sys_umtx_sleep()
159 if (value == uap->value) { in sys_umtx_sleep()
172 if (fuwordadd32(uptr, 0) != uap->value) { in sys_umtx_sleep()
189 if (uap->timeout && uap->timeout < timeout) in sys_umtx_sleep()
190 timeout = uap->timeout; in sys_umtx_sleep()
226 if (value == uap->value) { in sys_umtx_sleep()
250 sys_umtx_wakeup(struct sysmsg *sysmsg, const struct umtx_wakeup_args *uap) in sys_umtx_wakeup() argument
258 volatile const int *ptr = uap->ptr; in sys_umtx_wakeup()
[all …]
H A Dvfs_aio.c28 sys_aio_return(struct sysmsg *sysmsg, const struct aio_return_args *uap) in sys_aio_return() argument
34 sys_aio_suspend(struct sysmsg *sysmsg, const struct aio_suspend_args *uap) in sys_aio_suspend() argument
40 sys_aio_cancel(struct sysmsg *sysmsg, const struct aio_cancel_args *uap) in sys_aio_cancel() argument
46 sys_aio_error(struct sysmsg *sysmsg, const struct aio_error_args *uap) in sys_aio_error() argument
52 sys_aio_read(struct sysmsg *sysmsg, const struct aio_read_args *uap) in sys_aio_read() argument
58 sys_aio_write(struct sysmsg *sysmsg, const struct aio_write_args *uap) in sys_aio_write() argument
64 sys_lio_listio(struct sysmsg *sysmsg, const struct lio_listio_args *uap) in sys_lio_listio() argument
70 sys_aio_waitcomplete(struct sysmsg *sysmsg, const struct aio_waitcomplete_args *uap) in sys_aio_waitcomplete() argument
H A Dkern_varsym.c138 int level = uap->level; in sys_varsym_set()
146 if (uap->data && in sys_varsym_set()
168 if (uap->data) { in sys_varsym_set()
199 sym = varsymfind(uap->mask, wild, strlen(wild)); in sys_varsym_get()
205 if (dlen < uap->bufsize) { in sys_varsym_get()
206 error = copyout(sym->vs_data, uap->buf, dlen + 1); in sys_varsym_get()
207 } else if (uap->bufsize) { in sys_varsym_get()
208 copyout("", uap->buf, 1); in sys_varsym_get()
254 switch (uap->level) { in sys_varsym_list()
303 if (bytes + totlen > uap->maxsize) { in sys_varsym_list()
[all …]
H A Dkern_threads.c77 sys_thr_sleep(struct sysmsg *sysmsg, const struct thr_sleep_args *uap)
87 if (uap->timeout != 0) {
91 if ((error = copyin(uap->timeout, &ts, sizeof(ts))) != 0) {
118 if (uap->timeout == 0)
126 sys_thr_wakeup(struct sysmsg *sysmsg, const struct thr_wakeup_args *uap)
132 while(pSlave && (pSlave->p_pid != uap->pid))
159 sys_yield(struct sysmsg *sysmsg, const struct yield_args *uap) in sys_yield() argument
H A Dkern_exit.c127 who = EXTEXIT_WHO(uap->how); in sys_extexit()
142 error = copyout(&uap->status, uap->addr, sizeof(uap->status)); in sys_extexit()
923 id = uap->pid; in sys_wait4()
941 error = copyout(&status, uap->status, sizeof(*uap->status)); in sys_wait4()
944 error = copyout(&wrusage.wru_self, uap->rusage, sizeof(*uap->rusage)); in sys_wait4()
965 options = uap->options; in sys_wait6()
966 idtype = uap->idtype; in sys_wait6()
967 id = uap->id; in sys_wait6()
987 error = copyout(&status, uap->status, sizeof(*uap->status)); in sys_wait6()
989 error = copyout(&wrusage, uap->wrusage, sizeof(*uap->wrusage)); in sys_wait6()
[all …]
H A Dsubr_prof.c54 sys_profil(struct sysmsg *sysmsg, const struct profil_args *uap) in sys_profil() argument
59 if (uap->scale > (1 << 16)) in sys_profil()
62 if (uap->scale == 0) { in sys_profil()
69 upp->pr_off = uap->offset; in sys_profil()
70 upp->pr_scale = uap->scale; in sys_profil()
71 upp->pr_base = uap->samples; in sys_profil()
72 upp->pr_size = uap->size; in sys_profil()
H A Dkern_environment.c83 if (uap->what == KENV_DUMP) { in sys_kenv()
85 buflen = uap->len; in sys_kenv()
89 if (uap->len > 0 && uap->value != NULL) in sys_kenv()
107 error = copyout(buffer, uap->value, done); in sys_kenv()
114 switch (uap->what) { in sys_kenv()
134 switch (uap->what) { in sys_kenv()
142 if (len > uap->len) in sys_kenv()
143 len = uap->len; in sys_kenv()
144 error = copyout(value, uap->value, len); in sys_kenv()
151 len = uap->len; in sys_kenv()
[all …]
/dragonfly/sys/vm/
H A Dvm_mmap.c422 error = kern_mmap(curproc->p_vmspace, uap->addr, uap->len, in sys_mmap()
448 size = uap->len; in sys_msync()
535 size = uap->len; in sys_munmap()
594 size = uap->len; in sys_mprotect()
640 size = uap->len; in sys_minherit()
680 vm_offset_t tmpaddr = (vm_offset_t)uap->addr + uap->len; in sys_madvise()
686 if (uap->behav < 0 || uap->behav >= MADV_CONTROL_END) in sys_madvise()
723 vm_offset_t tmpaddr = (vm_offset_t)uap->addr + uap->len; in sys_mcontrol()
729 if (uap->behav < 0 || uap->behav > MADV_CONTROL_END) in sys_mcontrol()
750 uap->behav, uap->value); in sys_mcontrol()
[all …]
H A Dvm_vmspace.c115 ve->id = uap->id; in sys_vmspace_create()
179 struct vmspace_ctl_args ua = *uap; in sys_vmspace_ctl()
289 error = kern_mmap(ve->vmspace, uap->addr, uap->len, in sys_vmspace_mmap()
290 uap->prot, uap->flags, in sys_vmspace_mmap()
291 uap->fd, uap->offset, &sysmsg->sysmsg_resultp); in sys_vmspace_mmap()
335 addr = (vm_offset_t)uap->addr; in sys_vmspace_munmap()
336 size = uap->len; in sys_vmspace_munmap()
342 if (size < uap->len) { /* wrap */ in sys_vmspace_munmap()
459 vm_offset_t tmpaddr = (vm_offset_t)uap->addr + uap->len; in sys_vmspace_mcontrol()
476 if (uap->behav < 0 || uap->behav > MADV_CONTROL_END) { in sys_vmspace_mcontrol()
[all …]
/dragonfly/sys/platform/vkernel64/x86_64/
H A Dtls.c67 sys_set_tls_area(struct sysmsg *sysmsg, const struct set_tls_area_args *uap) in sys_set_tls_area() argument
78 i = uap->which; in sys_set_tls_area()
81 if (uap->infosize < 0) in sys_set_tls_area()
87 if (uap->infosize != sizeof(info)) { in sys_set_tls_area()
89 error = copyin(uap->info, &info, in sys_set_tls_area()
90 min(sizeof(info), uap->infosize)); in sys_set_tls_area()
92 error = copyin(uap->info, &info, sizeof(info)); in sys_set_tls_area()
117 sys_get_tls_area(struct sysmsg *sysmsg, const struct get_tls_area_args *uap) in sys_get_tls_area() argument
126 i = uap->which; in sys_get_tls_area()
129 if (uap->infosize < 0) in sys_get_tls_area()
[all …]
/dragonfly/sys/platform/pc64/x86_64/
H A Dtls.c71 sys_set_tls_area(struct sysmsg *sysmsg, const struct set_tls_area_args *uap) in sys_set_tls_area() argument
82 i = uap->which; in sys_set_tls_area()
85 if (uap->infosize < 0) in sys_set_tls_area()
91 if (uap->infosize != sizeof(info)) { in sys_set_tls_area()
93 error = copyin(uap->info, &info, in sys_set_tls_area()
94 min(sizeof(info), uap->infosize)); in sys_set_tls_area()
96 error = copyin(uap->info, &info, sizeof(info)); in sys_set_tls_area()
123 sys_get_tls_area(struct sysmsg *sysmsg, const struct get_tls_area_args *uap) in sys_get_tls_area() argument
132 i = uap->which; in sys_get_tls_area()
135 if (uap->infosize < 0) in sys_get_tls_area()
[all …]
/dragonfly/lib/libc/isc/
H A Dev_timers.c60 void * uap; member
177 void *uap, in evSetTimer() argument
215 id->uap = uap; in evSetTimer()
295 void *uap, in evResetTimer() argument
327 timer->uap = uap; in evResetTimer()
354 void *uap, in evSetIdleTimer() argument
364 tt->uap = uap; in evSetIdleTimer()
393 void *uap, in evResetIdleTimer() argument
401 tt->uap = uap; in evResetIdleTimer()
460 UNUSED(uap); in free_timer()
[all …]
H A Dev_streams.c46 static void writable(evContext opaqueCtx, void *uap, int fd, int evmask);
47 static void readable(evContext opaqueCtx, void *uap, int fd, int evmask);
63 evStreamFunc func, void *uap, evStreamID *id) in evWrite() argument
71 new->uap = uap; in evWrite()
97 evStreamFunc func, void *uap, evStreamID *id) in evRead() argument
105 new->uap = uap; in evRead()
265 writable(evContext opaqueCtx, void *uap, int fd, int evmask) { in writable() argument
266 evStream *str = uap; in writable()
288 readable(evContext opaqueCtx, void *uap, int fd, int evmask) { in readable() argument
289 evStream *str = uap; in readable()

123