sanitize rt_sigaction() situation a bit
[deliverable/linux.git] / arch / ia64 / include / asm / unistd.h
CommitLineData
1da177e4
LT
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 */
43e40f25
DH
7#ifndef _ASM_IA64_UNISTD_H
8#define _ASM_IA64_UNISTD_H
1da177e4 9
43e40f25 10#include <uapi/asm/unistd.h>
1da177e4 11
1da177e4 12
1da177e4 13
062fe95a 14#define NR_syscalls 312 /* length of syscall table */
1da177e4 15
9f57195b
TL
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() */
e56e2dcd 28#define __IGNORE_umount2 /* umount() */
9f57195b 29
1da177e4 30#define __ARCH_WANT_SYS_RT_SIGACTION
4a177cbf 31#define __ARCH_WANT_SYS_RT_SIGSUSPEND
1da177e4 32
1da177e4
LT
33#if !defined(__ASSEMBLY__) && !defined(ASSEMBLER)
34
35#include <linux/types.h>
36#include <linux/linkage.h>
37#include <linux/compiler.h>
38
39extern long __ia64_syscall (long a0, long a1, long a2, long a3, long a4, long nr);
40
1da177e4
LT
41asmlinkage unsigned long sys_mmap(
42 unsigned long addr, unsigned long len,
43 int prot, int flags,
44 int fd, long off);
45asmlinkage unsigned long sys_mmap2(
46 unsigned long addr, unsigned long len,
47 int prot, int flags,
48 int fd, long pgoff);
49struct pt_regs;
50struct sigaction;
1134723e 51asmlinkage long sys_ia64_pipe(void);
1da177e4
LT
52
53/*
54 * "Conditional" syscalls
55 *
56 * Note, this macro can only be used in the file which defines sys_ni_syscall, i.e., in
57 * kernel/sys_ni.c. This version causes warnings because the declaration isn't a
58 * proper prototype, but we can't use __typeof__ either, because not all cond_syscall()
59 * declarations have prototypes at the moment.
60 */
61#define cond_syscall(x) asmlinkage long x (void) __attribute__((weak,alias("sys_ni_syscall")))
62
63#endif /* !__ASSEMBLY__ */
1da177e4 64#endif /* _ASM_IA64_UNISTD_H */
This page took 0.56479 seconds and 5 git commands to generate.