summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-01 15:26:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-01 15:26:39 +0000
commitb5423e44726480a04a82dc32374783d74ac470cb (patch)
tree331c885ef37458a1da345404bdfd77d8ccb470a0 /win32
parent992a1f12eec0411ba46a2547abd8a90d4caf6015 (diff)
downloadruby-b5423e44726480a04a82dc32374783d74ac470cb.tar.gz
ruby-b5423e44726480a04a82dc32374783d74ac470cb.tar.xz
ruby-b5423e44726480a04a82dc32374783d74ac470cb.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@2916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c22
-rw-r--r--win32/win32.h2
2 files changed, 0 insertions, 24 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 2a39de2ae..89b41af33 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
diff --git a/win32/win32.h b/win32/win32.h
index 23bac71fb..31a3f0734 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -161,8 +161,6 @@ extern char * NtGetLib(void);
extern char * NtGetBin(void);
extern pid_t pipe_exec(char *, int, FILE **, FILE **);
extern int flock(int fd, int oper);
-extern int rb_w32_fddup(int);
-extern void rb_w32_fdclose(FILE *);
extern int rb_w32_accept(int, struct sockaddr *, int *);
extern int rb_w32_bind(int, struct sockaddr *, int);
extern int rb_w32_connect(int, struct sockaddr *, int);