Lines Matching refs:uap

189 sys_read(struct thread *td, struct read_args *uap)
195 if (uap->nbyte > IOSIZE_MAX)
197 aiov.iov_base = uap->buf;
198 aiov.iov_len = uap->nbyte;
201 auio.uio_resid = uap->nbyte;
203 error = kern_readv(td, uap->fd, &auio);
220 sys_pread(struct thread *td, struct pread_args *uap)
223 return (kern_pread(td, uap->fd, uap->buf, uap->nbyte, uap->offset));
247 freebsd6_pread(struct thread *td, struct freebsd6_pread_args *uap)
250 return (kern_pread(td, uap->fd, uap->buf, uap->nbyte, uap->offset));
265 sys_readv(struct thread *td, struct readv_args *uap)
270 error = copyinuio(uap->iovp, uap->iovcnt, &auio);
273 error = kern_readv(td, uap->fd, auio);
304 sys_preadv(struct thread *td, struct preadv_args *uap)
309 error = copyinuio(uap->iovp, uap->iovcnt, &auio);
312 error = kern_preadv(td, uap->fd, auio, uap->offset);
390 sys_write(struct thread *td, struct write_args *uap)
396 if (uap->nbyte > IOSIZE_MAX)
398 aiov.iov_base = (void *)(uintptr_t)uap->buf;
399 aiov.iov_len = uap->nbyte;
402 auio.uio_resid = uap->nbyte;
404 error = kern_writev(td, uap->fd, &auio);
421 sys_pwrite(struct thread *td, struct pwrite_args *uap)
424 return (kern_pwrite(td, uap->fd, uap->buf, uap->nbyte, uap->offset));
449 freebsd6_pwrite(struct thread *td, struct freebsd6_pwrite_args *uap)
452 return (kern_pwrite(td, uap->fd, uap->buf, uap->nbyte, uap->offset));
467 sys_writev(struct thread *td, struct writev_args *uap)
472 error = copyinuio(uap->iovp, uap->iovcnt, &auio);
475 error = kern_writev(td, uap->fd, auio);
506 sys_pwritev(struct thread *td, struct pwritev_args *uap)
511 error = copyinuio(uap->iovp, uap->iovcnt, &auio);
514 error = kern_pwritev(td, uap->fd, auio, uap->offset);
625 sys_ftruncate(struct thread *td, struct ftruncate_args *uap)
628 return (kern_ftruncate(td, uap->fd, uap->length));
639 oftruncate(struct thread *td, struct oftruncate_args *uap)
642 return (kern_ftruncate(td, uap->fd, uap->length));
655 sys_ioctl(struct thread *td, struct ioctl_args *uap)
664 if (uap->com > 0xffffffff) {
667 td->td_proc->p_pid, td->td_name, uap->com);
670 com = (uint32_t)uap->com;
690 arg = (intptr_t)uap->data;
700 data = (void *)&uap->data;
702 error = copyin(uap->data, data, (u_int)size);
713 error = kern_ioctl(td, uap->fd, com, data);
716 error = copyout(data, uap->data, (u_int)size);
826 sys_posix_fallocate(struct thread *td, struct posix_fallocate_args *uap)
830 error = kern_posix_fallocate(td, uap->fd, uap->offset, uap->len);
867 sys_fspacectl(struct thread *td, struct fspacectl_args *uap)
872 error = copyin(uap->rqsr, &rqsr, sizeof(rqsr));
876 error = kern_fspacectl(td, uap->fd, uap->cmd, &rqsr, uap->flags,
878 if (uap->rmsr != NULL) {
879 cerror = copyout(&rmsr, uap->rmsr, sizeof(rmsr));
1014 sys_pselect(struct thread *td, struct pselect_args *uap)
1021 if (uap->ts != NULL) {
1022 error = copyin(uap->ts, &ts, sizeof(ts));
1029 if (uap->sm != NULL) {
1030 error = copyin(uap->sm, &set, sizeof(set));
1036 return (kern_pselect(td, uap->nd, uap->in, uap->ou, uap->ex, tvp,
1071 sys_select(struct thread *td, struct select_args *uap)
1076 if (uap->tv != NULL) {
1077 error = copyin(uap->tv, &tv, sizeof(tv));
1084 return (kern_select(td, uap->nd, uap->in, uap->ou, uap->ex, tvp,
1474 sys_poll(struct thread *td, struct poll_args *uap)
1478 if (uap->timeout != INFTIM) {
1479 if (uap->timeout < 0)
1481 ts.tv_sec = uap->timeout / 1000;
1482 ts.tv_nsec = (uap->timeout % 1000) * 1000000;
1487 return (kern_poll(td, uap->fds, uap->nfds, tsp, NULL));
1563 sys_ppoll(struct thread *td, struct ppoll_args *uap)
1569 if (uap->ts != NULL) {
1570 error = copyin(uap->ts, &ts, sizeof(ts));
1576 if (uap->set != NULL) {
1577 error = copyin(uap->set, &set, sizeof(set));
1583 return (kern_poll(td, uap->fds, uap->nfds, tsp, ssp));
2167 sys_kcmp(struct thread *td, struct kcmp_args *uap)
2169 return (kern_kcmp(td, uap->pid1, uap->pid2, uap->type,
2170 uap->idx1, uap->idx2));