summaryrefslogtreecommitdiffstats
path: root/usr/klibc/arch/ppc64/syscall.c
blob: a5895fe88e834f3d74d5f0b67b86a92d68b7fccd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * arch/ppc64/syscall.c
 *
 * Common error-handling path for system calls.
 * The return value from __syscall_error becomes the
 * return value from the system call.
 */
#include <errno.h>

long int __syscall_error(long int err)
{
	errno = err;
	return -1;
}