|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Error reporting capabilities for libxc
On Tue, Sep 26, 2006 at 01:40:01PM -0500, Hollis Blanchard wrote:
> Isn't the whole idea of "get_last_error" racy by design? I guess errno
> has the same problem, but I'm not quite clear how it's solved there (a
> magic array of errnos that is somehow sized to include all threads?)
#define errno (*__errno_location())
I think recent glibc's stash each thread's errno in the thread's local
storage rather than using a global array, but haven't checked.
Cheers,
Muli
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|