unistd.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #include <uapi/asm/unistd.h>
  11. #define NR_syscalls 326 /* length of syscall table */
  12. /*
  13. * The following defines stop scripts/checksyscalls.sh from complaining about
  14. * unimplemented system calls. Glibc provides for each of these by using
  15. * more modern equivalent system calls.
  16. */
  17. #define __IGNORE_fork /* clone() */
  18. #define __IGNORE_time /* gettimeofday() */
  19. #define __IGNORE_alarm /* setitimer(ITIMER_REAL, ... */
  20. #define __IGNORE_pause /* rt_sigprocmask(), rt_sigsuspend() */
  21. #define __IGNORE_utime /* utimes() */
  22. #define __IGNORE_getpgrp /* getpgid() */
  23. #define __IGNORE_vfork /* clone() */
  24. #define __IGNORE_umount2 /* umount() */
  25. #if !defined(__ASSEMBLY__) && !defined(ASSEMBLER)
  26. #include <linux/types.h>
  27. #include <linux/linkage.h>
  28. #include <linux/compiler.h>
  29. extern long __ia64_syscall (long a0, long a1, long a2, long a3, long a4, long nr);
  30. asmlinkage unsigned long sys_mmap(
  31. unsigned long addr, unsigned long len,
  32. int prot, int flags,
  33. int fd, long off);
  34. asmlinkage unsigned long sys_mmap2(
  35. unsigned long addr, unsigned long len,
  36. int prot, int flags,
  37. int fd, long pgoff);
  38. struct pt_regs;
  39. asmlinkage long sys_ia64_pipe(void);
  40. #endif /* !__ASSEMBLY__ */
  41. #endif /* _ASM_IA64_UNISTD_H */