Lines Matching defs:args

169 linux_newstat(struct thread *td, struct linux_newstat_args *args)
174 error = linux_kern_stat(td, args->path, UIO_USERSPACE, &buf);
177 return (newstat_copyout(&buf, args->buf));
181 linux_newlstat(struct thread *td, struct linux_newlstat_args *args)
186 error = linux_kern_lstat(td, args->path, UIO_USERSPACE, &sb);
189 return (newstat_copyout(&sb, args->buf));
194 linux_newfstat(struct thread *td, struct linux_newfstat_args *args)
199 error = linux_kern_fstat(td, args->fd, &buf);
201 error = newstat_copyout(&buf, args->buf);
244 linux_stat(struct thread *td, struct linux_stat_args *args)
249 error = linux_kern_stat(td, args->path, UIO_USERSPACE, &buf);
253 return (old_stat_copyout(&buf, args->up));
257 linux_lstat(struct thread *td, struct linux_lstat_args *args)
262 error = linux_kern_lstat(td, args->path, UIO_USERSPACE, &buf);
266 return (old_stat_copyout(&buf, args->up));
377 linux_statfs(struct thread *td, struct linux_statfs_args *args)
384 error = kern_statfs(td, args->path, UIO_USERSPACE, bsd_statfs);
390 return (copyout(&linux_statfs, args->buf, sizeof(linux_statfs)));
414 linux_statfs64(struct thread *td, struct linux_statfs64_args *args)
420 if (args->bufsize != sizeof(struct l_statfs64))
424 error = kern_statfs(td, args->path, UIO_USERSPACE, bsd_statfs);
430 return (copyout(&linux_statfs, args->buf, sizeof(linux_statfs)));
434 linux_fstatfs64(struct thread *td, struct linux_fstatfs64_args *args)
440 if (args->bufsize != sizeof(struct l_statfs64))
444 error = kern_fstatfs(td, args->fd, bsd_statfs);
450 return (copyout(&linux_statfs, args->buf, sizeof(linux_statfs)));
455 linux_fstatfs(struct thread *td, struct linux_fstatfs_args *args)
462 error = kern_fstatfs(td, args->fd, bsd_statfs);
468 return (copyout(&linux_statfs, args->buf, sizeof(linux_statfs)));
481 linux_ustat(struct thread *td, struct linux_ustat_args *args)
550 linux_stat64(struct thread *td, struct linux_stat64_args *args)
555 error = linux_kern_stat(td, args->filename, UIO_USERSPACE, &buf);
558 return (stat64_copyout(&buf, args->statbuf));
562 linux_lstat64(struct thread *td, struct linux_lstat64_args *args)
567 error = linux_kern_lstat(td, args->filename, UIO_USERSPACE, &sb);
570 return (stat64_copyout(&sb, args->statbuf));
574 linux_fstat64(struct thread *td, struct linux_fstat64_args *args)
579 error = linux_kern_fstat(td, args->fd, &buf);
581 error = stat64_copyout(&buf, args->statbuf);
587 linux_fstatat64(struct thread *td, struct linux_fstatat64_args *args)
592 if (!linux_to_bsd_stat_flags(args->flag, &flags)) {
597 dfd = (args->dfd == LINUX_AT_FDCWD) ? AT_FDCWD : args->dfd;
598 error = linux_kern_statat(td, flags, dfd, args->pathname,
601 error = stat64_copyout(&buf, args->statbuf);
609 linux_newfstatat(struct thread *td, struct linux_newfstatat_args *args)
614 if (!linux_to_bsd_stat_flags(args->flag, &flags)) {
619 dfd = (args->dfd == LINUX_AT_FDCWD) ? AT_FDCWD : args->dfd;
620 error = linux_kern_statat(td, flags, dfd, args->pathname,
623 error = newstat_copyout(&buf, args->statbuf);
631 linux_syncfs(struct thread *td, struct linux_syncfs_args *args)
637 error = fgetvp(td, args->fd, &cap_fsync_rights, &vp);
703 linux_statx(struct thread *td, struct linux_statx_args *args)
708 if (!linux_to_bsd_stat_flags(args->flags, &flags)) {
713 dirfd = (args->dirfd == LINUX_AT_FDCWD) ? AT_FDCWD : args->dirfd;
714 error = linux_kern_statat(td, flags, dirfd, args->pathname,
717 error = statx_copyout(&buf, args->statxbuf);