diff options
Diffstat (limited to 'usr/klibc/arch/ppc64/syscall.c')
-rw-r--r-- | usr/klibc/arch/ppc64/syscall.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/usr/klibc/arch/ppc64/syscall.c b/usr/klibc/arch/ppc64/syscall.c new file mode 100644 index 0000000..a5895fe --- /dev/null +++ b/usr/klibc/arch/ppc64/syscall.c @@ -0,0 +1,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; +} |