From: Li Wang <liwang@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH V3 1/3] ltp/lapi: add some madvices definition
Date: Wed, 25 May 2016 14:29:37 +0800 [thread overview]
Message-ID: <1464157779-6883-1-git-send-email-liwang@redhat.com> (raw)
Signed-off-by: Li Wang <liwang@redhat.com>
---
include/lapi/mmap.h | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/include/lapi/mmap.h b/include/lapi/mmap.h
index e8e5917..b121e43 100644
--- a/include/lapi/mmap.h
+++ b/include/lapi/mmap.h
@@ -23,4 +23,36 @@
#define MAP_HUGETLB 0x40000
#endif
+#ifndef MADV_REMOVE
+#define MADV_REMOVE 9
+#endif
+
+#ifndef MADV_DONTFORK
+#define MADV_DONTFORK 10
+#define MADV_DOFORK 11
+#endif
+
+#ifndef MADV_HWPOISON
+#define MADV_HWPOISON 100
+#endif
+
+#ifndef MADV_SOFT_OFFLINE
+#define MADV_SOFT_OFFLINE 101
+#endif
+
+#ifndef MADV_MERGEABLE
+#define MADV_MERGEABLE 12
+#define MADV_UNMERGEABLE 13
+#endif
+
+#ifndef MADV_HUGEPAGE
+#define MADV_HUGEPAGE 14
+#define MADV_NOHUGEPAGE 15
+#endif
+
+#ifndef MADV_DONTDUMP
+#define MADV_DONTDUMP 16
+#define MADV_DODUMP 17
+#endif
+
#endif /* __LAPI_MMAP_H__ */
--
1.8.3.1
next reply other threads:[~2016-05-25 6:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-25 6:29 Li Wang [this message]
2016-05-25 6:29 ` [LTP] [PATCH V3 2/3] syscalls/madvise01: reconstruct and convert to new API Li Wang
2016-05-25 6:29 ` [LTP] [PATCH V3 3/3] syscalls/madvise02: " Li Wang
2016-06-06 13:03 ` Cyril Hrubis
2016-06-01 14:24 ` [LTP] [PATCH V3 2/3] syscalls/madvise01: " Cyril Hrubis
2016-06-01 14:22 ` [LTP] [PATCH V3 1/3] ltp/lapi: add some madvices definition Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1464157779-6883-1-git-send-email-liwang@redhat.com \
--to=liwang@redhat.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox