Lines Matching defs:stat
34 #include <linux/stat.h>
126 static int cp_stat64(struct stat64_emu31 __user *ubuf, struct kstat *stat)
132 tmp.st_dev = huge_encode_dev(stat->dev);
133 tmp.st_ino = stat->ino;
134 tmp.__st_ino = (u32)stat->ino;
135 tmp.st_mode = stat->mode;
136 tmp.st_nlink = (unsigned int)stat->nlink;
137 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid);
138 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid);
139 tmp.st_rdev = huge_encode_dev(stat->rdev);
140 tmp.st_size = stat->size;
141 tmp.st_blksize = (u32)stat->blksize;
142 tmp.st_blocks = (u32)stat->blocks;
143 tmp.st_atime = (u32)stat->atime.tv_sec;
144 tmp.st_mtime = (u32)stat->mtime.tv_sec;
145 tmp.st_ctime = (u32)stat->ctime.tv_sec;
152 struct kstat stat;
153 int ret = vfs_stat(filename, &stat);
155 ret = cp_stat64(statbuf, &stat);
161 struct kstat stat;
162 int ret = vfs_lstat(filename, &stat);
164 ret = cp_stat64(statbuf, &stat);
170 struct kstat stat;
171 int ret = vfs_fstat(fd, &stat);
173 ret = cp_stat64(statbuf, &stat);
180 struct kstat stat;
183 error = vfs_fstatat(dfd, filename, &stat, flag);
186 return cp_stat64(statbuf, &stat);