From: Bastian Blank <waldi@debian.org> Fix syscall.c to return positive errno values. Signed-off-by: maximilian attems <maks@sternwelten.at> --- a/klibc/arch/s390/syscall.c.orig 2006-03-06 12:24:38.000000000 +0100 +++ b/klibc/arch/s390/syscall.c 2006-03-06 12:24:58.000000000 +0100 @@ -11,6 +11,6 @@ { if ((unsigned long)(err) < (unsigned long)(-125)) return err; - errno = err; + errno = -err; return -1; }
From: Bastian Blank <waldi@debian.org> Fix syscall.c to return positive errno values. Signed-off-by: maximilian attems <maks@sternwelten.at> -- resend --- a/klibc/arch/s390/syscall.c.orig 2006-03-06 12:24:38.000000000 +0100 +++ b/klibc/arch/s390/syscall.c 2006-03-06 12:24:58.000000000 +0100 @@ -11,6 +11,6 @@ { if ((unsigned long)(err) < (unsigned long)(-125)) return err; - errno = err; + errno = -err; return -1; }