We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69c1c4e commit 63bae23Copy full SHA for 63bae23
swapon.c
@@ -2,19 +2,6 @@
2
3
#include <sys/swap.h>
4
5
-#ifndef SWAP_FLAG_PREFER
6
-# define SWAP_FLAG_PREFER 0x8000
7
-#endif
8
-#ifndef SWAP_FLAG_DISCARD
9
-# define SWAP_FLAG_DISCARD 0x10000
10
11
-#ifndef SWAP_FLAG_DISCARD_ONCE
12
-# define SWAP_FLAG_DISCARD_ONCE 0x20000
13
14
-#ifndef SWAP_FLAG_DISCARD_PAGES
15
-# define SWAP_FLAG_DISCARD_PAGES 0x40000
16
17
-
18
#include "xlat/swap_flags.h"
19
20
SYS_FUNC(swapon)
xlat/swap_flags.in
@@ -1,4 +1,4 @@
1
-SWAP_FLAG_PREFER
-SWAP_FLAG_DISCARD
-SWAP_FLAG_DISCARD_ONCE
-SWAP_FLAG_DISCARD_PAGES
+SWAP_FLAG_PREFER 0x8000
+SWAP_FLAG_DISCARD 0x10000
+SWAP_FLAG_DISCARD_ONCE 0x20000
+SWAP_FLAG_DISCARD_PAGES 0x40000
0 commit comments