Bug 3188 - mremap() should depend on _GNU_SOURCE
Summary: mremap() should depend on _GNU_SOURCE
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.4
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-09 04:16 UTC by Michael Kerrisk
Modified: 2016-05-17 17:59 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Kerrisk 2006-09-09 04:16:30 UTC
In <sys/mman.h>, mremap() is exposed if __USE_MISC is set, that is if
_BSD_SOURCE or _SVID_SOURCE is defined.  

Since mremap() is Linux specific, this mremap() should instead depend on
_GNU_SOURCE.  Note also that in <bits/mman.h>, MREMAP_MAYMOVE and MREMAP_FIXED
are only exposed if _GNU_SOURCE is set, so that _GNU_SOURCE is in any case required.
Comment 1 Ulrich Drepper 2006-09-09 16:22:07 UTC
Changed in cvs.