target_resource.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Target definitions of RLIMIT_* constants. These may be overridden by an
  3. * architecture specific header if needed.
  4. */
  5. #ifndef GENERIC_TARGET_RESOURCE_H
  6. #define GENERIC_TARGET_RESOURCE_H
  7. struct target_rlimit {
  8. abi_ulong rlim_cur;
  9. abi_ulong rlim_max;
  10. };
  11. struct target_rlimit64 {
  12. abi_ullong rlim_cur;
  13. abi_ullong rlim_max;
  14. };
  15. #define TARGET_RLIM_INFINITY ((abi_ulong)-1)
  16. #define TARGET_RLIMIT_CPU 0
  17. #define TARGET_RLIMIT_FSIZE 1
  18. #define TARGET_RLIMIT_DATA 2
  19. #define TARGET_RLIMIT_STACK 3
  20. #define TARGET_RLIMIT_CORE 4
  21. #define TARGET_RLIMIT_RSS 5
  22. #define TARGET_RLIMIT_NPROC 6
  23. #define TARGET_RLIMIT_NOFILE 7
  24. #define TARGET_RLIMIT_MEMLOCK 8
  25. #define TARGET_RLIMIT_AS 9
  26. #define TARGET_RLIMIT_LOCKS 10
  27. #define TARGET_RLIMIT_SIGPENDING 11
  28. #define TARGET_RLIMIT_MSGQUEUE 12
  29. #define TARGET_RLIMIT_NICE 13
  30. #define TARGET_RLIMIT_RTPRIO 14
  31. #define TARGET_RLIMIT_RTTIME 15
  32. #endif