diff options
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/win32/win32.c b/win32/win32.c index 2a39de2ae8..89b41af33d 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1472,28 +1472,6 @@ is_socket(SOCKET fd) return result; } -int -rb_w32_fddup (int fd) -{ - SOCKET s = TO_SOCKET(fd); - - if (s == -1) - return -1; - - RUBY_CRITICAL(fd = rb_w32_open_osfhandle(s, O_RDWR|O_BINARY)); - return fd; -} - - -void -rb_w32_fdclose(FILE *fp) -{ - RUBY_CRITICAL({ - STHREAD_ONLY(_free_osfhnd(fileno(fp))); - fclose(fp); - }); -} - // // Since the errors returned by the socket error function // WSAGetLastError() are not known by the library routine strerror |