1/*-------------------------------------------------------------------------
4 * Win32 fdatasync() replacement
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
9 * src/port/win32fdatasync.c
11 *-------------------------------------------------------------------------
29 handle = (HANDLE) _get_osfhandle(
fd);
30 if (handle == INVALID_HANDLE_VALUE)
39 memset(&iosb, 0,
sizeof(iosb));
46 if (NT_SUCCESS(status))
static int fd(const char *x, int i)
void _dosmaperr(unsigned long)
PGDLLIMPORT NtFlushBuffersFileEx_t pg_NtFlushBuffersFileEx
int initialize_ntdll(void)
#define FLUSH_FLAGS_FILE_DATA_SYNC_ONLY
PGDLLIMPORT RtlNtStatusToDosError_t pg_RtlNtStatusToDosError