mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 01:23:57 +02:00
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@21734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7e4ca52669
commit
a3e8d63a75
4 changed files with 21 additions and 2 deletions
|
@ -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 *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue