summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/mips/bits/syscalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/mips/bits/syscalls.h')
-rw-r--r--libc/sysdeps/linux/mips/bits/syscalls.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/mips/bits/syscalls.h b/libc/sysdeps/linux/mips/bits/syscalls.h
index f19bd25e7..c89114401 100644
--- a/libc/sysdeps/linux/mips/bits/syscalls.h
+++ b/libc/sysdeps/linux/mips/bits/syscalls.h
@@ -1,5 +1,6 @@
#ifndef _BITS_SYSCALLS_H
#define _BITS_SYSCALLS_H
+
#ifndef _SYSCALL_H
# error "Never use <bits/syscalls.h> directly; include <sys/syscall.h> instead."
#endif
@@ -9,15 +10,16 @@
* programs. */
#include <bits/sysnum.h>
+#ifndef __set_errno
+# define __set_errno(val) (errno = (val))
+#endif
+
#ifndef SYS_ify
-# define SYS_ify(syscall_name) (__NR_##syscall_name)
+# define SYS_ify(syscall_name) __NR_##syscall_name
#endif
#ifndef __ASSEMBLER__
-#define __SYSCALL_CLOBBERS "$1", "$3", "$8", "$9", "$10", "$11", "$12", "$13", \
- "$14", "$15", "$24", "$25", "memory"
-
#define _syscall0(type,name) \
type name(void) \
{ \
@@ -263,5 +265,9 @@ type name (atype a,btype b,ctype c,dtype d,etype e,ftype f,gtype g) \
return (type)-1; \
}
-#endif /* __ASSEMBLER__ */
+#define __SYSCALL_CLOBBERS "$1", "$3", "$8", "$9", "$10", "$11", "$12", "$13", \
+ "$14", "$15", "$24", "$25", "memory"
+
+#endif /* ! __ASSEMBLER__ */
+
#endif /* _BITS_SYSCALLS_H */