| ... | ... | @@ -59,8 +59,8 @@ fstatat64_time64_statx (int fd, const char *file, struct __stat64_t64 *buf, |
| 59 | 59 | return r; |
| 60 | 60 | |
| 61 | 61 | *buf = (struct __stat64_t64) { |
| 62 | | .st_dev = __gnu_dev_makedev (tmp.stx_dev_major, tmp.stx_dev_minor), |
| 63 | | .st_rdev = __gnu_dev_makedev (tmp.stx_rdev_major, tmp.stx_rdev_minor), |
| 62 | .st_dev = gnu_dev_makedev (tmp.stx_dev_major, tmp.stx_dev_minor), |
| 63 | .st_rdev = gnu_dev_makedev (tmp.stx_rdev_major, tmp.stx_rdev_minor), |
| 64 | 64 | .st_ino = tmp.stx_ino, |
| 65 | 65 | .st_mode = tmp.stx_mode, |
| 66 | 66 | .st_nlink = tmp.stx_nlink, |
| ... | ... | @@ -86,6 +86,17 @@ fstatat64_time64_statx (int fd, const char *file, struct __stat64_t64 *buf, |
| 86 | 86 | /* Only statx supports 64-bit timestamps for 32-bit architectures with |
| 87 | 87 | __ASSUME_STATX, so there is no point in building the fallback. */ |
| 88 | 88 | #if !FSTATAT_USE_STATX || (FSTATAT_USE_STATX && !defined __ASSUME_STATX) |
| 89 | static inline struct __timespec64 |
| 90 | valid_timespec_to_timespec64 (const struct timespec ts) |
| 91 | { |
| 92 | struct __timespec64 ts64; |
| 93 | |
| 94 | ts64.tv_sec = ts.tv_sec; |
| 95 | ts64.tv_nsec = ts.tv_nsec; |
| 96 | |
| 97 | return ts64; |
| 98 | } |
| 99 | |
| 89 | 100 | static inline int |
| 90 | 101 | fstatat64_time64_stat (int fd, const char *file, struct __stat64_t64 *buf, |
| 91 | 102 | 		 int flag) |