Commit graph

8 commits

Author SHA1 Message Date
Jonathan M Davis
0899d9403f Move deprecations along.
This includes deprecating std.c.*, which apparently was marked as
scheduled for deprecation in 2.068 but never actually deprecated (though
it looks like it was previously removed from the documentation build,
since it doesn't show up on dlang.org).
2015-12-30 00:18:53 -08:00
Martin Nowak
ba73c921de add version blocks for OS specific files 2015-01-06 19:31:58 +01:00
Vladimir Panteleev
d1f2b64b0d Temporarily replace new deprecations with comments
Removes deprecations added in 093d636de4
2015-01-04 15:52:05 +00:00
Joakim
093d636de4 Deprecate std.c.* and move all remaining declarations to core.stdc.* 2014-10-14 09:26:21 -05:00
David Nadlinger
5ae54cbf5d Disable SIGPIPE on send()ing to a Socket on OS X.
Previously, std.socket code assumed that MSG_NOSIGNAL existed on all platforms, which is not the case – std.c.osx.socket actually has a comment saying »Not defined in OS X, but we'll use them anyway«. This lead to Socket.send() raising SIGPIPE on OS X if the peer had already closed the connection.

With this commit, std.socket sets the SO_NOSIGPIPE socket option on systems that support it for the same effect as MSG_NOSIGNAL on Linux.

Strictly speaking, removing the NOSIGNAL SocketFlag is a breaking API change, but I do not think there is any code actually using it, as it has always been set implicitly by std.socket anyway.
2011-07-05 15:33:07 +02:00
David Nadlinger
e5f81404a7 Use new core.sys.posix.netdb. 2011-06-15 19:51:33 +02:00
Walter Bright
b8ce58ccd1 detab sources 2010-08-23 02:14:45 +00:00
Sean Kelly
e108928d21 * Modified all std modules to use core.sys.posix in place of std.c.linux.
* Transformed std.c.linux.* into wrappers around core.sys.posix modules where appropriate.
* Added std.c.osx as the OSX equivalent of std.c.linux.
* Added std.c.osx.socket for OSX-specific socket declarations not covered by the Posix spec.
* Altered all makefiles to zip, etc, the new std.c.osx package.
2009-03-26 03:02:32 +00:00