diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-01 15:25:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-01 15:25:49 +0000 |
commit | f638c09984f079cdddddb29d27c158aa9f89ed6a (patch) | |
tree | deeed06dbe680bd44fd7ccf0a3fff1077d43c5e5 /win32 | |
parent | ab59aa3fb32a9be7325124f5d1c673ce04d7f873 (diff) |
* ext/socket/socket.c (sock_new): duplicate underlying socket
handle not only descriptor. [ruby-talk:40015]
* ext/socket/socket.c (bsock_close_read, bsock_close_write): not
use myfdclose().
* win32/win32.c, win32/win32.h (myfddup, myfdclose): delete.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 21 | ||||
-rw-r--r-- | win32/win32.h | 2 |
2 files changed, 0 insertions, 23 deletions
diff --git a/win32/win32.c b/win32/win32.c index 088e438673..9248830863 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1763,27 +1763,6 @@ is_socket(SOCKET fd) return TRUE; } -int -myfddup (int fd) -{ - SOCKET s = TO_SOCKET(fd); - - if (s == -1) - return -1; - - return my_open_osfhandle(s, O_RDWR|O_BINARY); -} - - -void -myfdclose(FILE *fp) -{ -#if !defined MSVCRT_THREADS - _free_osfhnd(fileno(fp)); -#endif - fclose(fp); -} - // // Since the errors returned by the socket error function diff --git a/win32/win32.h b/win32/win32.h index 42ef1800da..9ddacfb3b6 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -183,8 +183,6 @@ extern char *NtGetBin(void); extern FILE *mypopen(char *, char *); extern int mypclose(FILE *); extern int flock(int fd, int oper); -extern int myfddup(int); -extern void myfdclose(FILE *); extern SOCKET myaccept(SOCKET, struct sockaddr *, int *); extern int mybind(SOCKET, struct sockaddr *, int); extern int myconnect(SOCKET, struct sockaddr *, int); |