Re: Win32 and fsync() - Mailing list pgsql-hackers

From Gavin Sherry
Subject Re: Win32 and fsync()
Date
Msg-id Pine.LNX.4.21.0302041000590.24830-100000@linuxworld.com.au
Whole thread Raw
In response to Re: Win32 and fsync()  ("Andrew Dunstan" <andrew@dunslane.net>)
List pgsql-hackers
On Mon, 3 Feb 2003, Andrew Dunstan wrote:

> I'm also fairly sure I saw something like
>     #define fsync _commit
> in the Berkeley DB sources the other day, which might be a clue.
> 
> I'll be happy to be corrected, though.

You'd be right:

/** Win32 has fsync, getcwd, snprintf and vsnprintf, but under different names.*/
#define fsync(fd)       _commit(fd)

Funny Win32-ism

Still not sure if it has the same semantics as Unix fsync() but sleepycat
(Berkeley) DB seems to think so.

Gavin



pgsql-hackers by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: Win32 and fsync()
Next
From: "Dann Corbit"
Date:
Subject: Re: Win32 and fsync()