From c691d09dc17c2a01e03767257e85743345a095fc Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 1 Oct 2002 15:26:39 +0000 Subject: * ext/socket/socket.c (init_sock): no need for special finalizer, socket descriptor is no longer duplicated in 1.7. [ruby-talk:50732] * win32/win32.c, win32/win32.h (rb_w32_fddup, rb_w32_fdclose): delete. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'win32/win32.c') 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 -- cgit v1.2.3