Sebastian Wilzbach
d1714c9afb
minor style fixes
2016-04-27 04:18:22 +03:00
H. S. Teoh
3f6a69a8eb
Fix missing ')' in std.c.windows.com deprecation message.
2016-01-06 12:18:33 -08:00
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
800506b794
Deprecate last remaining module from std.c and move it to druntime
2014-10-31 12:04:41 -05:00
Joakim
093d636de4
Deprecate std.c.* and move all remaining declarations to core.stdc.*
2014-10-14 09:26:21 -05:00
Denis Shelomovskij
ddffb3d651
Add pure
/nothrow
/@nogc
attributes to std.socket
.
...
Also add `in` parameter storage class to `validHostent` function.
Also add attributes to `std.c.windows.winsock`.
2014-08-05 19:54:39 +04:00
Joakim
dc67efc3c4
Deprecate std.c.string and move its contents to druntime
2014-07-13 12:47:26 -05:00
monarchdodra
001fad4558
Remove trailing whitespaces
2014-05-17 15:35:25 +02:00
Walter Bright
b5695d276d
Merge pull request #2163 from damianday/patch-3
...
Update winsock.d
2014-05-13 16:45:40 -07:00
Damian Day
a550b354ec
Update winsock.d
...
Remove std.stdint from Winsock.
2014-05-13 21:18:51 +01:00
Damian Day
69ddcb26a1
Update winsock.d
...
Oops.
2014-05-13 19:41:35 +01:00
Damian Day
a87c3a9587
Update winsock.d
...
Avoid pulling in all of std.c.windows.windows for Winsock.
Also changed a few conts to enums where appropriate.
2014-05-12 15:41:11 +01:00
Damian Day
ebd424bfd1
Update winsock.d
...
Missing comma.
2014-05-12 14:27:37 +01:00
Damian Day
dc06af72ba
Update winsock.d
...
Update WSA error codes.
2014-05-11 19:47:23 +01:00
Walter Bright
e8cb8cabf8
Windows API functions are nothrow
2014-04-07 12:21:59 -07:00
k-hara
b391b2ec9f
Convert to new alias syntax
2014-02-11 15:27:05 +09:00
Martin Nowak
54e91f266c
add version (Windows): too all windows only sources
2013-07-21 03:34:56 +02:00
Hackerpilot
13a6e6ac5c
Converted C-style array declarations to D-style
2013-07-03 00:06:32 +00:00
k-hara
03a32d6fa4
Fix issue 313 & 314
2013-06-25 08:38:30 +09:00
Sönke Ludwig
9025212dcd
Use atomicOp instead of InterlockedIncrement to fix Win64 linker errors.
2013-04-13 19:31:51 +02:00
Vladimir Panteleev
0e1c228d99
std.c.windows.winsock: Fix servent structure for Win64
2013-02-24 03:51:07 +02:00
Vladimir Panteleev
5dff08ca3c
std.c.windows.winsock: Fix types of SOCKET and socklen_t
2013-02-24 03:17:27 +02:00
JakobOvrum
45f6517ef4
Update COM header with CoInitializeEx
...
`CoInitializeEx` is essential to setting the threading model to multi-threaded.
Multi-threaded COM is ideal in D where threading is safer and synchronization easier.
2012-10-04 23:15:31 +09:00
Daniel Green
58f4356ca2
Change version( Win32 ) to version( Windows ) when Win64 would be supported as well.
2012-01-16 22:10:18 -05:00
Vladimir Panteleev
5fac9e2b5d
std.socket: Failed reverse lookups return null, not throw
2011-09-14 17:01:46 +03:00
Vladimir Panteleev
e9744791dd
std.socket: Add IPV6_V6ONLY SocketOption
2011-09-09 00:43:47 +03:00
Vladimir Panteleev
72490a5d12
std.socket: Add Socket.setKeepAlive for Windows and Linux
2011-09-08 23:57:16 +03:00
Vladimir Panteleev
f8846a4f46
std.socket: More constness
2011-09-08 01:19:01 +03:00
Vladimir Panteleev
cf9c945e71
std.socket: Add getAddressInfo
2011-09-05 22:33:33 +03:00
Vladimir Panteleev
3cc1436133
std.socket: Require hostname when using getnameinfo, for consistency with gethostbyaddr
2011-09-05 16:33:30 +03:00
Vladimir Panteleev
fb9d56f77a
std.c.windows.winsock: const-correctness in API function declarations
2011-08-24 08:33:05 +03:00
Vladimir Panteleev
98ea66eac5
std.c.windows.winsock: add FD_CREATE for allocating fd_sets of arbitrary capacity
2011-08-22 06:44:45 +03:00
Vladimir Panteleev
ef3fd73603
std.c.windows.winsock: fix alignment
2011-08-22 06:22:00 +03: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
955b112d71
Added InternetAddress.toHostNameString() for looking up the host name.
...
I am not particularly fond of the method name, but it follows the existing scheme.
2011-06-15 19:51:33 +02:00
David Nadlinger
e5f81404a7
Use new core.sys.posix.netdb.
2011-06-15 19:51:33 +02:00
Andrei Alexandrescu
d061f13d34
https://github.com/D-Programming-Language/phobos/pull/23
2011-05-01 12:11:46 -05:00
Don Clugston
c0912ecb70
C function pointers -> D syntax
2010-10-02 02:42:48 +00:00
Walter Bright
b8ce58ccd1
detab sources
2010-08-23 02:14:45 +00:00
Andrei Alexandrescu
36da69e048
Added pragma(lib, "uuid")
2010-08-08 01:16:38 +00:00
Shin Fujishiro
4e2d8f30fd
Added FreeBSD code.
2010-05-17 03:02:16 +00:00
Walter Bright
cf644a325a
add shared
2009-05-08 05:00:12 +00:00
Andrei Alexandrescu
058fb734e3
* Added declarations for struct_stat64, stat64, and fstat64.
2009-04-06 19:46:45 +00:00
Sean Kelly
6f7fc647bd
Added sys.posix.sys.types to the list of public imports for ssize_t.
2009-03-30 20:04:19 +00:00
Sean Kelly
035f8f39c1
Resolved differences between Posix and Windows declarations for BSD socket routines by standardizing on the Posix declaration (which is likely the correct one). This required reverting some changes to std.socket and changing the type of SOCKET from uint to int, which shoudl be fine since they're both 4 bytes anyway.
2009-03-26 18:04:44 +00:00
Sean Kelly
0b1bf3b1d5
2009-03-26 15:13:53 +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
Sean Kelly
7de36d8138
Posix targets should now build correctly against the core.stdc chages.
2009-03-25 14:53:41 +00:00