incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-305) [IRIX 6.5] strerror(152) returns 0
Date Tue, 14 Nov 2006 21:26:37 GMT
    [ http://issues.apache.org/jira/browse/STDCXX-305?page=comments#action_12449796 ] 
            
Martin Sebor commented on STDCXX-305:
-------------------------------------

Filed with SGI as case 2687173.

> [IRIX 6.5] strerror(152) returns 0
> ----------------------------------
>
>                 Key: STDCXX-305
>                 URL: http://issues.apache.org/jira/browse/STDCXX-305
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: External
>         Environment: IRIX 6.5
>            Reporter: Martin Sebor
>
> POSIX requires that strerror(n) return a pointer to a NUL-terminated character string
for any value of n. IRIX 6.5 returns 0 for at least n=152.
> $ cat t.c && cc -version && cc t.c  && ./a.out 
> #include <assert.h>
> #include <string.h>
> int main ()
> {
>     assert (0 != strerror (152));
> }
> MIPSpro Compilers: Version 7.41
> Assertion failed: 0 != strerror (152), file t.c, line 6
> Abort (core dumped)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message