#ifndef __V850_UNISTD_H__
#define __V850_UNISTD_H__
+#include <asm/clinkage.h>
+
#define __NR_restart_syscall 0
#define __NR_exit 1
#define __NR_fork 2
except the syscall number (r12). */
#define SYSCALL_SHORT_CLOBBERS SYSCALL_CLOBBERS, "r13", "r14"
-#ifdef __KERNEL__
-#include <asm/clinkage.h>
+/* User programs sometimes end up including this header file
+ (indirectly, via uClibc header files), so I'm a bit nervous just
+ including <linux/compiler.h>. */
#define __syscall_return(type, res) \
do { \
}
+#ifdef __KERNEL__
#define __ARCH_WANT_IPC_PARSE_VERSION
#define __ARCH_WANT_OLD_READDIR
#define __ARCH_WANT_STAT64
#define __ARCH_WANT_SYS_SIGPENDING
#define __ARCH_WANT_SYS_SIGPROCMASK
#define __ARCH_WANT_SYS_RT_SIGACTION
+#endif
#ifdef __KERNEL_SYSCALLS__
struct sigaction __user *oact,
size_t sigsetsize);
-#endif /* __KERNEL_SYSCALLS__ */
+#endif
/*
* "Conditional" syscalls
void name (void) __attribute__ ((weak, alias ("sys_ni_syscall")));
#endif
-#endif /* __KERNEL__ */
#endif /* __V850_UNISTD_H__ */