kern/126076: [headers] POLL_ERR and POLL_HUP are defined
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
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
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
More information about the freebsd-bugs