unistd.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (C) 2007-2008 Michal Simek <monstr@monstr.eu>
  3. * Copyright (C) 2006 Atmark Techno, Inc.
  4. *
  5. * This file is subject to the terms and conditions of the GNU General Public
  6. * License. See the file "COPYING" in the main directory of this archive
  7. * for more details.
  8. */
  9. #ifndef _ASM_MICROBLAZE_UNISTD_H
  10. #define _ASM_MICROBLAZE_UNISTD_H
  11. #include <uapi/asm/unistd.h>
  12. #ifndef __ASSEMBLY__
  13. /* #define __ARCH_WANT_OLD_READDIR */
  14. /* #define __ARCH_WANT_OLD_STAT */
  15. #define __ARCH_WANT_STAT64
  16. #define __ARCH_WANT_SYS_ALARM
  17. #define __ARCH_WANT_SYS_GETHOSTNAME
  18. #define __ARCH_WANT_SYS_PAUSE
  19. #define __ARCH_WANT_SYS_SGETMASK
  20. #define __ARCH_WANT_SYS_SIGNAL
  21. #define __ARCH_WANT_SYS_TIME
  22. #define __ARCH_WANT_SYS_UTIME
  23. #define __ARCH_WANT_SYS_WAITPID
  24. #define __ARCH_WANT_SYS_SOCKETCALL
  25. #define __ARCH_WANT_SYS_FADVISE64
  26. #define __ARCH_WANT_SYS_GETPGRP
  27. #define __ARCH_WANT_SYS_LLSEEK
  28. #define __ARCH_WANT_SYS_NICE
  29. /* #define __ARCH_WANT_SYS_OLD_GETRLIMIT */
  30. #define __ARCH_WANT_SYS_OLDUMOUNT
  31. #define __ARCH_WANT_SYS_SIGPENDING
  32. #define __ARCH_WANT_SYS_SIGPROCMASK
  33. #define __ARCH_WANT_SYS_RT_SIGACTION
  34. #define __ARCH_WANT_SYS_RT_SIGSUSPEND
  35. #define __ARCH_WANT_SYS_CLONE
  36. #define __ARCH_WANT_SYS_VFORK
  37. #define __ARCH_WANT_SYS_FORK
  38. /*
  39. * "Conditional" syscalls
  40. *
  41. * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
  42. * but it doesn't work on all toolchains, so we just do it by hand
  43. */
  44. #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
  45. #endif /* __ASSEMBLY__ */
  46. #endif /* _ASM_MICROBLAZE_UNISTD_H */