| ... | @@ -53,8 +53,8 @@ fstatat64_time64_statx (int fd, const char *file, struct __stat64_t64 *buf, | ... | @@ -53,8 +53,8 @@ fstatat64_time64_statx (int fd, const char *file, struct __stat64_t64 *buf, |
| 53 | return r; | 53 | return r; |
| 54 | | 54 | |
| 55 | *buf = (struct __stat64_t64) { | 55 | *buf = (struct __stat64_t64) { |
| 56 | .st_dev = __gnu_dev_makedev (tmp.stx_dev_major, tmp.stx_dev_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), | 57 | .st_rdev = gnu_dev_makedev (tmp.stx_rdev_major, tmp.stx_rdev_minor), |
| 58 | .st_ino = tmp.stx_ino, | 58 | .st_ino = tmp.stx_ino, |
| 59 | .st_mode = tmp.stx_mode, | 59 | .st_mode = tmp.stx_mode, |
| 60 | .st_nlink = tmp.stx_nlink, | 60 | .st_nlink = tmp.stx_nlink, |
| ... | @@ -74,6 +74,17 @@ fstatat64_time64_statx (int fd, const char *file, struct __stat64_t64 *buf, | ... | @@ -74,6 +74,17 @@ fstatat64_time64_statx (int fd, const char *file, struct __stat64_t64 *buf, |
| 74 | return r; | 74 | return r; |
| 75 | } | 75 | } |
| 76 | | 76 | |
| | 77 | static inline struct __timespec64 |
| | 78 | valid_timespec_to_timespec64 (const struct timespec ts) |
| | 79 | { |
| | 80 | struct __timespec64 ts64; |
| | 81 | |
| | 82 | ts64.tv_sec = ts.tv_sec; |
| | 83 | ts64.tv_nsec = ts.tv_nsec; |
| | 84 | |
| | 85 | return ts64; |
| | 86 | } |
| | 87 | |
| 77 | static inline int | 88 | static inline int |
| 78 | fstatat64_time64_stat (int fd, const char *file, struct __stat64_t64 *buf, | 89 | fstatat64_time64_stat (int fd, const char *file, struct __stat64_t64 *buf, |
| 79 | 		 int flag) | 90 | 		 int flag) |