/arch/sparc/kernel/ |
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 …]
|
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,
|
/arch/arm/include/asm/ |
D | syscalls.h | 16 struct oldabi_stat64 __user * statbuf); 18 struct oldabi_stat64 __user * statbuf); 20 struct oldabi_stat64 __user * statbuf); 23 struct oldabi_stat64 __user *statbuf,
|
/arch/x86/kernel/ |
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()
|
/arch/s390/kernel/ |
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()
|
D | compat_linux.h | 86 long compat_sys_s390_stat64(const char __user *filename, struct stat64_emu31 __user *statbuf); 87 long compat_sys_s390_lstat64(const char __user *filename, struct stat64_emu31 __user *statbuf); 88 long compat_sys_s390_fstat64(unsigned int fd, struct stat64_emu31 __user *statbuf); 89 …at64(unsigned int dfd, const char __user *filename, struct stat64_emu31 __user *statbuf, int flag);
|
/arch/arm/kernel/ |
D | sys_oabi-compat.c | 122 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()
|
/arch/um/drivers/ |
D | vector_user.c | 817 struct stat statbuf; in uml_vector_user_bpf() local 823 if (stat(filename, &statbuf) < 0) { in uml_vector_user_bpf() 832 bpf_prog->len = statbuf.st_size / sizeof(struct sock_filter); in uml_vector_user_bpf() 839 bpf = uml_kmalloc(statbuf.st_size, UM_GFP_KERNEL); in uml_vector_user_bpf() 845 res = os_read_file(ffd, bpf, statbuf.st_size); in uml_vector_user_bpf() 846 if (res < statbuf.st_size) { in uml_vector_user_bpf()
|