swap.h 292 B

1234567891011121314151617181920
  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. int swapon (const char *, int);
  10. int swapoff (const char *);
  11. #ifdef __cplusplus
  12. }
  13. #endif
  14. #endif