lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1473684871-209320-3-git-send-email-wangnan0@huawei.com>
Date:   Mon, 12 Sep 2016 12:54:30 +0000
From:   Wang Nan <wangnan0@...wei.com>
To:     <acme@...nel.org>
CC:     <linux-kernel@...r.kernel.org>, <lizefan@...wei.com>,
        <pi3orama@....com>, Wang Nan <wangnan0@...wei.com>
Subject: [PATCH 2/3] tools include: Introduce bits/mman.h

Makes '#include <sys/mman.h>' automatically uses macros defined in
uapi/asm for each architecture. At least for glibc, <sys/mman.h>
includes <bits/mman.h> for mmap macros. This patch replaces
bits/mman.h, makes it use headers in uapi.

Signed-off-by: Wang Nan <wangnan0@...wei.com>
Cc: Arnaldo Carvalho de Melo <acme@...nel.org>
---
 tools/include/bits/mman.h | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 tools/include/bits/mman.h

diff --git a/tools/include/bits/mman.h b/tools/include/bits/mman.h
new file mode 100644
index 0000000..9be2717
--- /dev/null
+++ b/tools/include/bits/mman.h
@@ -0,0 +1,6 @@
+#ifndef TOOLS_INCLUDE_BITS_MMAN_H
+#define TOOLS_INCLUDE_BITS_MMAN_H
+
+#include <linux/mman.h>
+
+#endif
-- 
1.8.3.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ