www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/09/20/00:20:57

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: RE: Problem with select()
20 Sep 1998 00:20:57 -0700 :
Message-ID: <Pine.SUN.3.93.980920014817.28449B-100000.cygnus.cygwin32.developers@modi.xraylith.wisc.edu>
References: <01BDE47F DOT 94722510 AT sos>
Mime-Version: 1.0
To: Sergey Okhapkin <sos AT prospect DOT com DOT ru>
Cc: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>,
"'Christopher Faylor'" <cgf AT cygnus DOT com>

On Sun, 20 Sep 1998, Sergey Okhapkin wrote:

> Christopher Faylor wrote:
> > Ok.  I played with this a little.  This seems to fix things.  I don't 
> know
> > why.  I just did it for debugging purposes and everything started 
> working.
> >
> > -#define WINSOCK_FD_ZERO(set) ((set)->fd_count=0)
> > +#define WINSOCK_FD_ZERO(set) memset ((set), 0, sizeof (*(set)))
> 
> Hmmm... That works for me too! What is default structure members alignment 
> for i586 in egcs-1.1? 8 byte alignment explains the problem! Does egcs 1.1 
> support
> #pragms pack(4) or something similar?

My version, which includes Nick Clifton's pragma patches, does. Looks like
Geoffrey has added them to b20alpha as well, even though the ChangeLog
doesn't show.

Regards,
Mumit

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019