Home
last modified time | relevance | path

Searched refs:statbuf (Results 1 – 18 of 18) sorted by relevance

/linux/fs/
H A Dstat.c387 static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * statbuf) in cp_old_stat()
421 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in SYSCALL_DEFINE2() argument
425 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2()
434 return cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2() argument
438 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2()
447 return cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2()
450 SYSCALL_DEFINE2(fstat, unsigned int, fd, struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2()
459 return cp_old_stat(&stat, statbuf);
470 static int cp_new_stat(struct kstat *stat, struct stat __user *statbuf) in cp_new_stat()
506 return copy_to_user(statbuf, in SYSCALL_DEFINE2() argument
383 cp_old_stat(struct kstat * stat,struct __old_kernel_stat __user * statbuf) cp_old_stat() argument
446 SYSCALL_DEFINE2(fstat,unsigned int,fd,struct __old_kernel_stat __user *,statbuf) SYSCALL_DEFINE2() argument
466 cp_new_stat(struct kstat * stat,struct stat __user * statbuf) cp_new_stat() argument
519 SYSCALL_DEFINE2(newlstat,const char __user *,filename,struct stat __user *,statbuf) SYSCALL_DEFINE2() argument
533 SYSCALL_DEFINE4(newfstatat,int,dfd,const char __user *,filename,struct stat __user *,statbuf,int,flag) SYSCALL_DEFINE4() argument
546 SYSCALL_DEFINE2(newfstat,unsigned int,fd,struct stat __user *,statbuf) SYSCALL_DEFINE2() argument
616 cp_new_stat64(struct kstat * stat,struct stat64 __user * statbuf) cp_new_stat64() argument
652 SYSCALL_DEFINE2(stat64,const char __user *,filename,struct stat64 __user *,statbuf) SYSCALL_DEFINE2() argument
664 SYSCALL_DEFINE2(lstat64,const char __user *,filename,struct stat64 __user *,statbuf) SYSCALL_DEFINE2() argument
675 SYSCALL_DEFINE2(fstat64,unsigned long,fd,struct stat64 __user *,statbuf) SYSCALL_DEFINE2() argument
687 SYSCALL_DEFINE4(fstatat64,int,dfd,const char __user *,filename,struct stat64 __user *,statbuf,int,flag) SYSCALL_DEFINE4() argument
854 COMPAT_SYSCALL_DEFINE2(newstat,const char __user *,filename,struct compat_stat __user *,statbuf) COMPAT_SYSCALL_DEFINE2() argument
866 COMPAT_SYSCALL_DEFINE2(newlstat,const char __user *,filename,struct compat_stat __user *,statbuf) COMPAT_SYSCALL_DEFINE2() argument
880 COMPAT_SYSCALL_DEFINE4(newfstatat,unsigned int,dfd,const char __user *,filename,struct compat_stat __user *,statbuf,int,flag) COMPAT_SYSCALL_DEFINE4() argument
893 COMPAT_SYSCALL_DEFINE2(newfstat,unsigned int,fd,struct compat_stat __user *,statbuf) COMPAT_SYSCALL_DEFINE2() argument
[all...]
/linux/tools/power/cpupower/utils/helpers/
H A Dsysfs.c55 struct stat statbuf; in sysfs_is_cpu_online() local
59 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online()
67 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online()
108 struct stat statbuf; in sysfs_idlestate_file_exists() local
113 if (stat(path, &statbuf) != 0) in sysfs_idlestate_file_exists()
357 struct stat statbuf; in sysfs_get_idlestate_count() local
362 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count()
366 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count()
369 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in sysfs_get_idlestate_count()
/linux/tools/power/cpupower/lib/
H A Dcpuidle.c34 struct stat statbuf; in cpuidle_state_file_exists() local
39 if (stat(path, &statbuf) != 0) in cpuidle_state_file_exists()
296 struct stat statbuf; in cpuidle_state_count()
301 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count()
305 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count()
308 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in cpuidle_state_count()
295 struct stat statbuf; cpuidle_state_count() local
H A Dpowercap.c97 struct stat statbuf; in powercap_get_driver() local
99 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) { in powercap_get_driver()
/linux/arch/sparc/kernel/
H A Dsystbls.h60 struct compat_stat64 __user *statbuf);
62 struct compat_stat64 __user *statbuf);
64 struct compat_stat64 __user * statbuf);
67 struct compat_stat64 __user * statbuf, int flag);
97 struct compat_stat64 __user * statbuf);
100 struct compat_stat64 __user * statbuf,
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dpinning.c37 struct stat statbuf = {}; in test_pinning() local
66 err = stat(pinpath, &statbuf); in test_pinning()
71 err = stat(nopinpath, &statbuf); in test_pinning()
77 err = stat(nopinpath2, &statbuf); in test_pinning()
152 err = stat(custpinpath, &statbuf); in test_pinning()
197 err = stat(nopinpath2, &statbuf); in test_pinning()
203 err = stat(pinpath, &statbuf); in test_pinning()
221 err = stat(custpinpath, &statbuf); in test_pinning()
266 err = stat(custpinpath, &statbuf); in test_pinning()
H A Dlink_pinning.c15 struct stat statbuf = {}; in test_link_pinning_subtest() local
36 err = stat(link_pin_path, &statbuf); in test_link_pinning_subtest()
/linux/tools/testing/selftests/splice/
H A Dsplice_read.c32 struct stat statbuf; in main() local
34 if (fstat(fd, &statbuf) < 0) { in main()
39 if (statbuf.st_size > INT_MAX) { in main()
44 size = statbuf.st_size; in main()
/linux/arch/arm/include/asm/
H A Dsyscalls.h16 struct oldabi_stat64 __user * statbuf);
18 struct oldabi_stat64 __user * statbuf);
20 struct oldabi_stat64 __user * statbuf);
23 struct oldabi_stat64 __user *statbuf,
/linux/arch/arm/kernel/
H A Dsys_oabi-compat.c122 struct oldabi_stat64 __user *statbuf) in cp_oldabi_stat64() argument
145 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_oldabi_stat64()
149 struct oldabi_stat64 __user * statbuf) in sys_oabi_stat64() argument
154 error = cp_oldabi_stat64(&stat, statbuf); in sys_oabi_stat64()
159 struct oldabi_stat64 __user * statbuf) in sys_oabi_lstat64() argument
164 error = cp_oldabi_stat64(&stat, statbuf); in sys_oabi_lstat64()
169 struct oldabi_stat64 __user * statbuf) in sys_oabi_fstat64() argument
174 error = cp_oldabi_stat64(&stat, statbuf); in sys_oabi_fstat64()
180 struct oldabi_stat64 __user *statbuf, in sys_oabi_fstatat64() argument
189 return cp_oldabi_stat64(&stat, statbuf); in sys_oabi_fstatat64()
[all...]
/linux/tools/testing/selftests/filesystems/fuse/
H A Dfusectl_test.c47 struct stat statbuf; in FIXTURE_SETUP() local
90 if (stat(self->fuse_mountpoint, &statbuf)) in FIXTURE_SETUP()
95 self->connection = statbuf.st_dev; in FIXTURE_SETUP()
/linux/tools/perf/util/
H A Dutil.c162 struct stat statbuf; in rm_rf_depth_pat()
165 ret = lstat(path, &statbuf); in rm_rf_depth_pat()
170 if (!(statbuf.st_mode & S_IFDIR)) in rm_rf_depth_pat()
192 ret = lstat(namebuf, &statbuf); in rm_rf_depth_pat()
198 if (S_ISDIR(statbuf.st_mode)) in rm_rf_depth_pat()
164 struct stat statbuf; rm_rf_depth_pat() local
/linux/samples/landlock/
H A Dsandboxer.c179 struct stat statbuf; in populate_ruleset_fs()
187 if (fstat(path_beneath.parent_fd, &statbuf)) { in populate_ruleset_net()
194 if (!S_ISDIR(statbuf.st_mode)) in populate_ruleset_net()
152 struct stat statbuf; populate_ruleset_fs() local
/linux/tools/power/cpupower/utils/
H A Dcpupower.c179 struct stat statbuf; in main() local
220 stat(pathname, &statbuf) != 0) { in main()
/linux/arch/um/drivers/
H A Dvector_user.c903 struct stat statbuf; in uml_vector_user_bpf()
909 if (stat(filename, &statbuf) < 0) { in uml_vector_user_bpf()
918 bpf_prog->len = statbuf.st_size / sizeof(struct sock_filter); in uml_vector_user_bpf()
925 bpf = uml_kmalloc(statbuf.st_size, UM_GFP_KERNEL); in uml_vector_user_bpf()
931 res = os_read_file(ffd, bpf, statbuf.st_size); in uml_vector_user_bpf()
932 if (res < statbuf.st_size) { in uml_vector_user_bpf()
900 struct stat statbuf; uml_vector_user_bpf() local
/linux/tools/testing/selftests/kvm/lib/
H A Dtest_util.c170 struct stat statbuf; in get_sysfs_val()
173 ret = stat(path, &statbuf); in get_sysfs_val()
144 struct stat statbuf; test_sysfs_path() local
/linux/include/linux/
H A Dcompat.h671 struct compat_stat __user *statbuf,
674 struct compat_stat __user *statbuf);
827 struct compat_stat __user *statbuf);
829 struct compat_stat __user *statbuf);
/linux/tools/testing/selftests/landlock/
H A Dfs_test.c1917 struct stat statbuf; in TEST_F_FORK()
1929 ASSERT_EQ(0, fstat(src_fd, &statbuf)); in copy_file()
1930 ASSERT_EQ(statbuf.st_size, in copy_file()
1931 sendfile(dst_fd, src_fd, 0, statbuf.st_size)); in copy_file()
7314 struct stat statbuf; in FIXTURE_TEARDOWN_PARENT()
7326 if (stat(dir_path, &statbuf)) { in FIXTURE_TEARDOWN_PARENT()
7338 if (stat(variant->file_path, &statbuf)) { in layer3_fs_tag_inode()
1924 struct stat statbuf; copy_file() local
7263 struct stat statbuf; FIXTURE_SETUP() local