aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-01-17 14:42:42 +0000
committerRon Yorston <rmy@pobox.com>2023-01-17 14:42:42 +0000
commitdbd187697d1265d345e3e3e8b302a88b04592cc2 (patch)
tree5b9983ad607193c06c7862a80bba1f83ec46be12 /scripts
parent88965fe20a26e17247e6ffc10692fe202d77f1fa (diff)
downloadbusybox-w32-dbd187697d1265d345e3e3e8b302a88b04592cc2.tar.gz
busybox-w32-dbd187697d1265d345e3e3e8b302a88b04592cc2.tar.bz2
busybox-w32-dbd187697d1265d345e3e3e8b302a88b04592cc2.zip
win32: minor improvements to stat(2)
Commit b11352dcb (win32: prevent stat(2) from updating access times) requested GENERIC_ALL access when opening files. It appears that GENERIC_READ is sufficient and also faster. The code to find the actual size of compressed or sparse files only needs to be invoked for regular files. Avoiding unnecessary calls to GetCompressedFileSize() makes stat(2) slightly faster and gives a more accurate number of blocks for symbolic links.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions