int ff_socket_nonblock(int socket, int enable)

{

#ifdef __MINGW32__

   return ioctlsocket(socket, FIONBIO, &enable);

#else

   if (enable)

      return fcntl(socket, F_SETFL, fcntl(socket, F_GETFL) | O_NONBLOCK);

   else

      return fcntl(socket, F_SETFL, fcntl(socket, F_GETFL) & ~O_NONBLOCK);

#endif

}

int ff_socket_nonblock(int socket, int enable)

{

#ifdef __MINGW32__

   return ioctlsocket(socket, FIONBIO, &enable);

#else

   if (enable)

      return fcntl(socket, F_SETFL, fcntl(socket, F_GETFL) | O_NONBLOCK);

   else

      return fcntl(socket, F_SETFL, fcntl(socket, F_GETFL) & ~O_NONBLOCK);

#endif

}

int FUNC_0(int VAR_0, int VAR_1)

{

#ifdef __MINGW32__

   return ioctlsocket(VAR_0, FIONBIO, &VAR_1);

#else

   if (VAR_1)

      return fcntl(VAR_0, F_SETFL, fcntl(VAR_0, F_GETFL) | O_NONBLOCK);

   else

      return fcntl(VAR_0, F_SETFL, fcntl(VAR_0, F_GETFL) & ~O_NONBLOCK);

#endif

}

int FUNC_0(int VAR_0, int VAR_1)
{ #ifdef __MINGW32__
return ioctlsocket(VAR_0, FIONBIO, &VAR_1); #else
if (VAR_1)
return fcntl(VAR_0, F_SETFL, fcntl(VAR_0, F_GETFL) | O_NONBLOCK); else
return fcntl(VAR_0, F_SETFL, fcntl(VAR_0, F_GETFL) & ~O_NONBLOCK); #endif
}