summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/mips/bits/syscalls.h
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-05 05:37:43 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-05 05:37:43 +0000
commit2d2282d01ec3af732c3e6f5af0e34a2527e4d8df (patch)
treed3ec4734c9abaa00a7e28710dddf38e5e216f828 /libc/sysdeps/linux/mips/bits/syscalls.h
parentb2d49909e51644bc39b0f29277e1538437a00830 (diff)
downloaduClibc-alpine-2d2282d01ec3af732c3e6f5af0e34a2527e4d8df.tar.bz2
uClibc-alpine-2d2282d01ec3af732c3e6f5af0e34a2527e4d8df.tar.xz
Clean up the 'sysdep.h' header chain. Other architectures will have their own 'sysdep.h' file in the various NPTL threads directories. Clean up other files having to do with the usage of it.
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 */