Modern C compilers incompatible with modern C sockets APIhttps://twitter.com/spun_off/status/750601013791432704 …
-
-
Replying to @fanf
@antumbral This is really not true. In the modern sockets API you never dereference any sockaddrs. struct sockaddr * is an opaque type1 reply 0 retweets 0 likes -
Replying to @RichFelker @antumbral
the problem occurs with low-level address manipulation when you can't treat it as a unit https://tools.ietf.org/html/rfc3493
2 replies 0 retweets 1 like -
Replying to @fanf @antumbral
Then you just use memcpy rather than buggy type-punning hacks.
2 replies 0 retweets 0 likes -
Replying to @RichFelker @antumbral
it's worth re-reading the ANSI C rationale before saying it's ok for old working code to be broken by new compilers
2 replies 0 retweets 1 like
Replying to @fanf @antumbral
Honestly I would prefer that only ultimate member types, not struct/union types, be subject to effective type rules...
3:14 PM - 6 Jul 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.