|
@@ -19,6 +19,7 @@ int statx(int dirfd, const char *restrict path, int flags, unsigned mask, struct
|
|
ret = fstatat(dirfd, path, &st, flags);
|
|
ret = fstatat(dirfd, path, &st, flags);
|
|
if (ret) return ret;
|
|
if (ret) return ret;
|
|
|
|
|
|
|
|
+ *stx = (struct statx){0};
|
|
stx->stx_dev_major = major(st.st_dev);
|
|
stx->stx_dev_major = major(st.st_dev);
|
|
stx->stx_dev_minor = minor(st.st_dev);
|
|
stx->stx_dev_minor = minor(st.st_dev);
|
|
stx->stx_rdev_major = major(st.st_rdev);
|
|
stx->stx_rdev_major = major(st.st_rdev);
|
|
@@ -37,7 +38,6 @@ int statx(int dirfd, const char *restrict path, int flags, unsigned mask, struct
|
|
stx->stx_mtime.tv_nsec = st.st_mtim.tv_nsec;
|
|
stx->stx_mtime.tv_nsec = st.st_mtim.tv_nsec;
|
|
stx->stx_ctime.tv_sec = st.st_ctim.tv_sec;
|
|
stx->stx_ctime.tv_sec = st.st_ctim.tv_sec;
|
|
stx->stx_ctime.tv_nsec = st.st_ctim.tv_nsec;
|
|
stx->stx_ctime.tv_nsec = st.st_ctim.tv_nsec;
|
|
- stx->stx_btime = (struct statx_timestamp){.tv_sec=0, .tv_nsec=0};
|
|
|
|
stx->stx_mask = STATX_BASIC_STATS;
|
|
stx->stx_mask = STATX_BASIC_STATS;
|
|
|
|
|
|
return 0;
|
|
return 0;
|