Re: Two very minor win32 patches

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com>, "'pgsql-patches(at)postgresql(dot)org'" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Two very minor win32 patches
Date: 2003-11-11 22:30:50
Message-ID: 200311112230.hABMUop13255@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Bruce Momjian wrote:
> Claudio Natoli wrote:
> > For src/backend/postmaster/postmaster.c and src/include/c.h
> > (Note: should ioctlsocket_ret be initialized to 1 for BEOS too, and can it
> > take an unsigned parameter? If so, could simplify.)
>
> OK, I have updated this for 7.4 and CVS. Any idea why it has to be
> initialized to 1 and not 0?

Never mind --- I figured it out:

FIONBIO
The argp parameter is a pointer to an unsigned long value. Set argp
to a nonzero value if the nonblocking mode should be enabled, or zero if
the nonblocking mode should be disabled. When a socket is created, it
operates in blocking mode by default (nonblocking mode is disabled).
This is consistent with BSD sockets.

argp value Nonblocking mode

0 Disabled
nonzero Enabled

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/ioctlsocket_2.asp

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-11-12 00:18:30 Re: Win32 patch for Makefile.shlib
Previous Message Bruce Momjian 2003-11-11 21:43:04 Re: Two very minor win32 patches