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