hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Bowen <dbo...@yahoo-inc.com>
Subject Re: C API for Hadoop DFS
Date Tue, 02 May 2006 19:52:44 GMT
Doug Cutting wrote:
> The spec says:
> /** All APIs set errno to meaningful values */
> So callers should always check errno after each call.  Whether this is 
> the best way to handle errors in C can be debated, but an error 
> mechanism was in fact specified.
I don't much like errno, but if we are using it we should follow the 
normal convention that applications only check errno when a return value 
indicates that there was an error.  So it does not need to be modified 
when there isn't an error.

- David

View raw message