Re: epoll_ctl and const correctness

From: nicolas sitbon
Date: Fri Mar 27 2009 - 19:25:53 EST


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@xxxxxxxxxx>:
> 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
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/