diff options
| author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2026-02-12 00:00:00 +0000 |
|---|---|---|
| committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2026-02-12 17:38:49 +0500 |
| commit | 839151eaaad24771892afaae6bac690e31e58384 (patch) | |
| tree | e292449d621f7a1d503b975984a2aca240dd2d8f /CPP/Windows/FileFind.cpp | |
| parent | 5e96a8279489832924056b1fa82f29d5837c9469 (diff) | |
| download | 7zip-839151eaaad24771892afaae6bac690e31e58384.tar.gz 7zip-839151eaaad24771892afaae6bac690e31e58384.tar.bz2 7zip-839151eaaad24771892afaae6bac690e31e58384.zip | |
Diffstat (limited to 'CPP/Windows/FileFind.cpp')
| -rw-r--r-- | CPP/Windows/FileFind.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/CPP/Windows/FileFind.cpp b/CPP/Windows/FileFind.cpp index 64075ab..669541e 100644 --- a/CPP/Windows/FileFind.cpp +++ b/CPP/Windows/FileFind.cpp | |||
| @@ -1162,6 +1162,15 @@ void CFileInfoBase::SetFrom_stat(const struct stat &st) | |||
| 1162 | MTime = st.st_mtimespec; | 1162 | MTime = st.st_mtimespec; |
| 1163 | ATime = st.st_atimespec; | 1163 | ATime = st.st_atimespec; |
| 1164 | 1164 | ||
| 1165 | #elif defined(__QNXNTO__) && defined(__ARM__) && !defined(__aarch64__) | ||
| 1166 | |||
| 1167 | // CTime = ST_CTIME(st); | ||
| 1168 | // MTime = ST_MTIME(st); | ||
| 1169 | // ATime = ST_ATIME(st); | ||
| 1170 | CTime.tv_sec = st.st_ctime; CTime.tv_nsec = 0; | ||
| 1171 | MTime.tv_sec = st.st_mtime; MTime.tv_nsec = 0; | ||
| 1172 | ATime.tv_sec = st.st_atime; ATime.tv_nsec = 0; | ||
| 1173 | |||
| 1165 | #else | 1174 | #else |
| 1166 | // timespec_To_FILETIME(st.st_ctim, CTime, &CTime_ns100); | 1175 | // timespec_To_FILETIME(st.st_ctim, CTime, &CTime_ns100); |
| 1167 | // timespec_To_FILETIME(st.st_mtim, MTime, &MTime_ns100); | 1176 | // timespec_To_FILETIME(st.st_mtim, MTime, &MTime_ns100); |
| @@ -1312,7 +1321,7 @@ bool CDirEntry::IsDots() const throw() | |||
| 1312 | /* some systems (like CentOS 7.x on XFS) have (Type == DT_UNKNOWN) | 1321 | /* some systems (like CentOS 7.x on XFS) have (Type == DT_UNKNOWN) |
| 1313 | we can call fstatat() for that case, but we use only (Name) check here */ | 1322 | we can call fstatat() for that case, but we use only (Name) check here */ |
| 1314 | 1323 | ||
| 1315 | #if !defined(_AIX) && !defined(__sun) | 1324 | #if !defined(_AIX) && !defined(__sun) && !defined(__QNXNTO__) |
| 1316 | if (Type != DT_DIR && Type != DT_UNKNOWN) | 1325 | if (Type != DT_DIR && Type != DT_UNKNOWN) |
| 1317 | return false; | 1326 | return false; |
| 1318 | #endif | 1327 | #endif |
| @@ -1352,7 +1361,7 @@ bool CEnumerator::NextAny(CDirEntry &fi, bool &found) | |||
| 1352 | 1361 | ||
| 1353 | fi.iNode = de->d_ino; | 1362 | fi.iNode = de->d_ino; |
| 1354 | 1363 | ||
| 1355 | #if !defined(_AIX) && !defined(__sun) | 1364 | #if !defined(_AIX) && !defined(__sun) && !defined(__QNXNTO__) |
| 1356 | fi.Type = de->d_type; | 1365 | fi.Type = de->d_type; |
| 1357 | /* some systems (like CentOS 7.x on XFS) have (Type == DT_UNKNOWN) | 1366 | /* some systems (like CentOS 7.x on XFS) have (Type == DT_UNKNOWN) |
| 1358 | we can set (Type) from fstatat() in that case. | 1367 | we can set (Type) from fstatat() in that case. |
