| ... | ... | @@ -53,8 +53,8 @@ fstatat64_time64_statx (int fd, const char *file, struct __stat64_t64 *buf, |
| 53 | 53 | return r; |
| 54 | 54 | |
| 55 | 55 | *buf = (struct __stat64_t64) { |
| 56 | | .st_dev = __gnu_dev_makedev (tmp.stx_dev_major, tmp.stx_dev_minor), |
| 57 | | .st_rdev = __gnu_dev_makedev (tmp.stx_rdev_major, tmp.stx_rdev_minor), |
| 56 | .st_dev = gnu_dev_makedev (tmp.stx_dev_major, tmp.stx_dev_minor), |
| 57 | .st_rdev = gnu_dev_makedev (tmp.stx_rdev_major, tmp.stx_rdev_minor), |
| 58 | 58 | .st_ino = tmp.stx_ino, |
| 59 | 59 | .st_mode = tmp.stx_mode, |
| 60 | 60 | .st_nlink = tmp.stx_nlink, |
| ... | ... | @@ -78,6 +78,17 @@ fstatat64_time64_statx (int fd, const char *file, struct __stat64_t64 *buf, |
| 78 | 78 | /* Only statx supports 64-bit timestamps for 32-bit architectures with |
| 79 | 79 | __ASSUME_STATX, so there is no point in building the fallback. */ |
| 80 | 80 | #if !FSTATAT_USE_STATX || (FSTATAT_USE_STATX && !defined __ASSUME_STATX) |
| 81 | static inline struct __timespec64 |
| 82 | valid_timespec_to_timespec64 (const struct timespec ts) |
| 83 | { |
| 84 | struct __timespec64 ts64; |
| 85 | |
| 86 | ts64.tv_sec = ts.tv_sec; |
| 87 | ts64.tv_nsec = ts.tv_nsec; |
| 88 | |
| 89 | return ts64; |
| 90 | } |
| 91 | |
| 81 | 92 | static inline int |
| 82 | 93 | fstatat64_time64_stat (int fd, const char *file, struct __stat64_t64 *buf, |
| 83 | 94 | 		 int flag) |