25#if defined(WIN32) || defined(__CYGWIN__)
33#if defined(WIN32) || defined(__CYGWIN__)
38#include <w32api/winioctl.h>
42#if defined(WIN32) && !defined(__CYGWIN__)
46#if defined(WIN32) || defined(__CYGWIN__)
52pgrename(
const char *from,
const char *to)
63#if defined(WIN32) && !defined(__CYGWIN__)
66 while (
rename(from, to) < 0)
69#if defined(WIN32) && !defined(__CYGWIN__)
108#if defined(WIN32) && !defined(__CYGWIN__)
153 if (
lstat(path, &st) < 0)
182#define rename(from, to) pgrename(from, to)
183#define unlink(path) pgunlink(path)
187#if defined(WIN32) && !defined(__CYGWIN__)
209#define REPARSE_JUNCTION_DATA_BUFFER_HEADER_SIZE \
210 FIELD_OFFSET(REPARSE_JUNCTION_DATA_BUFFER, SubstituteNameOffset)
284 errmsg(
"could not set junction for \"%s\": %s",
364 errmsg(
"could not get junction for \"%s\": %s",
#define FLEXIBLE_ARRAY_MEMBER
#define fprintf(file, fmt, msg)
int errcode_for_file_access(void)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
void err(int eval, const char *fmt,...)
static char buf[DEFAULT_XLOG_SEG_SIZE]
size_t strlcpy(char *dst, const char *src, size_t siz)
void pg_usleep(long microsec)
void _dosmaperr(unsigned long)
int pgreadlink(const char *path, char *buf, size_t size)
int pgsymlink(const char *oldpath, const char *newpath)
PGDLLIMPORT RtlGetLastNtStatus_t pg_RtlGetLastNtStatus