wut/libraries/wutsocket
Daniel K. O. 1b412d2769
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
wutsocket fixes: select() handles timeout wrong, and poll() lacks a safety check (#428)
* - Fix select() to also update the fd_set arguments on timeout condition.
- Move the nfds argument restriction to the nsysnet side.
- Allow user-defined FD_SETSIZE, since newlib's fd_set allow custom sizes.
- Define __socklen_t_defined when socklen_t is typedefed.

* Added safety check for poll(): the nsysnet fd must fit in nsysnet_fd_set.

---------

Co-authored-by: Daniel K. O. (dkosmari) <none@none>
2025-10-10 20:27:42 +02:00
..
accept.c
addrinfo.c
bind.c
connect.c
fcntl.c
getpeername.c
getsockname.c
getsockopt.c
host.c
hostid.c
inet_addr.c
inet_ntop.c
inet_pton.c
ioctl.c
listen.c
NSSLCreateConnection.c
poll.c
recv.c
recvfrom.c
select.c
send.c
sendto.c
setsockopt.c
shutdown.c
sockatmark.c
socket.c
somemopt.c
stubs.c
wut_socket_close.c
wut_socket_common.c
wut_socket_open.c
wut_socket_read.c
wut_socket_write.c
wut_socket.h