* win32/win32.c (is_socket): reorder of function definitions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
44dc05e55f
commit
d5b434088a
@ -1,3 +1,7 @@
|
|||||||
|
Wed Dec 08 01:35:44 2004 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* win32/win32.c (is_socket): reorder of function definitions.
|
||||||
|
|
||||||
Wed Dec 08 00:44:31 2004 NAKAMURA Usaku <usa@ruby-lang.org>
|
Wed Dec 08 00:44:31 2004 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* io.c (pipe_open): win32 bidirectional pipe support.
|
* io.c (pipe_open): win32 bidirectional pipe support.
|
||||||
|
@ -1654,12 +1654,6 @@ rb_w32_open_osfhandle(long osfhandle, int flags)
|
|||||||
|
|
||||||
#undef getsockopt
|
#undef getsockopt
|
||||||
|
|
||||||
int
|
|
||||||
rb_w32_is_socket(int fd)
|
|
||||||
{
|
|
||||||
return is_socket(TO_SOCKET(fd));
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
is_socket(SOCKET sock)
|
is_socket(SOCKET sock)
|
||||||
{
|
{
|
||||||
@ -1686,6 +1680,12 @@ is_socket(SOCKET sock)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
rb_w32_is_socket(int fd)
|
||||||
|
{
|
||||||
|
return is_socket(TO_SOCKET(fd));
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Since the errors returned by the socket error function
|
// Since the errors returned by the socket error function
|
||||||
// WSAGetLastError() are not known by the library routine strerror
|
// WSAGetLastError() are not known by the library routine strerror
|
||||||
|
Loading…
x
Reference in New Issue
Block a user