]> Kevux Git Server - fll/commit
Update: Add check in f_socket_disconnect() to explicitly check socket file descriptor.
authorKevin Day <thekevinday@gmail.com>
Wed, 6 Sep 2023 05:09:04 +0000 (00:09 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 6 Sep 2023 05:09:04 +0000 (00:09 -0500)
commitb2728a0112a93b508c87a7139f710e6e3095a5d5
tree310ba0b6025bbac538b80dff5d57970794775394
parent3927ae8ee1c4aeec62121322fcf66681b77c85bf
Update: Add check in f_socket_disconnect() to explicitly check socket file descriptor.

Avoid depending on libc calls and instead explicitly check the socket file descriptor.
Return F_file_descriptor_not when -1.
Add unit test for this.
level_0/f_socket/c/socket.c
level_0/f_socket/c/socket.h
level_0/f_socket/tests/unit/c/test-socket-disconnect.c
level_0/f_socket/tests/unit/c/test-socket-disconnect.h
level_0/f_socket/tests/unit/c/test-socket.c