unistd.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. #define __ARCH_WANT_NEW_STAT
  26. #define __ARCH_WANT_SYS_UTIME
  27. #if !defined(__ASSEMBLY__) && !defined(ASSEMBLER)
  28. #include <linux/types.h>
  29. #include <linux/linkage.h>
  30. #include <linux/compiler.h>
  31. extern long __ia64_syscall (long a0, long a1, long a2, long a3, long a4, long nr);
  32. asmlinkage unsigned long sys_mmap(
  33. unsigned long addr, unsigned long len,
  34. int prot, int flags,
  35. int fd, long off);
  36. asmlinkage unsigned long sys_mmap2(
  37. unsigned long addr, unsigned long len,
  38. int prot, int flags,
  39. int fd, long pgoff);
  40. struct pt_regs;
  41. asmlinkage long sys_ia64_pipe(void);
  42. #endif /* !__ASSEMBLY__ */
  43. #endif /* _ASM_IA64_UNISTD_H */