FD_SET Problem
Brad Roberts
braddr at puremagic.com
Mon Feb 7 00:24:06 PST 2011
On 2/6/2011 11:05 PM, Andrew Wiley wrote:
> On Mon, Feb 7, 2011 at 12:33 AM, Brad Roberts <braddr at puremagic.com <mailto:braddr at puremagic.com>> wrote:
>
> On 2/6/2011 9:30 PM, Andrew Wiley wrote:
> > I'm on 64 bit linux (though with a self-built 32 bit DMD), and this testcase is failing for me:
> > import std.stdio;
> > import core.sys.posix.sys.select;
> >
> > int main(string[] args) {
> > fd_set fdset;
> > FD_SET(3, &fdset);
> > assert(FD_ISSET(3, &fdset));
> > return 0;
> > }
> >
> > The same program works perfectly with GDC. Is this a DMD bug, or am I just missing something?
>
> What version of dmd? There was a bug with FD_SET that was fixed w/in the last couple releases.
>
>
> I have 2.51, and it looks like it has the broken version of FD_ISSET shown
> at http://d.puremagic.com/issues/show_bug.cgi?id=5209#c2
>
Sorry, I thought that was long enough ago to have made it into a release. Well, good news, it'll be in the next one. :)
More information about the Digitalmars-d
mailing list