Hello.

The function 'error' in fileutils uses strerror_r if available, but the
return value differs on AIX and GNU libc. GNU libc returns the 2nd
argument as return value but AIX returns 0 when ok and -1 on failure and
thus the call ...

fprintf (stderr, ": %s", __strerror_r (errnum, errbuf, sizeof errbuf));

... prints pretty much nothing more than a colon.

I'm not sure which is the best solution, but I've checked; Neither
Solaris (up to v8) nor IRIX (up to 6.5.7m) has strerror_r. Don't know
which other OS's have it (don't have access to any other).
Maybe it should be an #ifdef _AIX  or something by those calls.

/Tomas
-- 
Tomas Ögren, [EMAIL PROTECTED], http://www.cs.umu.se/~stric/
`- Student and SysAdmin at Computing Science, University of Umeå

Reply via email to