Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * IA-64 Linux syscall numbers and inline-functions. |
| 3 | * |
| 4 | * Copyright (C) 1998-2005 Hewlett-Packard Co |
| 5 | * David Mosberger-Tang <davidm@hpl.hp.com> |
| 6 | */ |
David Howells | 43e40f2 | 2012-10-09 09:47:00 +0100 | [diff] [blame] | 7 | #ifndef _ASM_IA64_UNISTD_H |
| 8 | #define _ASM_IA64_UNISTD_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | |
David Howells | 43e40f2 | 2012-10-09 09:47:00 +0100 | [diff] [blame] | 10 | #include <uapi/asm/unistd.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Luck, Tony | 062fe95 | 2013-01-03 10:33:48 -0800 | [diff] [blame] | 14 | #define NR_syscalls 312 /* length of syscall table */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
Tony Luck | 9f57195 | 2007-05-18 14:15:58 -0700 | [diff] [blame] | 16 | /* |
| 17 | * The following defines stop scripts/checksyscalls.sh from complaining about |
| 18 | * unimplemented system calls. Glibc provides for each of these by using |
| 19 | * more modern equivalent system calls. |
| 20 | */ |
| 21 | #define __IGNORE_fork /* clone() */ |
| 22 | #define __IGNORE_time /* gettimeofday() */ |
| 23 | #define __IGNORE_alarm /* setitimer(ITIMER_REAL, ... */ |
| 24 | #define __IGNORE_pause /* rt_sigprocmask(), rt_sigsuspend() */ |
| 25 | #define __IGNORE_utime /* utimes() */ |
| 26 | #define __IGNORE_getpgrp /* getpgid() */ |
| 27 | #define __IGNORE_vfork /* clone() */ |
Tony Luck | e56e2dc | 2009-06-15 16:22:09 -0700 | [diff] [blame] | 28 | #define __IGNORE_umount2 /* umount() */ |
Tony Luck | 9f57195 | 2007-05-18 14:15:58 -0700 | [diff] [blame] | 29 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | #define __ARCH_WANT_SYS_RT_SIGACTION |
Alexey Dobriyan | 4a177cb | 2007-01-23 19:03:17 +0300 | [diff] [blame] | 31 | #define __ARCH_WANT_SYS_RT_SIGSUSPEND |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | #if !defined(__ASSEMBLY__) && !defined(ASSEMBLER) |
| 34 | |
| 35 | #include <linux/types.h> |
| 36 | #include <linux/linkage.h> |
| 37 | #include <linux/compiler.h> |
| 38 | |
| 39 | extern long __ia64_syscall (long a0, long a1, long a2, long a3, long a4, long nr); |
| 40 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | asmlinkage unsigned long sys_mmap( |
| 42 | unsigned long addr, unsigned long len, |
| 43 | int prot, int flags, |
| 44 | int fd, long off); |
| 45 | asmlinkage unsigned long sys_mmap2( |
| 46 | unsigned long addr, unsigned long len, |
| 47 | int prot, int flags, |
| 48 | int fd, long pgoff); |
| 49 | struct pt_regs; |
| 50 | struct sigaction; |
Heiko Carstens | 1134723 | 2009-01-14 14:13:56 +0100 | [diff] [blame] | 51 | asmlinkage long sys_ia64_pipe(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | asmlinkage long sys_rt_sigaction(int sig, |
| 53 | const struct sigaction __user *act, |
| 54 | struct sigaction __user *oact, |
| 55 | size_t sigsetsize); |
| 56 | |
| 57 | /* |
| 58 | * "Conditional" syscalls |
| 59 | * |
| 60 | * Note, this macro can only be used in the file which defines sys_ni_syscall, i.e., in |
| 61 | * kernel/sys_ni.c. This version causes warnings because the declaration isn't a |
| 62 | * proper prototype, but we can't use __typeof__ either, because not all cond_syscall() |
| 63 | * declarations have prototypes at the moment. |
| 64 | */ |
| 65 | #define cond_syscall(x) asmlinkage long x (void) __attribute__((weak,alias("sys_ni_syscall"))) |
| 66 | |
| 67 | #endif /* !__ASSEMBLY__ */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 68 | #endif /* _ASM_IA64_UNISTD_H */ |