Re: Win32 and fsync()

From: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Win32 and fsync()
Date: 2003-02-03 23:03:46
Message-ID: Pine.LNX.4.21.0302041000590.24830-100000@linuxworld.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dann Corbit 2003-02-03 23:24:02 Re: Win32 and fsync()
Previous Message Merlin Moncure 2003-02-03 23:00:26 Re: Win32 and fsync()