On Tue, Feb 17, 2015 at 9:43 PM, Todd C. Miller
<[email protected]> wrote:
> On Tue, 17 Feb 2015 19:34:35 -0500, Raul Miller wrote:
>
>> So... let's say I'm writing code that uses poll.
>>
>> What would I need to read to discover whether POLLRDBAND is relevant
>> or not, to my coding effort?
>
> You would need to read the manual pages for the device types you
> are polling.  Like the manual says, what is considered priority
> data is device-specific.  On OpenBSD, the only thing that is really
> relevant is out-of-band data on sockets, described in socket(2) and
> recv(2).

First, I like that your proposed change specifically spells out that
on sockets there's an equivalence between "out of band" and
"priority".

Still, as far as I can see, currently that's the *only* relevant
openbsd significance for priority. And yet, neither recv(2) nor
socket(2) mention the word "priority".

Is the programmer supposed to know that they will not find anything if
they look for "priority"?  Is the programmer allowed to attach any
significance to this sort of lack of mention when they read a device's
manual page?

Thanks,

-- 
Raul

Reply via email to