/linux-4.4.14/arch/sparc/kernel/ |
D | sys_sparc32.c | 71 struct compat_stat64 __user *statbuf) in cp_compat_stat64() argument 75 err = put_user(huge_encode_dev(stat->dev), &statbuf->st_dev); in cp_compat_stat64() 76 err |= put_user(stat->ino, &statbuf->st_ino); in cp_compat_stat64() 77 err |= put_user(stat->mode, &statbuf->st_mode); in cp_compat_stat64() 78 err |= put_user(stat->nlink, &statbuf->st_nlink); in cp_compat_stat64() 79 err |= put_user(from_kuid_munged(current_user_ns(), stat->uid), &statbuf->st_uid); in cp_compat_stat64() 80 err |= put_user(from_kgid_munged(current_user_ns(), stat->gid), &statbuf->st_gid); in cp_compat_stat64() 81 err |= put_user(huge_encode_dev(stat->rdev), &statbuf->st_rdev); in cp_compat_stat64() 82 err |= put_user(0, (unsigned long __user *) &statbuf->__pad3[0]); in cp_compat_stat64() 83 err |= put_user(stat->size, &statbuf->st_size); in cp_compat_stat64() [all …]
|
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,
|
/linux-4.4.14/fs/ |
D | stat.c | 140 static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * statbuf) in cp_old_stat() argument 174 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_old_stat() 178 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument 187 return cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2() 191 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument 200 return cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2() 203 SYSCALL_DEFINE2(fstat, unsigned int, fd, struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument 209 error = cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2() 229 static int cp_new_stat(struct kstat *stat, struct stat __user *statbuf) in cp_new_stat() argument 263 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_new_stat() [all …]
|
D | compat.c | 163 struct compat_stat __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 171 return cp_compat_stat(&stat, statbuf); in COMPAT_SYSCALL_DEFINE2() 175 struct compat_stat __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 183 return cp_compat_stat(&stat, statbuf); in COMPAT_SYSCALL_DEFINE2() 189 struct compat_stat __user *, statbuf, int, flag) in COMPAT_SYSCALL_DEFINE4() argument 197 return cp_compat_stat(&stat, statbuf); in COMPAT_SYSCALL_DEFINE4() 202 struct compat_stat __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 208 error = cp_compat_stat(&stat, statbuf); in COMPAT_SYSCALL_DEFINE2()
|
/linux-4.4.14/tools/power/cpupower/utils/helpers/ |
D | sysfs.c | 56 struct stat statbuf; in sysfs_is_cpu_online() local 60 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online() 68 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online() 109 struct stat statbuf; in sysfs_idlestate_file_exists() local 114 if (stat(path, &statbuf) != 0) in sysfs_idlestate_file_exists() 358 struct stat statbuf; in sysfs_get_idlestate_count() local 363 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count() 367 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count() 370 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in sysfs_get_idlestate_count()
|
/linux-4.4.14/arch/x86/ia32/ |
D | sys_ia32.c | 99 struct stat64 __user *statbuf) in sys32_stat64() argument 105 ret = cp_stat64(statbuf, &stat); in sys32_stat64() 110 struct stat64 __user *statbuf) in sys32_lstat64() argument 115 ret = cp_stat64(statbuf, &stat); in sys32_lstat64() 119 asmlinkage long sys32_fstat64(unsigned int fd, struct stat64 __user *statbuf) in sys32_fstat64() argument 124 ret = cp_stat64(statbuf, &stat); in sys32_fstat64() 129 struct stat64 __user *statbuf, int flag) in sys32_fstatat() argument 137 return cp_stat64(statbuf, &stat); in sys32_fstatat()
|
/linux-4.4.14/arch/arm/kernel/ |
D | sys_oabi-compat.c | 118 struct oldabi_stat64 __user *statbuf) in cp_oldabi_stat64() argument 141 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_oldabi_stat64() 145 struct oldabi_stat64 __user * statbuf) in sys_oabi_stat64() argument 150 error = cp_oldabi_stat64(&stat, statbuf); in sys_oabi_stat64() 155 struct oldabi_stat64 __user * statbuf) in sys_oabi_lstat64() argument 160 error = cp_oldabi_stat64(&stat, statbuf); in sys_oabi_lstat64() 165 struct oldabi_stat64 __user * statbuf) in sys_oabi_fstat64() argument 170 error = cp_oldabi_stat64(&stat, statbuf); in sys_oabi_fstat64() 176 struct oldabi_stat64 __user *statbuf, in sys_oabi_fstatat64() argument 185 return cp_oldabi_stat64(&stat, statbuf); in sys_oabi_fstatat64()
|
/linux-4.4.14/arch/s390/kernel/ |
D | compat_linux.h | 114 long compat_sys_s390_stat64(const char __user *filename, struct stat64_emu31 __user *statbuf); 115 long compat_sys_s390_lstat64(const char __user *filename, struct stat64_emu31 __user *statbuf); 116 long compat_sys_s390_fstat64(unsigned int fd, struct stat64_emu31 __user *statbuf); 117 …at64(unsigned int dfd, const char __user *filename, struct stat64_emu31 __user *statbuf, int flag);
|
D | compat_linux.c | 382 …_SYSCALL_DEFINE2(s390_stat64, const char __user *, filename, struct stat64_emu31 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 387 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 391 …SYSCALL_DEFINE2(s390_lstat64, const char __user *, filename, struct stat64_emu31 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 396 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 400 COMPAT_SYSCALL_DEFINE2(s390_fstat64, unsigned int, fd, struct stat64_emu31 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 405 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 410 struct stat64_emu31 __user *, statbuf, int, flag) in COMPAT_SYSCALL_DEFINE4() argument 418 return cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE4()
|
/linux-4.4.14/tools/power/cpupower/utils/ |
D | cpupower.c | 175 struct stat statbuf; in main() local 206 stat("/dev/cpu/0/msr", &statbuf) != 0) { in main()
|
/linux-4.4.14/include/linux/ |
D | syscalls.h | 395 struct __old_kernel_stat __user *statbuf); 404 struct __old_kernel_stat __user *statbuf); 406 struct __old_kernel_stat __user *statbuf); 408 struct stat __user *statbuf); 410 struct stat __user *statbuf); 411 asmlinkage long sys_newfstat(unsigned int fd, struct stat __user *statbuf); 415 struct stat64 __user *statbuf); 416 asmlinkage long sys_fstat64(unsigned long fd, struct stat64 __user *statbuf); 418 struct stat64 __user *statbuf); 420 struct stat64 __user *statbuf, int flag); [all …]
|
D | compat.h | 484 struct compat_stat __user *statbuf); 486 struct compat_stat __user *statbuf); 489 struct compat_stat __user *statbuf, 492 struct compat_stat __user *statbuf);
|
/linux-4.4.14/tools/perf/util/ |
D | util.c | 86 struct stat statbuf; in rm_rf() local 94 ret = stat(namebuf, &statbuf); in rm_rf() 100 if (S_ISREG(statbuf.st_mode)) in rm_rf() 102 else if (S_ISDIR(statbuf.st_mode)) in rm_rf()
|
/linux-4.4.14/arch/tile/include/asm/ |
D | syscalls.h | 54 long sys_fstat64(unsigned long fd, struct stat64 __user *statbuf);
|
/linux-4.4.14/drivers/isdn/pcbit/ |
D | drv.c | 701 static char statbuf[STATBUF_LEN]; variable 719 if (copy_to_user(buf, statbuf + stat_st, len)) in pcbit_stat() 727 if (copy_to_user(buf, statbuf + stat_st, in pcbit_stat() 730 if (copy_to_user(buf, statbuf, in pcbit_stat() 738 if (copy_to_user(buf, statbuf + stat_st, len)) in pcbit_stat() 761 statbuf[i] = str[i]; in pcbit_logstat()
|
/linux-4.4.14/tools/power/cpupower/lib/ |
D | sysfs.c | 662 struct stat statbuf; in sysfs_cpu_exists() local 666 if (stat(file, &statbuf) != 0) in sysfs_cpu_exists() 669 return S_ISDIR(statbuf.st_mode) ? 0 : -ENOSYS; in sysfs_cpu_exists()
|
/linux-4.4.14/drivers/net/ethernet/dec/tulip/ |
D | de4x5.c | 5411 struct pkt_stats statbuf; in de4x5_ioctl() local 5412 ioc->len = sizeof(statbuf); in de4x5_ioctl() 5414 memcpy(&statbuf, &lp->pktStats, ioc->len); in de4x5_ioctl() 5416 if (copy_to_user(ioc->data, &statbuf, ioc->len)) in de4x5_ioctl()
|