pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Provide lstat() for Windows.
Date: Sat, 06 Aug 2022 00:52:55 +0000
Message-ID: <E1oK83j-000VPV-Bm@gemulon.postgresql.org> (raw)

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@dunslane.net> (earlier version)
Discussion: https://postgr.es/m/CA%2BhUKGLfOOeyZpm5ByVcAt7x5Pn-%3DxGRNCvgiUPVVzjFLtnY0w%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c5cb8f3b770c043509b61528664bcd805e1777e6

Modified Files
--------------
src/include/port/win32_port.h |  18 ++++++-
src/port/win32stat.c          | 110 ++++++++++++++++++++++++++++++++++++++++--
2 files changed, 123 insertions(+), 5 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1oK83j-000VPV-Bm@gemulon.postgresql.org>
Permalink:  ../E1oK83j-000VPV-Bm@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oK83j-000VPV-Bm@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Provide lstat() for Windows.
  In-Reply-To: <E1oK83j-000VPV-Bm@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox