Lines Matching refs:statbuf
121 static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * statbuf) in cp_old_stat() argument
155 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_old_stat()
159 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument
168 return cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2()
172 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument
181 return cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2()
184 SYSCALL_DEFINE2(fstat, unsigned int, fd, struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument
190 error = cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2()
210 static int cp_new_stat(struct kstat *stat, struct stat __user *statbuf) in cp_new_stat() argument
244 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_new_stat()
248 struct stat __user *, statbuf) in SYSCALL_DEFINE2() argument
255 return cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE2()
259 struct stat __user *, statbuf) in SYSCALL_DEFINE2() argument
268 return cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE2()
273 struct stat __user *, statbuf, int, flag) in SYSCALL_DEFINE4() argument
281 return cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE4()
285 SYSCALL_DEFINE2(newfstat, unsigned int, fd, struct stat __user *, statbuf) in SYSCALL_DEFINE2() argument
291 error = cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE2()
344 static long cp_new_stat64(struct kstat *stat, struct stat64 __user *statbuf) in cp_new_stat64() argument
378 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_new_stat64()
382 struct stat64 __user *, statbuf) in SYSCALL_DEFINE2() argument
388 error = cp_new_stat64(&stat, statbuf); in SYSCALL_DEFINE2()
394 struct stat64 __user *, statbuf) in SYSCALL_DEFINE2() argument
400 error = cp_new_stat64(&stat, statbuf); in SYSCALL_DEFINE2()
405 SYSCALL_DEFINE2(fstat64, unsigned long, fd, struct stat64 __user *, statbuf) in SYSCALL_DEFINE2() argument
411 error = cp_new_stat64(&stat, statbuf); in SYSCALL_DEFINE2()
417 struct stat64 __user *, statbuf, int, flag) in SYSCALL_DEFINE4() argument
425 return cp_new_stat64(&stat, statbuf); in SYSCALL_DEFINE4()