diff options
author | Elliott Hughes <enh@google.com> | 2014-01-07 17:46:06 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-01-08 02:23:06 +0000 |
commit | 65c6f3099e95ece2f0322569c1a101faa8d53942 (patch) | |
tree | efae8b58d4d05ab1f2d24e044436cd2343a39789 | |
parent | 27a4bb319885f9ed218ebca02a92870582b35fd4 (diff) | |
download | bionic-65c6f3099e95ece2f0322569c1a101faa8d53942.zip bionic-65c6f3099e95ece2f0322569c1a101faa8d53942.tar.gz bionic-65c6f3099e95ece2f0322569c1a101faa8d53942.tar.bz2 |
Add SWAP_FLAG_* constants to <sys/swap.h>.
Bug: 9336527
Change-Id: I679be4d8425ba177dd782e714f465caf9daa976c
-rw-r--r-- | libc/include/sys/swap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/include/sys/swap.h b/libc/include/sys/swap.h index 97a6f36..e4c1819 100644 --- a/libc/include/sys/swap.h +++ b/libc/include/sys/swap.h @@ -33,6 +33,11 @@ __BEGIN_DECLS +#define SWAP_FLAG_DISCARD 0x10000 +#define SWAP_FLAG_PREFER 0x8000 +#define SWAP_FLAG_PRIO_MASK 0x7fff +#define SWAP_FLAG_PRIO_SHIFT 0 + extern int swapon(const char*, int) __nonnull((1)); extern int swapoff(const char*) __nonnull((1)); |