summaryrefslogtreecommitdiffstats
path: root/include/ruby
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-22 06:55:20 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-22 06:55:20 +0000
commit095868b1c87f6037bc1ced0e39e764013ec95dfe (patch)
treeeaca70426fccf74f58aa13e2cb118381d0fcd8bf /include/ruby
parent2aa659c7af88fededffcb46392c442aa49476e77 (diff)
downloadruby-095868b1c87f6037bc1ced0e39e764013ec95dfe.tar.gz
ruby-095868b1c87f6037bc1ced0e39e764013ec95dfe.tar.xz
ruby-095868b1c87f6037bc1ced0e39e764013ec95dfe.zip
* include/ruby/win32.h, win32/win32.c (rb_w32_is_valid_fd): new function
to validate fd. * io.c (rb_io_initialize): check fd with above function. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/win32.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index 46388a3ae..1bbe69e69 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -214,6 +214,7 @@ extern int WSAAPI rb_w32_connect(int, const struct sockaddr *, int);
extern void rb_w32_fdset(int, fd_set*);
extern void rb_w32_fdclr(int, fd_set*);
extern int rb_w32_fdisset(int, fd_set*);
+extern int rb_w32_is_valid_fd(int);
extern int WSAAPI rb_w32_select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
extern int WSAAPI rb_w32_getpeername(int, struct sockaddr *, int *);
extern int WSAAPI rb_w32_getsockname(int, struct sockaddr *, int *);