unistd.h 987 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 <[email protected]>
  7. */
  8. #ifndef _ASM_IA64_UNISTD_H
  9. #define _ASM_IA64_UNISTD_H
  10. #include <uapi/asm/unistd.h>
  11. #define NR_syscalls __NR_syscalls /* length of syscall table */
  12. #define __ARCH_WANT_NEW_STAT
  13. #define __ARCH_WANT_SYS_UTIME
  14. #if !defined(__ASSEMBLY__) && !defined(ASSEMBLER)
  15. #include <linux/types.h>
  16. #include <linux/linkage.h>
  17. #include <linux/compiler.h>
  18. extern long __ia64_syscall (long a0, long a1, long a2, long a3, long a4, long nr);
  19. asmlinkage unsigned long sys_mmap(
  20. unsigned long addr, unsigned long len,
  21. int prot, int flags,
  22. int fd, long off);
  23. asmlinkage unsigned long sys_mmap2(
  24. unsigned long addr, unsigned long len,
  25. int prot, int flags,
  26. int fd, long pgoff);
  27. struct pt_regs;
  28. asmlinkage long sys_ia64_pipe(void);
  29. #endif /* !__ASSEMBLY__ */
  30. #endif /* _ASM_IA64_UNISTD_H */