[Issue 17666] std.c.linux.socket has no replacement

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Aug 22 14:09:40 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17666

--- Comment #5 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
druntime now has core.sys.freebsd.inet.in_, core.sys.linux.inet.in_, and 
core.sys.darwin.inet.in_ to conver all of the non-POSIX bindings from
netinet/in.h. So, I think that this problem is _mostly_ solved (though
unfortunately, it looks like it just missed making it into 2.076). I think that
some of what's in std.c.linux.socket is from some other header files though,
and some of that still needs to be added to druntime. IP_ADD_MEMBERSHIP is now
there though.

> Was it simply forgotten to be moved to druntime?
> Or what's the story behind std.c.{linux,osx}.socket?

I think that what happened is that since we don't put the OS bindings in Phobos
anymore, it was decided that they should be deprecated, and no effort was made
to verify whether everything that was defined there had actually been added to
druntime yet or not. And AFAIK, no bug reports were opened about the missing
symbols when someone did run into the problem, so the issue didn't get any
attention, and it all just went under the radar.

--


More information about the Digitalmars-d-bugs mailing list