public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* fix: recvfrom() error handling
@ 2025-03-27 10:55 Peter Radisson
  2025-03-27 12:29 ` Alejandro Colomar
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Radisson @ 2025-03-27 10:55 UTC (permalink / raw)
  To: linux-man; +Cc: Alejandro Colomar (man-pages)

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-03-28 23:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-27 10:55 fix: recvfrom() error handling Peter Radisson
2025-03-27 12:29 ` Alejandro Colomar
2025-03-27 16:35   ` Peter Radisson
2025-03-27 17:28     ` Alejandro Colomar
2025-03-27 17:47       ` Peter Radisson
2025-03-28 22:45         ` Carlos O'Donell
2025-03-28 23:26           ` Peter Radisson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox