Mail Archives: cygwin/2004/02/08/09:53:12
--Boundary-00=_hxkJAsxT6ZRWdTB
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi,
while porting a kde game (Kbattleship) to cygwin/xfree I recognized that the
ioctl FIONREAD function call wasn't implemented.
The appended minor patch added this support to fhandler_socket.cc
Cheers
Ralf
Changelog
2004-02-08 Ralf Habacker <ralf DOT habacker AT freenet DOT de>
* fhandler_socket.cc (fhandler_socket::ioctl): Added FIONREAD function call.
--Boundary-00=_hxkJAsxT6ZRWdTB
Content-Type: text/x-diff;
charset="us-ascii";
name="cygwin_fhandler_socket_cc-ioctl-fionread.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="cygwin_fhandler_socket_cc-ioctl-fionread.patch"
--- fhandler_socket.cc.orig 2003-12-07 23:38:00.000000000 +0100
+++ fhandler_socket.cc 2004-02-08 15:38:54.508512000 +0100
@@ -1264,6 +1264,13 @@ fhandler_socket::ioctl (unsigned int cmd
set_nonblocking (*(int *) p);
}
break;
+
+ case FIONREAD:
+ res = ioctlsocket (get_socket (), FIONREAD, (unsigned long *) p);
+ if (res == SOCKET_ERROR)
+ set_winsock_errno ();
+ break;
+
}
syscall_printf ("%d = ioctl_socket (%x, %x)", res, cmd, p);
return res;
--Boundary-00=_hxkJAsxT6ZRWdTB
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--Boundary-00=_hxkJAsxT6ZRWdTB--
- Raw text -