fix: recvfrom() error handling
From: Peter Radisson <hidden>
Date: 2025-03-27 10:55:50
From: Peter Radisson <hidden>
Date: 2025-03-27 10:55:50
Hello List, while chasing an unrelated bug i found the description of recvfrom() was missing some error description. I would suggest to add a few lines to make this confusing state more clear. CU
--- recv.2.org 2025-03-25 21:55:10.914273000 +0100
+++ recv.2 2025-03-25 22:55:18.843789307 +0100@@ -299,6 +299,23 @@ and .I addrlen should be specified as NULL. +If +.I src_addr +is NULL +.I addrlen +will be ignored. + +If +.I src_addr +is not NULL and +.I addrlen +is less than null the call will return with +.IR EINVAL . +If +.I addrlen +is less than sizeof struct sockaddr_in the src_addr will +not be modified. + .\" .SS recv() The