[PATCH] Add MAP_HUGETLB and MAP_STACK defines for hppa

Helge Deller deller@gmx.de
Sat Jan 2 22:31:00 GMT 2016


The attached patch adds some upstream defines like MAP_HUGETLB and MAP_STACK 
in mman.h for the hppa architecture. 

The glibc mman.h header file for the hppa architecture (sysdeps/unix/sysv/linux/hppa/bits/mman.h)
is missing the Linux upstream defines for MAP_HUGETLB, MCL_ONFAULT, MADV_HUGEPAGE, MADV_NOHUGEPAGE,
MADV_DONTDUMP and MADV_DODUMP. Those are added by this patch.

The existing MADV_xxK_PAGES defines were dropped upstream, because they were
originally added many years ago based on a proposed patch for the Linux kernel
which was never applied. So, this patch drops those unneeded defines.

The change closes BZ #19285].

Please install if okay.

Thanks,
Helge


2016-01-02  Helge Deller  <deller@gmx.de>

        [BZ #19285]
        * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
        (MAP_HUGETLB, MCL_ONFAULT): Likewise.
        (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
        (MADV_xxK_PAGES): Remove.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mman.hppa.patch
Type: text/x-diff
Size: 2286 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160102/af3076d9/attachment.bin>


More information about the Libc-alpha mailing list