unistd.h 806 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright 2004-2009 Analog Devices Inc.
  3. *
  4. * Licensed under the GPL-2 or later.
  5. */
  6. #ifndef __ASM_BFIN_UNISTD_H
  7. #define __ASM_BFIN_UNISTD_H
  8. #include <uapi/asm/unistd.h>
  9. #define __ARCH_WANT_STAT64
  10. #define __ARCH_WANT_SYS_ALARM
  11. #define __ARCH_WANT_SYS_GETHOSTNAME
  12. #define __ARCH_WANT_SYS_PAUSE
  13. #define __ARCH_WANT_SYS_SGETMASK
  14. #define __ARCH_WANT_SYS_TIME
  15. #define __ARCH_WANT_SYS_FADVISE64
  16. #define __ARCH_WANT_SYS_GETPGRP
  17. #define __ARCH_WANT_SYS_LLSEEK
  18. #define __ARCH_WANT_SYS_NICE
  19. #define __ARCH_WANT_SYS_VFORK
  20. /*
  21. * "Conditional" syscalls
  22. *
  23. * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
  24. * but it doesn't work on all toolchains, so we just do it by hand
  25. */
  26. #define cond_syscall(x) asm(".weak\t_" #x "\n\t.set\t_" #x ",_sys_ni_syscall");
  27. #endif /* __ASM_BFIN_UNISTD_H */