1
0

swap.h 332 B

123456789101112131415161718192021
  1. #ifndef _SYS_SWAP_H
  2. #define _SYS_SWAP_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #define SWAP_FLAG_PREFER 0x8000
  7. #define SWAP_FLAG_PRIO_MASK 0x7fff
  8. #define SWAP_FLAG_PRIO_SHIFT 0
  9. #define SWAP_FLAG_DISCARD 0x10000
  10. int swapon (const char *, int);
  11. int swapoff (const char *);
  12. #ifdef __cplusplus
  13. }
  14. #endif
  15. #endif