unistd.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Copyright (C) 2004-2006 Atmel Corporation
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __ASM_AVR32_UNISTD_H
  9. #define __ASM_AVR32_UNISTD_H
  10. #include <uapi/asm/unistd.h>
  11. #define NR_syscalls 284
  12. /* Old stuff */
  13. #define __IGNORE_uselib
  14. #define __IGNORE_mmap
  15. /* NUMA stuff */
  16. #define __IGNORE_mbind
  17. #define __IGNORE_get_mempolicy
  18. #define __IGNORE_set_mempolicy
  19. #define __IGNORE_migrate_pages
  20. #define __IGNORE_move_pages
  21. /* SMP stuff */
  22. #define __IGNORE_getcpu
  23. #define __ARCH_WANT_STAT64
  24. #define __ARCH_WANT_SYS_ALARM
  25. #define __ARCH_WANT_SYS_GETHOSTNAME
  26. #define __ARCH_WANT_SYS_PAUSE
  27. #define __ARCH_WANT_SYS_TIME
  28. #define __ARCH_WANT_SYS_UTIME
  29. #define __ARCH_WANT_SYS_WAITPID
  30. #define __ARCH_WANT_SYS_FADVISE64
  31. #define __ARCH_WANT_SYS_GETPGRP
  32. #define __ARCH_WANT_SYS_LLSEEK
  33. #define __ARCH_WANT_SYS_GETPGRP
  34. #define __ARCH_WANT_SYS_FORK
  35. #define __ARCH_WANT_SYS_VFORK
  36. #define __ARCH_WANT_SYS_CLONE
  37. /*
  38. * "Conditional" syscalls
  39. *
  40. * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
  41. * but it doesn't work on all toolchains, so we just do it by hand
  42. */
  43. #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
  44. #endif /* __ASM_AVR32_UNISTD_H */