bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uh oh: when to use the xprintf module


From: Daniel Jacobowitz
Subject: Re: uh oh: when to use the xprintf module
Date: Mon, 5 Nov 2007 10:19:13 -0500
User-agent: Mutt/1.5.15 (2007-04-09)

On Sat, Nov 03, 2007 at 12:23:16AM +0100, Jim Meyering wrote:
> This is not totally fair, because while I made mmap64 return -1,
> I did not set errno, which would normally happen for a real failure.
> I tried, but __errno_location() returns an invalid address.

FYI, try ((int * (*) ()) __errno_location) ().  The default return
type for non-debugging functions is int rather than long still.

-- 
Daniel Jacobowitz
CodeSourcery




reply via email to

[Prev in Thread] Current Thread [Next in Thread]