1a2c02203d31fb1e3a1aa85b4d54d00b774c629f
Changes: - Added is_nonblocking flag to Descriptor structure in system.c - Implemented mock_fcntl (Linux) and mock_ioctlsocket (Windows) to handle setting sockets as non-blocking - Set all sockets as non-blocking in tcp.c: - Listen sockets in create_listen_socket() - Accepted sockets in tcp_translate_events() - Connecting sockets in tcp_connect() - Added checks in mock_accept(), mock_recv(), and mock_send() to abort the simulation if a socket would block but is not configured as non-blocking - This ensures proper non-blocking socket configuration and helps catch blocking socket errors during simulation
Languages
C
98.4%
Shell
1%
Zig
0.4%
Batchfile
0.2%