On Windows platforms (excluding Cygwin), @code{ioctl} is called
@code{ioctlsocket}, and error codes for this function are not placed in
@code{errno}, and @code{WSAGetLastError} must be used instead.
On Windows platforms (excluding Cygwin), @code{ioctl} is called
@code{ioctlsocket}, and error codes for this function are not placed in
@code{errno}, and @code{WSAGetLastError} must be used instead.