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