[ 
https://issues.apache.org/jira/browse/HDFS-7817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14335048#comment-14335048
 ] 

Thanh Do commented on HDFS-7817:
--------------------------------

Hi [~cmccabe]. Thanks for pointing out the code. I was grepping the 
{{hadoop-hdfs}} folder but not {{hadoop-common}}. 

So this Jira is about using {{sys_errlist}} instead of {{strerror_r}} for 
libhdfs3 right?

> libhdfs3: fix strerror_r detection
> ----------------------------------
>
>                 Key: HDFS-7817
>                 URL: https://issues.apache.org/jira/browse/HDFS-7817
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs-client
>            Reporter: Colin Patrick McCabe
>
> The signature of strerror_r is not quite detected correctly in libhdfs3.  The 
> code assumes that {{int foo = strerror_r}} will fail to compile with the GNU 
> type signature, but this is not the case (C\+\+ will coerce the char* to an 
> int in this case).  Instead, we should do what the libhdfs {{terror}} 
> (threaded error) function does here.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to