Re: fsync with sync, and Win32 unlink

From: Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com>
To: Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com>, 'Tom Lane' <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: 'Bruce Momjian' <pgman(at)candle(dot)pha(dot)pa(dot)us>, 'PostgreSQL Win32 port list' <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: fsync with sync, and Win32 unlink
Date: 2004-03-13 11:26:01
Message-ID: A02DEC4D1073D611BAE8525405FCCE2B55F37D@harris.memetrics.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32


> I'll play with it a bit more, and pending any major flaws
> I'll submit a patch in the near future.

Speaking of which, I'm formatting up a patch now, and was intending to do:

#ifdef WIN32
extern int win32_pgopen(const char*,int,int);
#define open(a,b,c) win32_pgopen(a,b,c)
#endif

However, we also call open in some places with 2 arguments, which breaks
this approach. I'm also loathe to do:

#define open win32_pgopen

for reasons which should be obvious.

Work-around anyone?

Cheers,
Claudio

---
Certain disclaimers and policies apply to all email sent from Memetrics.
For the full text of these disclaimers and policies see
<a
href="http://www.memetrics.com/emailpolicy.html">http://www.memetrics.com/em
ailpolicy.html</a>

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Claudio Natoli 2004-03-13 11:34:12 Re: fsync with sync, and Win32 unlink
Previous Message Claudio Natoli 2004-03-13 05:07:34 Re: fsync with sync, and Win32 unlink