Lines Matching defs:statbuf

311 static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * statbuf)
345 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0;
349 struct __old_kernel_stat __user *, statbuf)
358 return cp_old_stat(&stat, statbuf);
362 struct __old_kernel_stat __user *, statbuf)
371 return cp_old_stat(&stat, statbuf);
374 SYSCALL_DEFINE2(fstat, unsigned int, fd, struct __old_kernel_stat __user *, statbuf)
380 error = cp_old_stat(&stat, statbuf);
393 static int cp_new_stat(struct kstat *stat, struct stat __user *statbuf)
429 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0;
433 struct stat __user *, statbuf)
440 return cp_new_stat(&stat, statbuf);
444 struct stat __user *, statbuf)
453 return cp_new_stat(&stat, statbuf);
458 struct stat __user *, statbuf, int, flag)
466 return cp_new_stat(&stat, statbuf);
470 SYSCALL_DEFINE2(newfstat, unsigned int, fd, struct stat __user *, statbuf)
476 error = cp_new_stat(&stat, statbuf);
538 static long cp_new_stat64(struct kstat *stat, struct stat64 __user *statbuf)
570 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0;
574 struct stat64 __user *, statbuf)
580 error = cp_new_stat64(&stat, statbuf);
586 struct stat64 __user *, statbuf)
592 error = cp_new_stat64(&stat, statbuf);
597 SYSCALL_DEFINE2(fstat64, unsigned long, fd, struct stat64 __user *, statbuf)
603 error = cp_new_stat64(&stat, statbuf);
609 struct stat64 __user *, statbuf, int, flag)
617 return cp_new_stat64(&stat, statbuf);
746 struct compat_stat __user *, statbuf)
754 return cp_compat_stat(&stat, statbuf);
758 struct compat_stat __user *, statbuf)
766 return cp_compat_stat(&stat, statbuf);
772 struct compat_stat __user *, statbuf, int, flag)
780 return cp_compat_stat(&stat, statbuf);
785 struct compat_stat __user *, statbuf)
791 error = cp_compat_stat(&stat, statbuf);