blob: fb13dc5e8f8c7c34079664761f6fab1bf802a1c7 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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 Howells43e40f22012-10-09 09:47:00 +01007#ifndef _ASM_IA64_UNISTD_H
8#define _ASM_IA64_UNISTD_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07009
David Howells43e40f22012-10-09 09:47:00 +010010#include <uapi/asm/unistd.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Miklos Szeredi3ca976a2014-05-20 10:59:38 +020014#define NR_syscalls 315 /* length of syscall table */
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
Tony Luck9f571952007-05-18 14:15:58 -070016/*
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 Lucke56e2dc2009-06-15 16:22:09 -070028#define __IGNORE_umount2 /* umount() */
Tony Luck9f571952007-05-18 14:15:58 -070029
Linus Torvalds1da177e2005-04-16 15:20:36 -070030#if !defined(__ASSEMBLY__) && !defined(ASSEMBLER)
31
32#include <linux/types.h>
33#include <linux/linkage.h>
34#include <linux/compiler.h>
35
36extern long __ia64_syscall (long a0, long a1, long a2, long a3, long a4, long nr);
37
Linus Torvalds1da177e2005-04-16 15:20:36 -070038asmlinkage unsigned long sys_mmap(
39 unsigned long addr, unsigned long len,
40 int prot, int flags,
41 int fd, long off);
42asmlinkage unsigned long sys_mmap2(
43 unsigned long addr, unsigned long len,
44 int prot, int flags,
45 int fd, long pgoff);
46struct pt_regs;
Heiko Carstens11347232009-01-14 14:13:56 +010047asmlinkage long sys_ia64_pipe(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070048
Linus Torvalds1da177e2005-04-16 15:20:36 -070049#endif /* !__ASSEMBLY__ */
Linus Torvalds1da177e2005-04-16 15:20:36 -070050#endif /* _ASM_IA64_UNISTD_H */