summaryrefslogtreecommitdiff
path: root/klibc/klibc/arch/s390/syscall.c
blob: c0f17c453c58a89e8de7e59c6613c3e255798c01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * arch/s390/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>

long int __syscall_common(long int err)
{
	if ((unsigned long)(err) < (unsigned long)(-125))
		return err;
	errno = err;
	return -1;
}