Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
971d5f3f
Commit
971d5f3f
authored
Oct 02, 2006
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Implemented FIONBIO and FIONREAD in WSAIoctl.
parent
86c0bb3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
socket.c
dlls/ws2_32/socket.c
+31
-2
No files found.
dlls/ws2_32/socket.c
View file @
971d5f3f
...
...
@@ -2102,8 +2102,6 @@ char* WINAPI WS_inet_ntoa(struct WS_in_addr in)
/**********************************************************************
* WSAIoctl (WS2_32.50)
*
*
* FIXME: Only SIO_GET_INTERFACE_LIST option implemented.
*/
INT
WINAPI
WSAIoctl
(
SOCKET
s
,
DWORD
dwIoControlCode
,
...
...
@@ -2116,6 +2114,7 @@ INT WINAPI WSAIoctl(SOCKET s,
LPWSAOVERLAPPED_COMPLETION_ROUTINE
lpCompletionRoutine
)
{
int
fd
=
get_sock_fd
(
s
,
0
,
NULL
);
INT
ret
;
if
(
fd
==
-
1
)
return
SOCKET_ERROR
;
...
...
@@ -2125,6 +2124,32 @@ INT WINAPI WSAIoctl(SOCKET s,
switch
(
dwIoControlCode
)
{
case
WS_FIONBIO
:
if
(
cbInBuffer
!=
sizeof
(
u_long
))
{
release_sock_fd
(
s
,
fd
);
WSASetLastError
(
WSAEFAULT
);
return
SOCKET_ERROR
;
}
ret
=
WS_ioctlsocket
(
s
,
WS_FIONBIO
,
lpvInBuffer
);
if
(
ret
==
SOCKET_ERROR
)
{
release_sock_fd
(
s
,
fd
);
/* last error already set by WS_ioctlsocket */
return
ret
;
}
break
;
case
WS_FIONREAD
:
if
(
cbOutBuffer
!=
sizeof
(
u_long
))
{
release_sock_fd
(
s
,
fd
);
WSASetLastError
(
WSAEFAULT
);
return
SOCKET_ERROR
;
}
ret
=
WS_ioctlsocket
(
s
,
WS_FIONREAD
,
lpbOutBuffer
);
if
(
ret
==
SOCKET_ERROR
)
{
release_sock_fd
(
s
,
fd
);
/* last error already set by WS_ioctlsocket */
return
ret
;
}
break
;
case
SIO_GET_INTERFACE_LIST
:
{
INTERFACE_INFO
*
intArray
=
(
INTERFACE_INFO
*
)
lpbOutBuffer
;
...
...
@@ -2257,6 +2282,10 @@ INT WINAPI WSAIoctl(SOCKET s,
* with WSA_FLAG_OVERLAPPED, but there is no easy way to get this */
break
;
case
SIO_FLUSH
:
FIXME
(
"SIO_FLUSH: stub.
\n
"
);
break
;
default:
FIXME
(
"unsupported WS_IOCTL cmd (%08lx)
\n
"
,
dwIoControlCode
);
release_sock_fd
(
s
,
fd
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment