On Thu, 17 Jul 2008, Christoph Otto via RT wrote:
> On Thu Jul 17 15:53:12 2008, julianalbo wrote:
> > On Thu, Jul 17, 2008 at 9:59 PM, Christoph Otto via RT
> > <[EMAIL PROTECTED]> wrote:
> >
> trick. The attached patch (v5) properly fixes the problem on my system.
> There shouldn't be any remaining issues, but the patch ought to be
> tested on a another *nix and Windows.
[ . . . ]
> char *errstr = strerror_r(errno, errmsg, ERRBUF_SIZE);
Unfortunately, that's not portable. The POSIXy version of strerror_r
returns an integer, specifically 0 if successful, and something else
otherwise. (What that "something" else actually is seems to be
defined differently by different vendors, alas. OpenBSD and Solaris
return errno. Linux/glibc returns -1.)
--
Andy Dougherty [EMAIL PROTECTED]