Em Thu, Oct 03, 2013 at 11:18:49AM -0600, David Ahern escreveu: > On 10/3/13 10:58 AM, Arnaldo Carvalho de Melo wrote: > >What about the one attached instead? It
> Isnt' strerror(errno) preferred over sys_errlist[errno]? I found it much simpler to index the array, but can change to using strerror_r (which I think is preferred over strerror, but one needs to be careful as there are some subtleties there as well...). Apart from that, do you think using errno for such simple functions is ok? i.e. just use the mechanism in place, errno is _already_ set up and reflects exactly what we need to get propagated to those functions callers. - ARnaldo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

