aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2010-11-16 12:17:04 -0500
committerAndreas Schwab <schwab@redhat.com>2010-12-01 15:35:18 +0100
commit1802b016e7ccc88878e62b27d566563e3c4e93d3 (patch)
tree794dde9466ae1aecd1864b0744f0a7a3ae2bc26f
parent8cef0b4a129dba0b4cc93073b423cca270ed9cbb (diff)
downloadglibc-1802b016e7ccc88878e62b27d566563e3c4e93d3.tar
glibc-1802b016e7ccc88878e62b27d566563e3c4e93d3.tar.gz
glibc-1802b016e7ccc88878e62b27d566563e3c4e93d3.tar.bz2
glibc-1802b016e7ccc88878e62b27d566563e3c4e93d3.zip
Define SWAP_FLAG_DISCARD.
(cherry picked from commit a1fb5e3ebe9d38b5ae6c5bfbfaa04882d52355bc)
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/unix/sysv/linux/sys/swap.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8bb1b600b6..1b3020f0d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-11-16 Ulrich Drepper <drepper@gmail.com>
+
+ * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
+
2010-11-11 Andreas Schwab <schwab@redhat.com>
* posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
diff --git a/sysdeps/unix/sysv/linux/sys/swap.h b/sysdeps/unix/sysv/linux/sys/swap.h
index b6e7bef5d2..961006cbbe 100644
--- a/sysdeps/unix/sysv/linux/sys/swap.h
+++ b/sysdeps/unix/sysv/linux/sys/swap.h
@@ -1,5 +1,5 @@
/* Calls to enable and disable swapping on specified locations. Linux version.
- Copyright (C) 1996, 1998, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1998, 1999, 2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -28,6 +28,7 @@
#define SWAP_FLAG_PREFER 0x8000 /* Set if swap priority is specified. */
#define SWAP_FLAG_PRIO_MASK 0x7fff
#define SWAP_FLAG_PRIO_SHIFT 0
+#define SWAP_FLAG_DISCARD 0x10000 /* Discard swap cluster after use. */
__BEGIN_DECLS