blob: 6d6fe7ab5473f63f60e0c8c3e9ef55dd39ee8914 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ALPHA_UNISTD_H
2#define _ALPHA_UNISTD_H
3
David Howells96433f6e2012-12-17 13:47:09 +00004#include <uapi/asm/unistd.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
David Woodhouse56142532006-04-29 01:51:47 +01006
Michael Creed8d5da12012-08-19 14:40:57 +12007#define NR_SYSCALLS 506
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
Linus Torvalds1da177e2005-04-16 15:20:36 -07009#define __ARCH_WANT_OLD_READDIR
10#define __ARCH_WANT_STAT64
11#define __ARCH_WANT_SYS_GETHOSTNAME
Linus Torvalds1da177e2005-04-16 15:20:36 -070012#define __ARCH_WANT_SYS_FADVISE64
13#define __ARCH_WANT_SYS_GETPGRP
14#define __ARCH_WANT_SYS_OLD_GETRLIMIT
15#define __ARCH_WANT_SYS_OLDUMOUNT
16#define __ARCH_WANT_SYS_SIGPENDING
Al Virodfe09ae2012-10-26 09:54:47 -040017#define __ARCH_WANT_SYS_FORK
18#define __ARCH_WANT_SYS_VFORK
19#define __ARCH_WANT_SYS_CLONE
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
Linus Torvalds1da177e2005-04-16 15:20:36 -070021/* "Conditional" syscalls. What we want is
22
23 __attribute__((weak,alias("sys_ni_syscall")))
24
25 but that raises the problem of what type to give the symbol. If we use
26 a prototype, it'll conflict with the definition given in this file and
27 others. If we use __typeof, we discover that not all symbols actually
28 have declarations. If we use no prototype, then we get warnings from
29 -Wstrict-prototypes. Ho hum. */
30
31#define cond_syscall(x) asm(".weak\t" #x "\n" #x " = sys_ni_syscall")
32
Linus Torvalds1da177e2005-04-16 15:20:36 -070033#endif /* _ALPHA_UNISTD_H */