Lines Matching refs:p
21 static void stat64_to_hostfs(const struct stat64 *buf, struct hostfs_stat *p) in stat64_to_hostfs() argument
23 p->ino = buf->st_ino; in stat64_to_hostfs()
24 p->mode = buf->st_mode; in stat64_to_hostfs()
25 p->nlink = buf->st_nlink; in stat64_to_hostfs()
26 p->uid = buf->st_uid; in stat64_to_hostfs()
27 p->gid = buf->st_gid; in stat64_to_hostfs()
28 p->size = buf->st_size; in stat64_to_hostfs()
29 p->atime.tv_sec = buf->st_atime; in stat64_to_hostfs()
30 p->atime.tv_nsec = 0; in stat64_to_hostfs()
31 p->ctime.tv_sec = buf->st_ctime; in stat64_to_hostfs()
32 p->ctime.tv_nsec = 0; in stat64_to_hostfs()
33 p->mtime.tv_sec = buf->st_mtime; in stat64_to_hostfs()
34 p->mtime.tv_nsec = 0; in stat64_to_hostfs()
35 p->blksize = buf->st_blksize; in stat64_to_hostfs()
36 p->blocks = buf->st_blocks; in stat64_to_hostfs()
37 p->rdev.maj = os_major(buf->st_rdev); in stat64_to_hostfs()
38 p->rdev.min = os_minor(buf->st_rdev); in stat64_to_hostfs()
39 p->dev.maj = os_major(buf->st_dev); in stat64_to_hostfs()
40 p->dev.min = os_minor(buf->st_dev); in stat64_to_hostfs()
43 int stat_file(const char *path, struct hostfs_stat *p, int fd) in stat_file() argument
53 stat64_to_hostfs(&buf, p); in stat_file()