Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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>

pgsql-hackers-win32 by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group