* @brief Controls socket I/O modes. * * The 'ioctlsocket()' function manipulates the I/O mode of the socket specified by the file descriptor 's'. * It is primarily used to enable or disable non-blocking mode on a socket or to perform other socket-specific * operations. * * @param s The file descriptor of the socket to control. * @param cmd The command that specifies the operation to p
| 831 | * @see fcntl() Performs similar operations on UNIX-like systems. |
| 832 | */ |
| 833 | int ioctlsocket(int s, long cmd, void *arg) |
| 834 | { |
| 835 | int socket = dfs_net_getsocket(s); |
| 836 | |
| 837 | return sal_ioctlsocket(socket, cmd, arg); |
| 838 | } |
| 839 | RTM_EXPORT(ioctlsocket); |
no test coverage detected