kern/126076: [headers] POLL_ERR and POLL_HUP are defined identically

Jilles Tjoelker jilles at stack.nl
Sat Nov 7 15:40:03 UTC 2009


The following reply was made to PR kern/126076; it has been noted by GNATS.

From: Jilles Tjoelker <jilles at stack.nl>
To: bug-followup at FreeBSD.org, Petr.Salinger at seznam.cz
Cc:  
Subject: Re: kern/126076: [headers] POLL_ERR and POLL_HUP are defined
	identically
Date: Sat, 7 Nov 2009 16:34:45 +0100

 To be honest, I do not know why the POLL_* constants are defined at all.
 The kernel never generates SIGPOLL, and it is an obsolescent feature in
 POSIX. Their main effect seems that someone can use POLL_IN instead of
 POLLIN and have a hard time debugging.
 
 How are you using these constants? :)
 
 -- 
 Jilles Tjoelker


More information about the freebsd-bugs mailing list