Lines Matching refs:uap

172 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
360 error = kern_fstatfs(td, uap->fd, sfp); in sys_fstatfs()
362 error = copyout(sfp, uap->buf, sizeof(struct statfs)); in sys_fstatfs()
403 sys_getfsstat(struct thread *td, struct getfsstat_args *uap) in sys_getfsstat() argument
408 if (uap->bufsize < 0 || uap->bufsize > SIZE_MAX) in sys_getfsstat()
410 error = kern_getfsstat(td, &uap->buf, uap->bufsize, &count, in sys_getfsstat()
411 UIO_USERSPACE, uap->mode); in sys_getfsstat()
596 freebsd4_statfs(struct thread *td, struct freebsd4_statfs_args *uap) in freebsd4_statfs() argument
603 error = kern_statfs(td, uap->path, UIO_USERSPACE, sfp); in freebsd4_statfs()
606 error = copyout(&osb, uap->buf, sizeof(osb)); in freebsd4_statfs()
622 freebsd4_fstatfs(struct thread *td, struct freebsd4_fstatfs_args *uap) in freebsd4_fstatfs() argument
629 error = kern_fstatfs(td, uap->fd, sfp); in freebsd4_fstatfs()
632 error = copyout(&osb, uap->buf, sizeof(osb)); in freebsd4_fstatfs()
649 freebsd4_getfsstat(struct thread *td, struct freebsd4_getfsstat_args *uap) in freebsd4_getfsstat() argument
656 if (uap->bufsize < 0) in freebsd4_getfsstat()
658 count = uap->bufsize / sizeof(struct ostatfs); in freebsd4_getfsstat()
663 uap->mode); in freebsd4_getfsstat()
670 error = copyout(&osb, uap->buf, sizeof(osb)); in freebsd4_getfsstat()
672 uap->buf++; in freebsd4_getfsstat()
690 freebsd4_fhstatfs(struct thread *td, struct freebsd4_fhstatfs_args *uap) in freebsd4_fhstatfs() argument
697 error = copyin(uap->u_fhp, &fh, sizeof(fhandle_t)); in freebsd4_fhstatfs()
704 error = copyout(&osb, uap->buf, sizeof(osb)); in freebsd4_fhstatfs()
750 freebsd11_statfs(struct thread *td, struct freebsd11_statfs_args *uap) in freebsd11_statfs() argument
757 error = kern_statfs(td, uap->path, UIO_USERSPACE, sfp); in freebsd11_statfs()
760 error = copyout(&osb, uap->buf, sizeof(osb)); in freebsd11_statfs()
770 freebsd11_fstatfs(struct thread *td, struct freebsd11_fstatfs_args *uap) in freebsd11_fstatfs() argument
777 error = kern_fstatfs(td, uap->fd, sfp); in freebsd11_fstatfs()
780 error = copyout(&osb, uap->buf, sizeof(osb)); in freebsd11_fstatfs()
790 freebsd11_getfsstat(struct thread *td, struct freebsd11_getfsstat_args *uap) in freebsd11_getfsstat() argument
792 return (kern_freebsd11_getfsstat(td, uap->buf, uap->bufsize, uap->mode)); in freebsd11_getfsstat()
830 freebsd11_fhstatfs(struct thread *td, struct freebsd11_fhstatfs_args *uap) in freebsd11_fhstatfs() argument
837 error = copyin(uap->u_fhp, &fh, sizeof(fhandle_t)); in freebsd11_fhstatfs()
844 error = copyout(&osb, uap->buf, sizeof(osb)); in freebsd11_fhstatfs()
893 sys_fchdir(struct thread *td, struct fchdir_args *uap) in sys_fchdir() argument
900 AUDIT_ARG_FD(uap->fd); in sys_fchdir()
901 error = getvnode_path(td, uap->fd, &cap_fchdir_rights, in sys_fchdir()
939 sys_chdir(struct thread *td, struct chdir_args *uap) in sys_chdir() argument
942 return (kern_chdir(td, uap->path, UIO_USERSPACE)); in sys_chdir()
979 sys_chroot(struct thread *td, struct chroot_args *uap) in sys_chroot() argument
997 UIO_USERSPACE, uap->path); in sys_chroot()
1089 sys_open(struct thread *td, struct open_args *uap) in sys_open() argument
1092 return (kern_openat(td, AT_FDCWD, uap->path, UIO_USERSPACE, in sys_open()
1093 uap->flags, uap->mode)); in sys_open()
1105 sys_openat(struct thread *td, struct openat_args *uap) in sys_openat() argument
1108 AUDIT_ARG_FD(uap->fd); in sys_openat()
1109 return (kern_openat(td, uap->fd, uap->path, UIO_USERSPACE, uap->flag, in sys_openat()
1110 uap->mode)); in sys_openat()
1303 ocreat(struct thread *td, struct ocreat_args *uap) in ocreat() argument
1306 return (kern_openat(td, AT_FDCWD, uap->path, UIO_USERSPACE, in ocreat()
1307 O_WRONLY | O_CREAT | O_TRUNC, uap->mode)); in ocreat()
1323 sys_mknodat(struct thread *td, struct mknodat_args *uap) in sys_mknodat() argument
1326 return (kern_mknodat(td, uap->fd, uap->path, UIO_USERSPACE, uap->mode, in sys_mknodat()
1327 uap->dev)); in sys_mknodat()
1333 struct freebsd11_mknod_args *uap) in freebsd11_mknod() argument
1336 return (kern_mknodat(td, AT_FDCWD, uap->path, UIO_USERSPACE, in freebsd11_mknod()
1337 uap->mode, uap->dev)); in freebsd11_mknod()
1342 struct freebsd11_mknodat_args *uap) in freebsd11_mknodat() argument
1345 return (kern_mknodat(td, uap->fd, uap->path, UIO_USERSPACE, uap->mode, in freebsd11_mknodat()
1346 uap->dev)); in freebsd11_mknodat()
1458 sys_mkfifo(struct thread *td, struct mkfifo_args *uap) in sys_mkfifo() argument
1461 return (kern_mkfifoat(td, AT_FDCWD, uap->path, UIO_USERSPACE, in sys_mkfifo()
1462 uap->mode)); in sys_mkfifo()
1473 sys_mkfifoat(struct thread *td, struct mkfifoat_args *uap) in sys_mkfifoat() argument
1476 return (kern_mkfifoat(td, uap->fd, uap->path, UIO_USERSPACE, in sys_mkfifoat()
1477 uap->mode)); in sys_mkfifoat()
1544 sys_link(struct thread *td, struct link_args *uap) in sys_link() argument
1547 return (kern_linkat(td, AT_FDCWD, AT_FDCWD, uap->path, uap->link, in sys_link()
1561 sys_linkat(struct thread *td, struct linkat_args *uap) in sys_linkat() argument
1564 return (kern_linkat(td, uap->fd1, uap->fd2, uap->path1, uap->path2, in sys_linkat()
1565 UIO_USERSPACE, uap->flag)); in sys_linkat()
1725 sys_symlink(struct thread *td, struct symlink_args *uap) in sys_symlink() argument
1728 return (kern_symlinkat(td, uap->path, AT_FDCWD, uap->link, in sys_symlink()
1740 sys_symlinkat(struct thread *td, struct symlinkat_args *uap) in sys_symlinkat() argument
1743 return (kern_symlinkat(td, uap->path1, uap->fd, uap->path2, in sys_symlinkat()
1825 sys_undelete(struct thread *td, struct undelete_args *uap) in sys_undelete() argument
1835 UIO_USERSPACE, uap->path); in sys_undelete()
1875 sys_unlink(struct thread *td, struct unlink_args *uap) in sys_unlink() argument
1878 return (kern_funlinkat(td, AT_FDCWD, uap->path, FD_NONE, UIO_USERSPACE, in sys_unlink()
1904 sys_unlinkat(struct thread *td, struct unlinkat_args *uap) in sys_unlinkat() argument
1907 return (kern_funlinkat_ex(td, uap->fd, uap->path, FD_NONE, uap->flag, in sys_unlinkat()
1920 sys_funlinkat(struct thread *td, struct funlinkat_args *uap) in sys_funlinkat() argument
1923 return (kern_funlinkat_ex(td, uap->dfd, uap->path, uap->fd, uap->flag, in sys_funlinkat()
2030 sys_lseek(struct thread *td, struct lseek_args *uap) in sys_lseek() argument
2033 return (kern_lseek(td, uap->fd, uap->offset, uap->whence)); in sys_lseek()
2064 olseek(struct thread *td, struct olseek_args *uap) in olseek() argument
2067 return (kern_lseek(td, uap->fd, uap->offset, uap->whence)); in olseek()
2074 freebsd6_lseek(struct thread *td, struct freebsd6_lseek_args *uap) in freebsd6_lseek() argument
2077 return (kern_lseek(td, uap->fd, uap->offset, uap->whence)); in freebsd6_lseek()
2122 sys_access(struct thread *td, struct access_args *uap) in sys_access() argument
2125 return (kern_accessat(td, AT_FDCWD, uap->path, UIO_USERSPACE, in sys_access()
2126 0, uap->amode)); in sys_access()
2138 sys_faccessat(struct thread *td, struct faccessat_args *uap) in sys_faccessat() argument
2141 return (kern_accessat(td, uap->fd, uap->path, UIO_USERSPACE, uap->flag, in sys_faccessat()
2142 uap->amode)); in sys_faccessat()
2203 sys_eaccess(struct thread *td, struct eaccess_args *uap) in sys_eaccess() argument
2206 return (kern_accessat(td, AT_FDCWD, uap->path, UIO_USERSPACE, in sys_eaccess()
2207 AT_EACCESS, uap->amode)); in sys_eaccess()
2221 ostat(struct thread *td, struct ostat_args *uap) in ostat() argument
2227 error = kern_statat(td, 0, AT_FDCWD, uap->path, UIO_USERSPACE, &sb); in ostat()
2231 return (copyout(&osb, uap->ub, sizeof (osb))); in ostat()
2244 olstat(struct thread *td, struct olstat_args *uap) in olstat() argument
2250 error = kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, uap->path, in olstat()
2255 return (copyout(&osb, uap->ub, sizeof (osb))); in olstat()
2363 freebsd11_stat(struct thread *td, struct freebsd11_stat_args* uap) in freebsd11_stat() argument
2369 error = kern_statat(td, 0, AT_FDCWD, uap->path, UIO_USERSPACE, &sb); in freebsd11_stat()
2374 error = copyout(&osb, uap->ub, sizeof(osb)); in freebsd11_stat()
2379 freebsd11_lstat(struct thread *td, struct freebsd11_lstat_args* uap) in freebsd11_lstat() argument
2385 error = kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, uap->path, in freebsd11_lstat()
2391 error = copyout(&osb, uap->ub, sizeof(osb)); in freebsd11_lstat()
2396 freebsd11_fhstat(struct thread *td, struct freebsd11_fhstat_args* uap) in freebsd11_fhstat() argument
2403 error = copyin(uap->u_fhp, &fh, sizeof(fhandle_t)); in freebsd11_fhstat()
2411 error = copyout(&osb, uap->sb, sizeof(osb)); in freebsd11_fhstat()
2416 freebsd11_fstatat(struct thread *td, struct freebsd11_fstatat_args* uap) in freebsd11_fstatat() argument
2422 error = kern_statat(td, uap->flag, uap->fd, uap->path, in freebsd11_fstatat()
2428 error = copyout(&osb, uap->buf, sizeof(osb)); in freebsd11_fstatat()
2445 sys_fstatat(struct thread *td, struct fstatat_args *uap) in sys_fstatat() argument
2450 error = kern_statat(td, uap->flag, uap->fd, uap->path, in sys_fstatat()
2453 error = copyout(&sb, uap->buf, sizeof (sb)); in sys_fstatat()
2535 freebsd11_nstat(struct thread *td, struct freebsd11_nstat_args *uap) in freebsd11_nstat() argument
2541 error = kern_statat(td, 0, AT_FDCWD, uap->path, UIO_USERSPACE, &sb); in freebsd11_nstat()
2546 error = copyout(&nsb, uap->ub, sizeof (nsb)); in freebsd11_nstat()
2560 freebsd11_nlstat(struct thread *td, struct freebsd11_nlstat_args *uap) in freebsd11_nlstat() argument
2566 error = kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, uap->path, in freebsd11_nlstat()
2572 error = copyout(&nsb, uap->ub, sizeof (nsb)); in freebsd11_nlstat()
2587 sys_pathconf(struct thread *td, struct pathconf_args *uap) in sys_pathconf() argument
2592 error = kern_pathconf(td, uap->path, UIO_USERSPACE, uap->name, FOLLOW, in sys_pathconf()
2606 sys_lpathconf(struct thread *td, struct lpathconf_args *uap) in sys_lpathconf() argument
2611 error = kern_pathconf(td, uap->path, UIO_USERSPACE, uap->name, in sys_lpathconf()
2647 sys_readlink(struct thread *td, struct readlink_args *uap) in sys_readlink() argument
2650 return (kern_readlinkat(td, AT_FDCWD, uap->path, UIO_USERSPACE, in sys_readlink()
2651 uap->buf, UIO_USERSPACE, uap->count)); in sys_readlink()
2662 sys_readlinkat(struct thread *td, struct readlinkat_args *uap) in sys_readlinkat() argument
2665 return (kern_readlinkat(td, uap->fd, uap->path, UIO_USERSPACE, in sys_readlinkat()
2666 uap->buf, UIO_USERSPACE, uap->bufsize)); in sys_readlinkat()
2779 sys_chflags(struct thread *td, struct chflags_args *uap) in sys_chflags() argument
2782 return (kern_chflagsat(td, AT_FDCWD, uap->path, UIO_USERSPACE, in sys_chflags()
2783 uap->flags, 0)); in sys_chflags()
2795 sys_chflagsat(struct thread *td, struct chflagsat_args *uap) in sys_chflagsat() argument
2798 return (kern_chflagsat(td, uap->fd, uap->path, UIO_USERSPACE, in sys_chflagsat()
2799 uap->flags, uap->atflag)); in sys_chflagsat()
2812 sys_lchflags(struct thread *td, struct lchflags_args *uap) in sys_lchflags() argument
2815 return (kern_chflagsat(td, AT_FDCWD, uap->path, UIO_USERSPACE, in sys_lchflags()
2816 uap->flags, AT_SYMLINK_NOFOLLOW)); in sys_lchflags()
2852 sys_fchflags(struct thread *td, struct fchflags_args *uap) in sys_fchflags() argument
2857 AUDIT_ARG_FD(uap->fd); in sys_fchflags()
2858 AUDIT_ARG_FFLAGS(uap->flags); in sys_fchflags()
2859 error = getvnode(td, uap->fd, &cap_fchflags_rights, in sys_fchflags()
2870 error = setfflags(td, fp->f_vnode, uap->flags); in sys_fchflags()
2910 sys_chmod(struct thread *td, struct chmod_args *uap) in sys_chmod() argument
2913 return (kern_fchmodat(td, AT_FDCWD, uap->path, UIO_USERSPACE, in sys_chmod()
2914 uap->mode, 0)); in sys_chmod()
2926 sys_fchmodat(struct thread *td, struct fchmodat_args *uap) in sys_fchmodat() argument
2929 return (kern_fchmodat(td, uap->fd, uap->path, UIO_USERSPACE, in sys_fchmodat()
2930 uap->mode, uap->flag)); in sys_fchmodat()
2943 sys_lchmod(struct thread *td, struct lchmod_args *uap) in sys_lchmod() argument
2946 return (kern_fchmodat(td, AT_FDCWD, uap->path, UIO_USERSPACE, in sys_lchmod()
2947 uap->mode, AT_SYMLINK_NOFOLLOW)); in sys_lchmod()
2983 sys_fchmod(struct thread *td, struct fchmod_args *uap) in sys_fchmod() argument
2988 AUDIT_ARG_FD(uap->fd); in sys_fchmod()
2989 AUDIT_ARG_MODE(uap->mode); in sys_fchmod()
2991 error = fget(td, uap->fd, &cap_fchmod_rights, &fp); in sys_fchmod()
2994 error = fo_chmod(fp, uap->mode, td->td_ucred, td); in sys_fchmod()
3038 sys_chown(struct thread *td, struct chown_args *uap) in sys_chown() argument
3041 return (kern_fchownat(td, AT_FDCWD, uap->path, UIO_USERSPACE, uap->uid, in sys_chown()
3042 uap->gid, 0)); in sys_chown()
3055 sys_fchownat(struct thread *td, struct fchownat_args *uap) in sys_fchownat() argument
3058 return (kern_fchownat(td, uap->fd, uap->path, UIO_USERSPACE, uap->uid, in sys_fchownat()
3059 uap->gid, uap->flag)); in sys_fchownat()
3097 sys_lchown(struct thread *td, struct lchown_args *uap) in sys_lchown() argument
3100 return (kern_fchownat(td, AT_FDCWD, uap->path, UIO_USERSPACE, in sys_lchown()
3101 uap->uid, uap->gid, AT_SYMLINK_NOFOLLOW)); in sys_lchown()
3115 sys_fchown(struct thread *td, struct fchown_args *uap) in sys_fchown() argument
3120 AUDIT_ARG_FD(uap->fd); in sys_fchown()
3121 AUDIT_ARG_OWNER(uap->uid, uap->gid); in sys_fchown()
3122 error = fget(td, uap->fd, &cap_fchown_rights, &fp); in sys_fchown()
3125 error = fo_chown(fp, uap->uid, uap->gid, td->td_ucred, td); in sys_fchown()
3260 sys_utimes(struct thread *td, struct utimes_args *uap) in sys_utimes() argument
3263 return (kern_utimesat(td, AT_FDCWD, uap->path, UIO_USERSPACE, in sys_utimes()
3264 uap->tptr, UIO_USERSPACE)); in sys_utimes()
3275 sys_futimesat(struct thread *td, struct futimesat_args *uap) in sys_futimesat() argument
3278 return (kern_utimesat(td, uap->fd, uap->path, UIO_USERSPACE, in sys_futimesat()
3279 uap->times, UIO_USERSPACE)); in sys_futimesat()
3313 sys_lutimes(struct thread *td, struct lutimes_args *uap) in sys_lutimes() argument
3316 return (kern_lutimes(td, uap->path, UIO_USERSPACE, uap->tptr, in sys_lutimes()
3349 sys_futimes(struct thread *td, struct futimes_args *uap) in sys_futimes() argument
3352 return (kern_futimes(td, uap->fd, uap->tptr, UIO_USERSPACE)); in sys_futimes()
3383 sys_futimens(struct thread *td, struct futimens_args *uap) in sys_futimens() argument
3386 return (kern_futimens(td, uap->fd, uap->times, UIO_USERSPACE)); in sys_futimens()
3419 sys_utimensat(struct thread *td, struct utimensat_args *uap) in sys_utimensat() argument
3422 return (kern_utimensat(td, uap->fd, uap->path, UIO_USERSPACE, in sys_utimensat()
3423 uap->times, UIO_USERSPACE, uap->flag)); in sys_utimensat()
3470 sys_truncate(struct thread *td, struct truncate_args *uap) in sys_truncate() argument
3473 return (kern_truncate(td, uap->path, UIO_USERSPACE, uap->length)); in sys_truncate()
3537 otruncate(struct thread *td, struct otruncate_args *uap) in otruncate() argument
3540 return (kern_truncate(td, uap->path, UIO_USERSPACE, uap->length)); in otruncate()
3547 freebsd6_truncate(struct thread *td, struct freebsd6_truncate_args *uap) in freebsd6_truncate() argument
3550 return (kern_truncate(td, uap->path, UIO_USERSPACE, uap->length)); in freebsd6_truncate()
3554 freebsd6_ftruncate(struct thread *td, struct freebsd6_ftruncate_args *uap) in freebsd6_ftruncate() argument
3557 return (kern_ftruncate(td, uap->fd, uap->length)); in freebsd6_ftruncate()
3604 sys_fsync(struct thread *td, struct fsync_args *uap) in sys_fsync() argument
3607 return (kern_fsync(td, uap->fd, true)); in sys_fsync()
3611 sys_fdatasync(struct thread *td, struct fdatasync_args *uap) in sys_fdatasync() argument
3614 return (kern_fsync(td, uap->fd, false)); in sys_fdatasync()
3628 sys_rename(struct thread *td, struct rename_args *uap) in sys_rename() argument
3631 return (kern_renameat(td, AT_FDCWD, uap->from, AT_FDCWD, in sys_rename()
3632 uap->to, UIO_USERSPACE)); in sys_rename()
3644 sys_renameat(struct thread *td, struct renameat_args *uap) in sys_renameat() argument
3647 return (kern_renameat(td, uap->oldfd, uap->old, uap->newfd, uap->new, in sys_renameat()
3810 sys_mkdir(struct thread *td, struct mkdir_args *uap) in sys_mkdir() argument
3813 return (kern_mkdirat(td, AT_FDCWD, uap->path, UIO_USERSPACE, in sys_mkdir()
3814 uap->mode)); in sys_mkdir()
3825 sys_mkdirat(struct thread *td, struct mkdirat_args *uap) in sys_mkdirat() argument
3828 return (kern_mkdirat(td, uap->fd, uap->path, UIO_USERSPACE, uap->mode)); in sys_mkdirat()
3886 sys_rmdir(struct thread *td, struct rmdir_args *uap) in sys_rmdir() argument
3889 return (kern_frmdirat(td, AT_FDCWD, uap->path, FD_NONE, UIO_USERSPACE, in sys_rmdir()
4089 ogetdirentries(struct thread *td, struct ogetdirentries_args *uap) in ogetdirentries() argument
4094 error = kern_ogetdirentries(td, uap, &loff); in ogetdirentries()
4096 error = copyout(&loff, uap->basep, sizeof(long)); in ogetdirentries()
4101 kern_ogetdirentries(struct thread *td, struct ogetdirentries_args *uap, in kern_ogetdirentries() argument
4108 if (uap->count > 64 * 1024) in kern_ogetdirentries()
4111 error = freebsd11_kern_getdirentries(td, uap->fd, uap->buf, uap->count, in kern_ogetdirentries()
4114 if (error == 0 && uap->basep != NULL) in kern_ogetdirentries()
4115 error = copyout(&base, uap->basep, sizeof(long)); in kern_ogetdirentries()
4132 struct freebsd11_getdirentries_args *uap) in freebsd11_getdirentries() argument
4137 error = freebsd11_kern_getdirentries(td, uap->fd, uap->buf, uap->count, in freebsd11_getdirentries()
4140 if (error == 0 && uap->basep != NULL) in freebsd11_getdirentries()
4141 error = copyout(&base, uap->basep, sizeof(long)); in freebsd11_getdirentries()
4146 freebsd11_getdents(struct thread *td, struct freebsd11_getdents_args *uap) in freebsd11_getdents() argument
4150 ap.fd = uap->fd; in freebsd11_getdents()
4151 ap.buf = uap->buf; in freebsd11_getdents()
4152 ap.count = uap->count; in freebsd11_getdents()
4162 sys_getdirentries(struct thread *td, struct getdirentries_args *uap) in sys_getdirentries() argument
4167 error = kern_getdirentries(td, uap->fd, uap->buf, uap->count, &base, in sys_getdirentries()
4171 if (uap->basep != NULL) in sys_getdirentries()
4172 error = copyout(&base, uap->basep, sizeof(off_t)); in sys_getdirentries()
4263 sys_umask(struct thread *td, struct umask_args *uap) in sys_umask() argument
4270 pdp->pd_cmask = uap->newmask & ALLPERMS; in sys_umask()
4285 sys_revoke(struct thread *td, struct revoke_args *uap) in sys_revoke() argument
4293 uap->path); in sys_revoke()
4397 sys_lgetfh(struct thread *td, struct lgetfh_args *uap) in sys_lgetfh() argument
4400 return (kern_getfhat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, uap->fname, in sys_lgetfh()
4401 UIO_USERSPACE, uap->fhp, UIO_USERSPACE)); in sys_lgetfh()
4411 sys_getfh(struct thread *td, struct getfh_args *uap) in sys_getfh() argument
4414 return (kern_getfhat(td, 0, AT_FDCWD, uap->fname, UIO_USERSPACE, in sys_getfh()
4415 uap->fhp, UIO_USERSPACE)); in sys_getfh()
4434 sys_getfhat(struct thread *td, struct getfhat_args *uap) in sys_getfhat() argument
4437 return (kern_getfhat(td, uap->flags, uap->fd, uap->path, UIO_USERSPACE, in sys_getfhat()
4438 uap->fhp, UIO_USERSPACE)); in sys_getfhat()
4483 sys_fhlink(struct thread *td, struct fhlink_args *uap) in sys_fhlink() argument
4486 return (kern_fhlinkat(td, AT_FDCWD, uap->to, UIO_USERSPACE, uap->fhp)); in sys_fhlink()
4497 sys_fhlinkat(struct thread *td, struct fhlinkat_args *uap) in sys_fhlinkat() argument
4500 return (kern_fhlinkat(td, uap->tofd, uap->to, UIO_USERSPACE, uap->fhp)); in sys_fhlinkat()
4540 sys_fhreadlink(struct thread *td, struct fhreadlink_args *uap) in sys_fhreadlink() argument
4550 if (uap->bufsize > IOSIZE_MAX) in sys_fhreadlink()
4552 error = copyin(uap->fhp, &fh, sizeof(fh)); in sys_fhreadlink()
4561 error = kern_readlink_vp(vp, uap->buf, UIO_USERSPACE, uap->bufsize, td); in sys_fhreadlink()
4580 sys_fhopen(struct thread *td, struct fhopen_args *uap) in sys_fhopen() argument
4582 return (kern_fhopen(td, uap->u_fhp, uap->flags)); in sys_fhopen()
4668 sys_fhstat(struct thread *td, struct fhstat_args *uap) in sys_fhstat() argument
4674 error = copyin(uap->u_fhp, &fh, sizeof(fh)); in sys_fhstat()
4679 error = copyout(&sb, uap->sb, sizeof(sb)); in sys_fhstat()
4714 sys_fhstatfs(struct thread *td, struct fhstatfs_args *uap) in sys_fhstatfs() argument
4720 error = copyin(uap->u_fhp, &fh, sizeof(fhandle_t)); in sys_fhstatfs()
4726 error = copyout(sfp, uap->buf, sizeof(*sfp)); in sys_fhstatfs()
4892 sys_posix_fadvise(struct thread *td, struct posix_fadvise_args *uap) in sys_posix_fadvise() argument
4896 error = kern_posix_fadvise(td, uap->fd, uap->offset, uap->len, in sys_posix_fadvise()
4897 uap->advice); in sys_posix_fadvise()
5024 sys_copy_file_range(struct thread *td, struct copy_file_range_args *uap) in sys_copy_file_range() argument
5030 if (uap->inoffp != NULL) { in sys_copy_file_range()
5031 error = copyin(uap->inoffp, &inoff, sizeof(off_t)); in sys_copy_file_range()
5036 if (uap->outoffp != NULL) { in sys_copy_file_range()
5037 error = copyin(uap->outoffp, &outoff, sizeof(off_t)); in sys_copy_file_range()
5042 error = kern_copy_file_range(td, uap->infd, inoffp, uap->outfd, in sys_copy_file_range()
5043 outoffp, uap->len, uap->flags); in sys_copy_file_range()
5044 if (error == 0 && uap->inoffp != NULL) in sys_copy_file_range()
5045 error = copyout(inoffp, uap->inoffp, sizeof(off_t)); in sys_copy_file_range()
5046 if (error == 0 && uap->outoffp != NULL) in sys_copy_file_range()
5047 error = copyout(outoffp, uap->outoffp, sizeof(off_t)); in sys_copy_file_range()