Loading...
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * IA-64 Linux syscall numbers and inline-functions.
4 *
5 * Copyright (C) 1998-2005 Hewlett-Packard Co
6 * David Mosberger-Tang <davidm@hpl.hp.com>
7 */
8#ifndef _ASM_IA64_UNISTD_H
9#define _ASM_IA64_UNISTD_H
10
11#include <uapi/asm/unistd.h>
12
13#define NR_syscalls __NR_syscalls /* length of syscall table */
14
15#define __ARCH_WANT_NEW_STAT
16#define __ARCH_WANT_SYS_UTIME
17
18#if !defined(__ASSEMBLY__) && !defined(ASSEMBLER)
19
20#include <linux/types.h>
21#include <linux/linkage.h>
22#include <linux/compiler.h>
23
24extern long __ia64_syscall (long a0, long a1, long a2, long a3, long a4, long nr);
25
26asmlinkage unsigned long sys_mmap(
27 unsigned long addr, unsigned long len,
28 int prot, int flags,
29 int fd, long off);
30asmlinkage unsigned long sys_mmap2(
31 unsigned long addr, unsigned long len,
32 int prot, int flags,
33 int fd, long pgoff);
34struct pt_regs;
35asmlinkage long sys_ia64_pipe(void);
36
37#endif /* !__ASSEMBLY__ */
38#endif /* _ASM_IA64_UNISTD_H */
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 */
7#ifndef _ASM_IA64_UNISTD_H
8#define _ASM_IA64_UNISTD_H
9
10#include <uapi/asm/unistd.h>
11
12
13
14#define NR_syscalls 315 /* length of syscall table */
15
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() */
28#define __IGNORE_umount2 /* umount() */
29
30#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
38asmlinkage 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;
47asmlinkage long sys_ia64_pipe(void);
48
49#endif /* !__ASSEMBLY__ */
50#endif /* _ASM_IA64_UNISTD_H */