Lines Matching refs:statbuf
307 static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * statbuf) in cp_old_stat() argument
341 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_old_stat()
345 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument
354 return cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2()
358 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument
367 return cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2()
370 SYSCALL_DEFINE2(fstat, unsigned int, fd, struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument
376 error = cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2()
389 static int cp_new_stat(struct kstat *stat, struct stat __user *statbuf) in cp_new_stat() argument
425 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_new_stat()
429 struct stat __user *, statbuf) in SYSCALL_DEFINE2() argument
436 return cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE2()
440 struct stat __user *, statbuf) in SYSCALL_DEFINE2() argument
449 return cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE2()
454 struct stat __user *, statbuf, int, flag) in SYSCALL_DEFINE4() argument
462 return cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE4()
466 SYSCALL_DEFINE2(newfstat, unsigned int, fd, struct stat __user *, statbuf) in SYSCALL_DEFINE2() argument
472 error = cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE2()
534 static long cp_new_stat64(struct kstat *stat, struct stat64 __user *statbuf) in cp_new_stat64() argument
566 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_new_stat64()
570 struct stat64 __user *, statbuf) in SYSCALL_DEFINE2() argument
576 error = cp_new_stat64(&stat, statbuf); in SYSCALL_DEFINE2()
582 struct stat64 __user *, statbuf) in SYSCALL_DEFINE2() argument
588 error = cp_new_stat64(&stat, statbuf); in SYSCALL_DEFINE2()
593 SYSCALL_DEFINE2(fstat64, unsigned long, fd, struct stat64 __user *, statbuf) in SYSCALL_DEFINE2() argument
599 error = cp_new_stat64(&stat, statbuf); in SYSCALL_DEFINE2()
605 struct stat64 __user *, statbuf, int, flag) in SYSCALL_DEFINE4() argument
613 return cp_new_stat64(&stat, statbuf); in SYSCALL_DEFINE4()
742 struct compat_stat __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument
750 return cp_compat_stat(&stat, statbuf); in COMPAT_SYSCALL_DEFINE2()
754 struct compat_stat __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument
762 return cp_compat_stat(&stat, statbuf); in COMPAT_SYSCALL_DEFINE2()
768 struct compat_stat __user *, statbuf, int, flag) in COMPAT_SYSCALL_DEFINE4() argument
776 return cp_compat_stat(&stat, statbuf); in COMPAT_SYSCALL_DEFINE4()
781 struct compat_stat __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument
787 error = cp_compat_stat(&stat, statbuf); in COMPAT_SYSCALL_DEFINE2()