blob: 3a7dd773f100d876d1e3ca5d1241a5ebf81a2788 [file] [log] [blame]
/*
* arch/s390x/syscall.c
*
* Common error-handling path for system calls.
* The return value from __syscall_common becomes the
* return value from the system call.
*/
#include <errno.h>
unsigned long __syscall_common(unsigned long err)
{
if (err < -4095UL)
return err;
errno = -err;
return -1;
}