digitalmars.D - FD_SET Problem
- Andrew Wiley <debio264 gmail.com> Feb 06 2011
--20cf3054a66bf6ebbe049baa858d
Content-Type: text/plain; charset=ISO-8859-1
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?
--20cf3054a66bf6ebbe049baa858d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I'm on 64 bit linux (though with a self-built 32 bit DMD), and this tes=
tcase is failing for me:<div><div>import std.stdio;</div><div>import core.s=
ys.posix.sys.select;</div><div><br></div><div>int main(string[] args) {</di=
v>
<div>=A0=A0 fd_set fdset;</div><div>=A0=A0 FD_SET(3, &fdset);</div><div=
=A0=A0 assert(FD_ISSET(3, &fdset));</div><div>=A0=A0 return 0;</div><d=
DC. Is this a DMD bug, or am I just missing something?</div>
--20cf3054a66bf6ebbe049baa858d--
Feb 06 2011








Andrew Wiley <debio264 gmail.com>