2
0

target_mman.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. #ifndef LINUX_USER_TARGET_MMAN_H
  2. #define LINUX_USER_TARGET_MMAN_H
  3. #ifndef TARGET_MADV_NORMAL
  4. #define TARGET_MADV_NORMAL 0
  5. #endif
  6. #ifndef TARGET_MADV_RANDOM
  7. #define TARGET_MADV_RANDOM 1
  8. #endif
  9. #ifndef TARGET_MADV_SEQUENTIAL
  10. #define TARGET_MADV_SEQUENTIAL 2
  11. #endif
  12. #ifndef TARGET_MADV_WILLNEED
  13. #define TARGET_MADV_WILLNEED 3
  14. #endif
  15. #ifndef TARGET_MADV_DONTNEED
  16. #define TARGET_MADV_DONTNEED 4
  17. #endif
  18. #ifndef TARGET_MADV_FREE
  19. #define TARGET_MADV_FREE 8
  20. #endif
  21. #ifndef TARGET_MADV_REMOVE
  22. #define TARGET_MADV_REMOVE 9
  23. #endif
  24. #ifndef TARGET_MADV_DONTFORK
  25. #define TARGET_MADV_DONTFORK 10
  26. #endif
  27. #ifndef TARGET_MADV_DOFORK
  28. #define TARGET_MADV_DOFORK 11
  29. #endif
  30. #ifndef TARGET_MADV_MERGEABLE
  31. #define TARGET_MADV_MERGEABLE 12
  32. #endif
  33. #ifndef TARGET_MADV_UNMERGEABLE
  34. #define TARGET_MADV_UNMERGEABLE 13
  35. #endif
  36. #ifndef TARGET_MADV_HUGEPAGE
  37. #define TARGET_MADV_HUGEPAGE 14
  38. #endif
  39. #ifndef TARGET_MADV_NOHUGEPAGE
  40. #define TARGET_MADV_NOHUGEPAGE 15
  41. #endif
  42. #ifndef TARGET_MADV_DONTDUMP
  43. #define TARGET_MADV_DONTDUMP 16
  44. #endif
  45. #ifndef TARGET_MADV_DODUMP
  46. #define TARGET_MADV_DODUMP 17
  47. #endif
  48. #ifndef TARGET_MADV_WIPEONFORK
  49. #define TARGET_MADV_WIPEONFORK 18
  50. #endif
  51. #ifndef TARGET_MADV_KEEPONFORK
  52. #define TARGET_MADV_KEEPONFORK 19
  53. #endif
  54. #ifndef TARGET_MADV_COLD
  55. #define TARGET_MADV_COLD 20
  56. #endif
  57. #ifndef TARGET_MADV_PAGEOUT
  58. #define TARGET_MADV_PAGEOUT 21
  59. #endif
  60. #ifndef TARGET_MADV_POPULATE_READ
  61. #define TARGET_MADV_POPULATE_READ 22
  62. #endif
  63. #ifndef TARGET_MADV_POPULATE_WRITE
  64. #define TARGET_MADV_POPULATE_WRITE 23
  65. #endif
  66. #ifndef TARGET_MADV_DONTNEED_LOCKED
  67. #define TARGET_MADV_DONTNEED_LOCKED 24
  68. #endif
  69. #ifndef TARGET_MS_ASYNC
  70. #define TARGET_MS_ASYNC 1
  71. #endif
  72. #ifndef TARGET_MS_INVALIDATE
  73. #define TARGET_MS_INVALIDATE 2
  74. #endif
  75. #ifndef TARGET_MS_SYNC
  76. #define TARGET_MS_SYNC 4
  77. #endif
  78. #endif