This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Accessing another thread's errno
- From: Roland McGrath <roland at redhat dot com>
- To: clause at cc dot gatech dot edu
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 8 Aug 2006 14:38:44 -0700 (PDT)
- Subject: Re: Accessing another thread's errno
> Is there a way to set the errno variable of a different thread?
No.
> I'm trying to use the Intel Pin instrumentation framework to return
> canned values for some system calls.
If you really mean system calls and not functions, then you should be
worrying about the kernel convention for returning values and errors in
registers and just use that.