"blake kim"  wrote in message news:[email protected]...

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.

Reply via email to