Re: [PATCH] Fix libitm futex handling on non-x86/ppc/sh/alpha targets

2014-03-26 Thread Torvald Riegel
On Wed, 2014-03-26 at 22:19 +0100, Jakub Jelinek wrote: > Hi! > > The sys_futex0 caller expects return values as returned by raw syscalls, > i.e. value >= 0 success, negative value are errors -errorval. > But, the syscall function returns value >= 0 on success, and -1 on error, > with errno set to

[PATCH] Fix libitm futex handling on non-x86/ppc/sh/alpha targets

2014-03-26 Thread Jakub Jelinek
Hi! The sys_futex0 caller expects return values as returned by raw syscalls, i.e. value >= 0 success, negative value are errors -errorval. But, the syscall function returns value >= 0 on success, and -1 on error, with errno set to errorval. This means if e.g. futex syscall fails with EAGAIN, and