unistd.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* MN10300 System call number list
  2. *
  3. * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
  4. * Written by David Howells (dhowells@redhat.com)
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public Licence
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the Licence, or (at your option) any later version.
  10. */
  11. #ifndef _ASM_UNISTD_H
  12. #define _ASM_UNISTD_H
  13. #include <uapi/asm/unistd.h>
  14. #define NR_syscalls 340
  15. /*
  16. * specify the deprecated syscalls we want to support on this arch
  17. */
  18. #define __ARCH_WANT_OLD_READDIR
  19. #define __ARCH_WANT_OLD_STAT
  20. #define __ARCH_WANT_STAT64
  21. #define __ARCH_WANT_SYS_ALARM
  22. #define __ARCH_WANT_SYS_GETHOSTNAME
  23. #define __ARCH_WANT_SYS_IPC
  24. #define __ARCH_WANT_SYS_PAUSE
  25. #define __ARCH_WANT_SYS_SGETMASK
  26. #define __ARCH_WANT_SYS_SIGNAL
  27. #define __ARCH_WANT_SYS_TIME
  28. #define __ARCH_WANT_SYS_UTIME
  29. #define __ARCH_WANT_SYS_WAITPID
  30. #define __ARCH_WANT_SYS_SOCKETCALL
  31. #define __ARCH_WANT_SYS_FADVISE64
  32. #define __ARCH_WANT_SYS_GETPGRP
  33. #define __ARCH_WANT_SYS_LLSEEK
  34. #define __ARCH_WANT_SYS_NICE
  35. #define __ARCH_WANT_SYS_OLD_GETRLIMIT
  36. #define __ARCH_WANT_SYS_OLD_SELECT
  37. #define __ARCH_WANT_SYS_OLDUMOUNT
  38. #define __ARCH_WANT_SYS_SIGPENDING
  39. #define __ARCH_WANT_SYS_SIGPROCMASK
  40. #define __ARCH_WANT_SYS_RT_SIGACTION
  41. #define __ARCH_WANT_SYS_RT_SIGSUSPEND
  42. #define __ARCH_WANT_SYS_FORK
  43. #define __ARCH_WANT_SYS_VFORK
  44. #define __ARCH_WANT_SYS_CLONE
  45. /*
  46. * "Conditional" syscalls
  47. *
  48. * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
  49. * but it doesn't work on all toolchains, so we just do it by hand
  50. */
  51. #ifndef cond_syscall
  52. #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
  53. #endif
  54. #endif /* _ASM_UNISTD_H */