Subject: misc/12960: recvfrom(2) and setsockopt(2) diagree on timeout errno
To: None <gnats-bugs@gnats.netbsd.org>
From: Jaromír <jdolecek@NetBSD.org>
List: netbsd-bugs
Date: 05/16/2001 12:00:36
>Number:         12960
>Category:       misc
>Synopsis:       recvfrom(2) and setsockopt(2) diagree on timeout errno
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 16 03:17:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jaromír Dolecek
>Release:        2001-05-16
>Organization:
	
>Environment:
	
System: NetBSD saruman.ics.muni.cz 1.5V NetBSD 1.5V (SARUMAN) #55: Mon May 14 10:37:38 CEST 2001 dolecek@saruman.ics.muni.cz:/usr/home/dolecek/soft/netbsd/sys/arch/i386/compile/SARUMAN i386
Architecture: i386
Machine: i386
>Description:
	If SO_RCVTIMEO value is set for socket and the wait blocks
	for more than set value, recvfrom(2) returns with error.
	However, the manpages disagree on which errno recvfrom(2) would
	return. setsockopt(2) claims it's EWOULDBLOCK, however
	recvfrom(2) things it's EAGAIN.
>How-To-Repeat:
	N/A
>Fix:
	Looking at the kernel sources, the right errno seems to be EWOULDBLOCK.
>Release-Note:
>Audit-Trail:
>Unformatted: