> > "Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
> >> /* Unable to get shared memory */
> >>+ errno = GetLastError();
> > Aren't you going to need a mapping function to convert
> Windows error
> > codes to errno numbers? Don't tell me Microsoft was smart
> enough to
> > make them the same ;-)
> How about the idea to set errno to a special value after all
> non-posix calls, which makes ereport examine/preserve
> GetLastError() instead?
We could do this, but that means we need to hack the whole error stack
handlign etc to save the value of GetLastError() as well as errno. But
yeah, we could do that.
Not sure if we need to do it after all calls though - probably enough to
do it only after the ones where there is actually a ereport() call with
%m nearby (or when we're emulating a unix function such as in shmget()).
Tom - which method do you think is best to go with?
pgsql-hackers-win32 by date
|Next:||From: Marc G. Fournier||Date: 2004-08-24 11:50:44|
|Subject: Re: pgsql-server: Update that 8.0 will support MS Win|
|Previous:||From: Magnus Hagander||Date: 2004-08-24 07:29:37|
|Subject: Re: PostgreSQL Service|