[w32handle] Remove use of w32handle for File, Console, Pipe and Socket (#5319)
authorLudovic Henry <ludovic@xamarin.com>
Mon, 7 Aug 2017 13:52:12 +0000 (15:52 +0200)
committerGitHub <noreply@github.com>
Mon, 7 Aug 2017 13:52:12 +0000 (15:52 +0200)
commitbf3ac1d7fc45eb32c799e6fb185695c3ee2baef5
treec405348b42e13e2ed537e303009c41e2296c3f25
parent7845ed2d9122365d40eaf9a27eb695bd9915a124
[w32handle] Remove use of w32handle for File, Console, Pipe and Socket (#5319)

* [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