unistd.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. #include <uapi/asm/unistd.h>
  10. #define NR_syscalls 312 /* length of syscall table */
  11. /*
  12. * The following defines stop scripts/checksyscalls.sh from complaining about
  13. * unimplemented system calls. Glibc provides for each of these by using
  14. * more modern equivalent system calls.
  15. */
  16. #define __IGNORE_fork /* clone() */
  17. #define __IGNORE_time /* gettimeofday() */
  18. #define __IGNORE_alarm /* setitimer(ITIMER_REAL, ... */
  19. #define __IGNORE_pause /* rt_sigprocmask(), rt_sigsuspend() */
  20. #define __IGNORE_utime /* utimes() */
  21. #define __IGNORE_getpgrp /* getpgid() */
  22. #define __IGNORE_vfork /* clone() */
  23. #define __IGNORE_umount2 /* umount() */
  24. #define __ARCH_WANT_SYS_RT_SIGACTION
  25. #define __ARCH_WANT_SYS_RT_SIGSUSPEND
  26. #if !defined(__ASSEMBLY__) && !defined(ASSEMBLER)
  27. #include <linux/types.h>
  28. #include <linux/linkage.h>
  29. #include <linux/compiler.h>
  30. extern long __ia64_syscall (long a0, long a1, long a2, long a3, long a4, long nr);
  31. asmlinkage unsigned long sys_mmap(
  32. unsigned long addr, unsigned long len,
  33. int prot, int flags,
  34. int fd, long off);
  35. asmlinkage unsigned long sys_mmap2(
  36. unsigned long addr, unsigned long len,
  37. int prot, int flags,
  38. int fd, long pgoff);
  39. struct pt_regs;
  40. struct sigaction;
  41. asmlinkage long sys_ia64_pipe(void);
  42. asmlinkage long sys_rt_sigaction(int sig,
  43. const struct sigaction __user *act,
  44. struct sigaction __user *oact,
  45. size_t sigsetsize);
  46. /*
  47. * "Conditional" syscalls
  48. *
  49. * Note, this macro can only be used in the file which defines sys_ni_syscall, i.e., in
  50. * kernel/sys_ni.c. This version causes warnings because the declaration isn't a
  51. * proper prototype, but we can't use __typeof__ either, because not all cond_syscall()
  52. * declarations have prototypes at the moment.
  53. */
  54. #define cond_syscall(x) asmlinkage long x (void) __attribute__((weak,alias("sys_ni_syscall")))
  55. #endif /* !__ASSEMBLY__ */
  56. #endif /* _ASM_IA64_UNISTD_H */