| 272 | // Util |
| 273 | |
| 274 | T_ERRCODE socket_setnonblocking(p_socket sock) { |
| 275 | int flags = fcntl(*sock, F_GETFL, 0); |
| 276 | flags |= O_NONBLOCK; |
| 277 | return fcntl(*sock, F_SETFL, flags) != -1 ? SUCCESS : errno; |
| 278 | } |
| 279 | |
| 280 | T_ERRCODE socket_setblocking(p_socket sock) { |
| 281 | int flags = fcntl(*sock, F_GETFL, 0); |
no outgoing calls
no test coverage detected