OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27a4bb3
)
Add SWAP_FLAG_* constants to <sys/swap.h>.
author
Elliott Hughes
<enh@google.com>
Wed, 8 Jan 2014 01:46:06 +0000
(17:46 -0800)
committer
Elliott Hughes
<enh@google.com>
Wed, 8 Jan 2014 02:23:06 +0000
(
02:23
+0000)
Bug:
9336527
Change-Id: I679be4d8425ba177dd782e714f465caf9daa976c
libc/include/sys/swap.h
patch
|
blob
|
history
diff --git
a/libc/include/sys/swap.h
b/libc/include/sys/swap.h
index
97a6f36
..
e4c1819
100644
(file)
--- 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));