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 Run clang-format 2025-06-05 11:06:04 +01:00
addrinfo.c Run clang-format 2025-06-05 11:06:04 +01:00
bind.c Run clang-format 2025-06-05 11:06:04 +01:00
connect.c Run clang-format 2025-06-05 11:06:04 +01:00
fcntl.c Run clang-format 2025-06-05 11:06:04 +01:00
getpeername.c Run clang-format 2025-06-05 11:06:04 +01:00
getsockname.c Run clang-format 2025-06-05 11:06:04 +01:00
getsockopt.c Run clang-format 2025-06-05 11:06:04 +01:00
host.c Run clang-format 2025-06-05 11:06:04 +01:00
hostid.c Run clang-format 2025-06-05 11:06:04 +01:00
inet_addr.c Network socket changes (#136) 2021-03-07 13:09:12 +01:00
inet_ntop.c Network socket changes (#136) 2021-03-07 13:09:12 +01:00
inet_pton.c Network socket changes (#136) 2021-03-07 13:09:12 +01:00
ioctl.c Run clang-format 2025-06-05 11:06:04 +01:00
listen.c Run clang-format 2025-06-05 11:06:04 +01:00
NSSLCreateConnection.c Run clang-format 2025-06-05 11:06:04 +01:00
poll.c wutsocket fixes: select() handles timeout wrong, and poll() lacks a safety check (#428) 2025-10-10 20:27:42 +02:00
recv.c Run clang-format 2025-06-05 11:06:04 +01:00
recvfrom.c Run clang-format 2025-06-05 11:06:04 +01:00
select.c wutsocket fixes: select() handles timeout wrong, and poll() lacks a safety check (#428) 2025-10-10 20:27:42 +02:00
send.c Run clang-format 2025-06-05 11:06:04 +01:00
sendto.c Run clang-format 2025-06-05 11:06:04 +01:00
setsockopt.c Run clang-format 2025-06-05 11:06:04 +01:00
shutdown.c Run clang-format 2025-06-05 11:06:04 +01:00
sockatmark.c Run clang-format 2025-06-05 11:06:04 +01:00
socket.c Run clang-format 2025-06-05 11:06:04 +01:00
somemopt.c nn_nets2: Add somemopt (#338) 2023-11-30 12:22:49 +01:00
stubs.c Run clang-format 2025-06-05 11:06:04 +01:00
wut_socket_close.c Run clang-format 2025-06-05 11:06:04 +01:00
wut_socket_common.c Run clang-format 2025-06-05 11:06:04 +01:00
wut_socket_open.c Run clang-format 2025-06-05 11:06:04 +01:00
wut_socket_read.c Run clang-format 2025-06-05 11:06:04 +01:00
wut_socket_write.c Run clang-format 2025-06-05 11:06:04 +01:00
wut_socket.h Run clang-format 2025-06-05 11:06:04 +01:00