User data of epoll event is reported abnormally by epoll_wait.
Daniel Murphy via Digitalmars-d
digitalmars-d at puremagic.com
Wed Aug 20 07:07:28 PDT 2014
"blake kim" wrote in message news:slmejjrekoahgbmtitpo at forum.dlang.org...
> In my investigation, this problem appears by memory align mismatch.
>
> In C, sizeof(epoll_event) is 12 but D tells this is
> 16.(epoll_event.sizeof)
With default alignment, the D layout must match the C layout. I've fun a
fuzz-tester on this on linux64, so you can be reasonable confident DMD will
behave correctly for structs containing basic types.
More information about the Digitalmars-d
mailing list