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

Petr Salinger Petr.Salinger at seznam.cz
Sat Nov 7 17:20:03 UTC 2009


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

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

 > 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? :)
 
 Some code uses them, i.e. boost
 https://svn.boost.org/trac/boost/browser/trunk/boost/test/impl/execution_monitor.ipp
 
 It would be much better to reserve new value for either
 POLL_ERR or POLL_HUP just now or drop all POLL_* and SIGPOLL constants.
 
 IMHO, the current situation does not conform to POSIX-2008, see
 http://www.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html
 http://www.opengroup.org/onlinepubs/9699919799/basedefs/poll.h.html
 
 Petr


More information about the freebsd-bugs mailing list