Provide lstat() for Windows.
authorThomas Munro <[email protected]>
Sat, 6 Aug 2022 00:00:57 +0000 (12:00 +1200)
committerAndrew Dunstan <[email protected]>
Thu, 7 Nov 2024 23:15:58 +0000 (09:45 +1030)
commitee219102d2e76d3e7277ac1a7ddda7757737b31b
treee01bd5d3f9467aaf5dfca0e1ec23ce3f2cfe57af
parentfa56aa23fad3c27f4553025206afa8ba2500347f
Provide lstat() for Windows.

Junction points will be reported with S_ISLNK(x.st_mode), simulating
POSIX lstat().  stat() will follow pseudo-symlinks, like in POSIX (but
only one level before giving up, unlike in POSIX).

This completes a TODO left by commit bed90759fcb.

Tested-by: Andrew Dunstan <[email protected]> (earlier version)
Discussion: https://postgr.es/m/CA%2BhUKGLfOOeyZpm5ByVcAt7x5Pn-%3DxGRNCvgiUPVVzjFLtnY0w%40mail.gmail.com
(cherry picked from commit c5cb8f3b770c043509b61528664bcd805e1777e6)

Author: Thomas Munro <[email protected]>
Author: Alexandra Wang <[email protected]>
src/include/port/win32_port.h
src/port/win32stat.c