| From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Provide lstat() for Windows. |
| Date: | 2024-11-07 23:19:39 |
| Message-ID: | E1t9Bms-000hQG-Ls@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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 <andrew(at)dunslane(dot)net> (earlier version)
Discussion: https://postgr.es/m/CA%2BhUKGLfOOeyZpm5ByVcAt7x5Pn-%3DxGRNCvgiUPVVzjFLtnY0w%40mail.gmail.com
(cherry picked from commit c5cb8f3b770c043509b61528664bcd805e1777e6)
Author: Thomas Munro <tmunro(at)postgresql(dot)org>
Author: Alexandra Wang <alexandra(dot)wang(dot)oss(at)gmail(dot)com>
Branch
------
REL_14_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/895f23d9e174897a9c1a71a2c6cdb439fe5a3101
Author: Thomas Munro <tmunro(at)postgresql(dot)org>
Modified Files
--------------
src/include/port/win32_port.h | 18 ++++++-
src/port/win32stat.c | 110 ++++++++++++++++++++++++++++++++++++++++--
2 files changed, 123 insertions(+), 5 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Richard Guo | 2024-11-08 02:25:45 | pgsql: Fix inconsistent RestrictInfo serial numbers |
| Previous Message | Andrew Dunstan | 2024-11-07 23:19:38 | pgsql: Provide lstat() for Windows. |