Fix an errno leak in libthread_xu's calls to umtx.
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 23 Apr 2009 17:34:34 +0000 (10:34 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 23 Apr 2009 17:34:34 +0000 (10:34 -0700)
commit0a215286f614e93b27df940cd84c1f5fd7e494fe
tree8986a7ad58a164857c821e257ce37d53fd839891
parent3628c2aa6c358f165bee4cb3fedb6c3c21062384
Fix an errno leak in libthread_xu's calls to umtx.

Add a syscall entry point that returns errno instead of loading the
errno variable and use it to make umtx calls deep in libthread_xu,
avoiding the whole errno issue and fixing the leak.

Submitted-by: Alex Hornung
lib/libthread_xu/arch/Makefile.inc
lib/libthread_xu/arch/amd64/Makefile.inc
lib/libthread_xu/arch/i386/Makefile.inc
lib/libthread_xu/thread/thr_private.h
lib/libthread_xu/thread/thr_umtx.c