Lines Matching refs:statx
23 #include <linux/stat.h> /* for statx() */
982 * int statx(int fd, const char *path, int flags, unsigned int mask, struct statx *buf);
987 int sys_statx(int fd, const char *path, int flags, unsigned int mask, struct statx *buf)
997 int statx(int fd, const char *path, int flags, unsigned int mask, struct statx *buf)
1006 struct statx statx;
1009 ret = __sysret(sys_statx(AT_FDCWD, path, AT_NO_AUTOMOUNT, STATX_BASIC_STATS, &statx));
1013 buf->st_dev = ((statx.stx_dev_minor & 0xff)
1014 | (statx.stx_dev_major << 8)
1015 | ((statx.stx_dev_minor & ~0xff) << 12));
1016 buf->st_ino = statx.stx_ino;
1017 buf->st_mode = statx.stx_mode;
1018 buf->st_nlink = statx.stx_nlink;
1019 buf->st_uid = statx.stx_uid;
1020 buf->st_gid = statx.stx_gid;
1021 buf->st_rdev = ((statx.stx_rdev_minor & 0xff)
1022 | (statx.stx_rdev_major << 8)
1023 | ((statx.stx_rdev_minor & ~0xff) << 12));
1024 buf->st_size = statx.stx_size;
1025 buf->st_blksize = statx.stx_blksize;
1026 buf->st_blocks = statx.stx_blocks;
1027 buf->st_atim.tv_sec = statx.stx_atime.tv_sec;
1028 buf->st_atim.tv_nsec = statx.stx_atime.tv_nsec;
1029 buf->st_mtim.tv_sec = statx.stx_mtime.tv_sec;
1030 buf->st_mtim.tv_nsec = statx.stx_mtime.tv_nsec;
1031 buf->st_ctim.tv_sec = statx.stx_ctime.tv_sec;
1032 buf->st_ctim.tv_nsec = statx.stx_ctime.tv_nsec;