Date: Sat, 7 Nov 2009 17:20:02 GMT From: Petr Salinger <Petr.Salinger@seznam.cz> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/126076: [headers] POLL_ERR and POLL_HUP are defined identically Message-ID: <200911071720.nA7HK2sB044611@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/126076; it has been noted by GNATS. From: Petr Salinger <Petr.Salinger@seznam.cz> To: Jilles Tjoelker <jilles@stack.nl> Cc: bug-followup@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911071720.nA7HK2sB044611>