seccomp.h 829 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __ASM_SECCOMP_H
  2. #include <linux/unistd.h>
  3. #define __NR_seccomp_read __NR_read
  4. #define __NR_seccomp_write __NR_write
  5. #define __NR_seccomp_exit __NR_exit
  6. #define __NR_seccomp_sigreturn __NR_rt_sigreturn
  7. /*
  8. * Kludge alert:
  9. *
  10. * The generic seccomp code currently allows only a single compat ABI. Until
  11. * this is fixed we priorize O32 as the compat ABI over N32.
  12. */
  13. #ifdef CONFIG_MIPS32_O32
  14. #define __NR_seccomp_read_32 4003
  15. #define __NR_seccomp_write_32 4004
  16. #define __NR_seccomp_exit_32 4001
  17. #define __NR_seccomp_sigreturn_32 4193 /* rt_sigreturn */
  18. #elif defined(CONFIG_MIPS32_N32)
  19. #define __NR_seccomp_read_32 6000
  20. #define __NR_seccomp_write_32 6001
  21. #define __NR_seccomp_exit_32 6058
  22. #define __NR_seccomp_sigreturn_32 6211 /* rt_sigreturn */
  23. #endif /* CONFIG_MIPS32_O32 */
  24. #endif /* __ASM_SECCOMP_H */