| /OK3568_Linux_fs/kernel/arch/sparc/kernel/ |
| H A D | sys_sparc32.c | 65 struct compat_stat64 __user *statbuf) in cp_compat_stat64() argument 69 err = put_user(huge_encode_dev(stat->dev), &statbuf->st_dev); in cp_compat_stat64() 70 err |= put_user(stat->ino, &statbuf->st_ino); in cp_compat_stat64() 71 err |= put_user(stat->mode, &statbuf->st_mode); in cp_compat_stat64() 72 err |= put_user(stat->nlink, &statbuf->st_nlink); in cp_compat_stat64() 73 err |= put_user(from_kuid_munged(current_user_ns(), stat->uid), &statbuf->st_uid); in cp_compat_stat64() 74 err |= put_user(from_kgid_munged(current_user_ns(), stat->gid), &statbuf->st_gid); in cp_compat_stat64() 75 err |= put_user(huge_encode_dev(stat->rdev), &statbuf->st_rdev); in cp_compat_stat64() 76 err |= put_user(0, (unsigned long __user *) &statbuf->__pad3[0]); in cp_compat_stat64() 77 err |= put_user(stat->size, &statbuf->st_size); in cp_compat_stat64() [all …]
|
| H A D | systbls.h | 60 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,
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A D | stat.c | 225 static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * statbuf) in cp_old_stat() argument 259 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_old_stat() 263 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument 272 return cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2() 276 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument 285 return cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2() 288 SYSCALL_DEFINE2(fstat, unsigned int, fd, struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument 294 error = cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2() 313 static int cp_new_stat(struct kstat *stat, struct stat __user *statbuf) in cp_new_stat() argument 349 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_new_stat() [all …]
|
| /OK3568_Linux_fs/kernel/tools/power/cpupower/utils/helpers/ |
| H A D | sysfs.c | 55 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()
|
| /OK3568_Linux_fs/kernel/tools/power/cpupower/lib/ |
| H A D | cpuidle.c | 34 struct stat statbuf; in cpuidle_state_file_exists() local 39 if (stat(path, &statbuf) != 0) in cpuidle_state_file_exists() 287 struct stat statbuf; in cpuidle_state_count() local 292 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count() 296 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count() 299 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in cpuidle_state_count()
|
| H A D | cpupower.c | 54 struct stat statbuf; in cpupower_is_cpu_online() local 58 if (stat(path, &statbuf) != 0) in cpupower_is_cpu_online() 66 if (stat(path, &statbuf) != 0) in cpupower_is_cpu_online()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/ |
| H A D | pinning.c | 37 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() 143 err = stat(custpinpath, &statbuf); in test_pinning() 188 err = stat(nopinpath2, &statbuf); in test_pinning() 194 err = stat(pinpath, &statbuf); in test_pinning() 212 err = stat(custpinpath, &statbuf); in test_pinning() 257 err = stat(custpinpath, &statbuf); in test_pinning()
|
| H A D | link_pinning.c | 15 struct stat statbuf = {}; in test_link_pinning_subtest() local 36 err = stat(link_pin_path, &statbuf); in test_link_pinning_subtest()
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/ |
| H A D | sys_ia32.c | 165 struct stat64 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 171 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 176 struct stat64 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 181 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 186 struct stat64 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 191 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 197 struct stat64 __user *, statbuf, int, flag) in COMPAT_SYSCALL_DEFINE4() argument 205 return cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE4()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/splice/ |
| H A D | splice_read.c | 32 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()
|
| /OK3568_Linux_fs/kernel/arch/s390/kernel/ |
| H A D | compat_linux.c | 150 …_SYSCALL_DEFINE2(s390_stat64, const char __user *, filename, struct stat64_emu31 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 155 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 159 …SYSCALL_DEFINE2(s390_lstat64, const char __user *, filename, struct stat64_emu31 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 164 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 168 COMPAT_SYSCALL_DEFINE2(s390_fstat64, unsigned int, fd, struct stat64_emu31 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 173 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 178 struct stat64_emu31 __user *, statbuf, int, flag) in COMPAT_SYSCALL_DEFINE4() argument 186 return cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE4()
|
| H A D | compat_linux.h | 115 long compat_sys_s390_stat64(const char __user *filename, struct stat64_emu31 __user *statbuf); 116 long compat_sys_s390_lstat64(const char __user *filename, struct stat64_emu31 __user *statbuf); 117 long compat_sys_s390_fstat64(unsigned int fd, struct stat64_emu31 __user *statbuf); 118 …at64(unsigned int dfd, const char __user *filename, struct stat64_emu31 __user *statbuf, int flag);
|
| /OK3568_Linux_fs/kernel/arch/arm/kernel/ |
| H A D | sys_oabi-compat.c | 116 struct oldabi_stat64 __user *statbuf) in cp_oldabi_stat64() argument 139 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_oldabi_stat64() 143 struct oldabi_stat64 __user * statbuf) in sys_oabi_stat64() argument 148 error = cp_oldabi_stat64(&stat, statbuf); in sys_oabi_stat64() 153 struct oldabi_stat64 __user * statbuf) in sys_oabi_lstat64() argument 158 error = cp_oldabi_stat64(&stat, statbuf); in sys_oabi_lstat64() 163 struct oldabi_stat64 __user * statbuf) in sys_oabi_fstat64() argument 168 error = cp_oldabi_stat64(&stat, statbuf); in sys_oabi_fstat64() 174 struct oldabi_stat64 __user *statbuf, in sys_oabi_fstatat64() argument 183 return cp_oldabi_stat64(&stat, statbuf); in sys_oabi_fstatat64()
|
| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | util.c | 154 struct stat statbuf; in rm_rf_depth_pat() local 157 ret = lstat(path, &statbuf); in rm_rf_depth_pat() 162 if (!(statbuf.st_mode & S_IFDIR)) in rm_rf_depth_pat() 184 ret = lstat(namebuf, &statbuf); in rm_rf_depth_pat() 190 if (S_ISDIR(statbuf.st_mode)) in rm_rf_depth_pat()
|
| /OK3568_Linux_fs/kernel/scripts/dtc/ |
| H A D | dtc.c | 132 struct stat statbuf; in guess_input_format() local 136 if (stat(fname, &statbuf) != 0) in guess_input_format() 139 if (S_ISDIR(statbuf.st_mode)) in guess_input_format() 142 if (!S_ISREG(statbuf.st_mode)) in guess_input_format()
|
| /OK3568_Linux_fs/u-boot/scripts/dtc/ |
| H A D | dtc.c | 140 struct stat statbuf; in guess_input_format() local 144 if (stat(fname, &statbuf) != 0) in guess_input_format() 147 if (S_ISDIR(statbuf.st_mode)) in guess_input_format() 150 if (!S_ISREG(statbuf.st_mode)) in guess_input_format()
|
| /OK3568_Linux_fs/buildroot/package/mediastreamer/ |
| H A D | 0001-src-videofilters-nowebcam.c-fix-build-without-ffmpeg.patch | 44 if (err != statbuf.st_size) { 45 ms_error("Could not read as much as wanted: %i<>%li !", err, (long)statbuf.st_size); 48 m = jpeg2yuv(jpgbuf,statbuf.st_size,reqsize);
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/nx-gzip/ |
| H A D | gzfht_test.c | 146 struct stat statbuf; in read_alloc_input_file() local 151 if (stat(fname, &statbuf)) { in read_alloc_input_file() 160 assert(NULL != (p = (char *) malloc(statbuf.st_size))); in read_alloc_input_file() 161 num_bytes = fread(p, 1, statbuf.st_size, fp); in read_alloc_input_file() 162 if (ferror(fp) || (num_bytes != statbuf.st_size)) { in read_alloc_input_file()
|
| /OK3568_Linux_fs/buildroot/package/exim/ |
| H A D | 0005-exim_lock-fix-lstat-related-build-errors.patch | 16 if ((statbuf.st_mode & S_IFMT) == S_IFLNK) 20 if ((statbuf.st_mode & S_IFMT) == S_IFLNK)
|
| /OK3568_Linux_fs/kernel/tools/perf/examples/bpf/ |
| H A D | augmented_syscalls.c | 94 struct statbuf; 100 struct stat *statbuf; member
|
| /OK3568_Linux_fs/kernel/arch/um/drivers/ |
| H A D | vector_user.c | 816 struct stat statbuf; in uml_vector_user_bpf() local 822 if (stat(filename, &statbuf) < 0) { in uml_vector_user_bpf() 831 bpf_prog->len = statbuf.st_size / sizeof(struct sock_filter); in uml_vector_user_bpf() 838 bpf = uml_kmalloc(statbuf.st_size, UM_GFP_KERNEL); in uml_vector_user_bpf() 844 res = os_read_file(ffd, bpf, statbuf.st_size); in uml_vector_user_bpf() 845 if (res < statbuf.st_size) { in uml_vector_user_bpf()
|
| /OK3568_Linux_fs/kernel/tools/power/cpupower/utils/ |
| H A D | cpupower.c | 176 struct stat statbuf; in main() local 215 stat(pathname, &statbuf) != 0) { in main()
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-core/udev/eudev/ |
| H A D | Revert-udev-remove-userspace-firmware-loading-suppor.patch | 215 + struct stat statbuf; 255 + if (stat(fwpath, &statbuf) < 0 || statbuf.st_size == 0) { 266 + if (!copy_firmware(udev, fwpath, datapath, statbuf.st_size)) {
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/makedevs/makedevs/ |
| H A D | makedevs.c | 506 struct stat statbuf; in main() local 526 if (fstat(fileno(devtable), &statbuf) < 0) in main() 528 if (statbuf.st_size < 10) in main()
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | syscalls.h | 543 struct stat __user *statbuf, int flag); 544 asmlinkage long sys_newfstat(unsigned int fd, struct stat __user *statbuf); 546 asmlinkage long sys_fstat64(unsigned long fd, struct stat64 __user *statbuf); 548 struct stat64 __user *statbuf, int flag); 1086 struct stat64 __user *statbuf); 1088 struct stat64 __user *statbuf); 1103 struct stat __user *statbuf); 1105 struct stat __user *statbuf); 1218 struct __old_kernel_stat __user *statbuf); 1220 struct __old_kernel_stat __user *statbuf); [all …]
|