Merge tag 'disintegrate-misc-arches-20121010' of git://git.infradead.org/users/dhowel...
[firefly-linux-kernel-4.4.55.git] / arch / mn10300 / include / asm / unistd.h
1 /* MN10300 System call number list
2  *
3  * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
4  * Written by David Howells (dhowells@redhat.com)
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public Licence
8  * as published by the Free Software Foundation; either version
9  * 2 of the Licence, or (at your option) any later version.
10  */
11 #ifndef _ASM_UNISTD_H
12 #define _ASM_UNISTD_H
13
14 #include <uapi/asm/unistd.h>
15
16
17 #define NR_syscalls 340
18
19 /*
20  * specify the deprecated syscalls we want to support on this arch
21  */
22 #define __ARCH_WANT_OLD_READDIR
23 #define __ARCH_WANT_OLD_STAT
24 #define __ARCH_WANT_STAT64
25 #define __ARCH_WANT_SYS_ALARM
26 #define __ARCH_WANT_SYS_GETHOSTNAME
27 #define __ARCH_WANT_SYS_IPC
28 #define __ARCH_WANT_SYS_PAUSE
29 #define __ARCH_WANT_SYS_SGETMASK
30 #define __ARCH_WANT_SYS_SIGNAL
31 #define __ARCH_WANT_SYS_TIME
32 #define __ARCH_WANT_SYS_UTIME
33 #define __ARCH_WANT_SYS_WAITPID
34 #define __ARCH_WANT_SYS_SOCKETCALL
35 #define __ARCH_WANT_SYS_FADVISE64
36 #define __ARCH_WANT_SYS_GETPGRP
37 #define __ARCH_WANT_SYS_LLSEEK
38 #define __ARCH_WANT_SYS_NICE
39 #define __ARCH_WANT_SYS_OLD_GETRLIMIT
40 #define __ARCH_WANT_SYS_OLD_SELECT
41 #define __ARCH_WANT_SYS_OLDUMOUNT
42 #define __ARCH_WANT_SYS_SIGPENDING
43 #define __ARCH_WANT_SYS_SIGPROCMASK
44 #define __ARCH_WANT_SYS_RT_SIGACTION
45 #define __ARCH_WANT_SYS_RT_SIGSUSPEND
46 #define __ARCH_WANT_SYS_EXECVE
47 #define __ARCH_WANT_KERNEL_EXECVE
48
49 /*
50  * "Conditional" syscalls
51  *
52  * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
53  * but it doesn't work on all toolchains, so we just do it by hand
54  */
55 #ifndef cond_syscall
56 #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
57 #endif
58
59 #endif /* _ASM_UNISTD_H */