Viet-Trung Luu | 96b05c1 | 2016-01-11 11:26:36 -0800 | [diff] [blame] | 1 | #ifndef _SYS_SWAP_H |
| 2 | #define _SYS_SWAP_H |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
George Kulakowski | 17e3b04 | 2016-02-18 15:59:50 -0800 | [diff] [blame] | 8 | #define SWAP_FLAG_PREFER 0x8000 |
| 9 | #define SWAP_FLAG_PRIO_MASK 0x7fff |
| 10 | #define SWAP_FLAG_PRIO_SHIFT 0 |
| 11 | #define SWAP_FLAG_DISCARD 0x10000 |
Viet-Trung Luu | 96b05c1 | 2016-01-11 11:26:36 -0800 | [diff] [blame] | 12 | |
George Kulakowski | 17e3b04 | 2016-02-18 15:59:50 -0800 | [diff] [blame] | 13 | int swapon(const char*, int); |
| 14 | int swapoff(const char*); |
Viet-Trung Luu | 96b05c1 | 2016-01-11 11:26:36 -0800 | [diff] [blame] | 15 | |
| 16 | #ifdef __cplusplus |
| 17 | } |
| 18 | #endif |
| 19 | |
| 20 | #endif |