aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-07-09 08:48:52 +0100
committerRon Yorston <rmy@pobox.com>2020-07-09 08:48:52 +0100
commitea3041f90d719e1f14c6149759a56af78dbae101 (patch)
treefac9ded6c2fe68bcae589582fc78e229c145dd88 /include
parent0ed071907c1a1e7bab8c0e808a053b907b20783c (diff)
downloadbusybox-w32-ea3041f90d719e1f14c6149759a56af78dbae101.tar.gz
busybox-w32-ea3041f90d719e1f14c6149759a56af78dbae101.tar.bz2
busybox-w32-ea3041f90d719e1f14c6149759a56af78dbae101.zip
win32: return raw file attributes in struct mingw_stat
Until now the emulated stat(2) system calls have only returned a synthesised Unix-style mode value. Also return the raw Windows file attributes.
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h
index e2d6299b9..c411a8106 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -327,6 +327,7 @@ struct mingw_stat {
327 struct timespec st_ctim; 327 struct timespec st_ctim;
328 blksize_t st_blksize; 328 blksize_t st_blksize;
329 blkcnt_t st_blocks; 329 blkcnt_t st_blocks;
330 DWORD st_attr;
330}; 331};
331#define st_atime st_atim.tv_sec 332#define st_atime st_atim.tv_sec
332#define st_mtime st_mtim.tv_sec 333#define st_mtime st_mtim.tv_sec