if (ret < 0)
ret = errno;
- /* FreeBSD rejects 0; see http://austingroupbugs.net/view.php?id=382.
- MacOS X 10.5 strerror_r differs from the strerror string for 0. */
- if (errnum == 0)
- {
-# if defined __APPLE__ && defined __MACH__
- ret = EINVAL;
-# endif
- if (ret == EINVAL)
- ret = safe_copy (buf, buflen, "Success");
- }
-
#else /* USE_SYSTEM_STRERROR */
/* Try to do what strerror (errnum) does, but without clobbering the