[w32handle] Remove use of w32handle for File, Console, Pipe and Socket (#5283)
authorLudovic Henry <ludovic@xamarin.com>
Sat, 5 Aug 2017 16:51:15 +0000 (12:51 -0400)
committerGitHub <noreply@github.com>
Sat, 5 Aug 2017 16:51:15 +0000 (12:51 -0400)
commit78735091b62b8d7f65da2c83d36ca314a23009f4
tree57888545940cb3ce552ff7ed2402eca28a3974a5
parent508effd434e97733543b77b8bd4831d49d57a5e8
[w32handle] Remove use of w32handle for File, Console, Pipe and Socket (#5283)

* [w32file] Remove io_ops indirection

* [w32file] Replace use of w32handle by a GHashTable for File, Console and Pipe

* [Socket] Avoid relying on MonoIO.DuplicateHandle

* [w32socket] Remove force closing of sockets on shutdown

* fixup! [Socket] Avoid relying on MonoIO.DuplicateHandle

* [w32socket] Replace use of w32handle by a GHashTable

* [w32handle] Remove dead function mono_w32handle_new_fd

* fixup! [w32file] Replace use of w32handle by a GHashTable for File, Console and Pipe

* [w32handle] Remove dead variable mono_w32handle_fd_reserve

* [fdhandle] Factor w32file and w32socket common fdhandle code

* fixup! [Socket] Avoid relying on MonoIO.DuplicateHandle

* [w32socket] Fix GC safe/unsafe transitions

* fixup! [w32handle] Remove dead variable mono_w32handle_fd_reserve
15 files changed:
mcs/class/System/System.Net.Sockets/Socket.cs
mono/metadata/Makefile.am
mono/metadata/fdhandle.c [new file with mode: 0644]
mono/metadata/fdhandle.h [new file with mode: 0644]
mono/metadata/icall-def.h
mono/metadata/w32file-unix.c
mono/metadata/w32file.c
mono/metadata/w32handle.c
mono/metadata/w32handle.h
mono/metadata/w32process-unix.c
mono/metadata/w32socket-internals.h
mono/metadata/w32socket-unix.c
mono/metadata/w32socket-win32.c
mono/metadata/w32socket.c
mono/metadata/w32socket.h