Re: epoll_ctl and const correctness

nicolas sitbon
2009-03-27T23:25:52Z

read() and poll() are very old functions, a long time ago, int was
nearly the only used type. Today, people uses good programming
practices, mixing information (the size read) and error is a very poor
design and a bad practice, as with read().

2009/3/28 Michael Tokarev <mjt@tls.msk.ru>:
> nicolas sitbon wrote:
>>
>> is it stupid to ask how a size can be negative? who is stupid? you're
>> boring with my question, just tell me please how a size can be
>> negative?
>
> Yes I'm bored with your questions.  And am suggesting you to stop
> asking me now.  That's enough.
>
> As of size being negative - how one can read() negative number
> of bytes for example?  How one can poll() waiting for a maximum
> of negative number of milliseconds?
>
> This is my last reply to you.  I have something more useful to do.
>
> /mjt
>