Bug 85955
| Summary: | undefined flag for mremap(2) in sys/mman.h | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Daniel J Blueman <daniel.blueman> |
| Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
| Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.3 | CC: | fweimer |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2003-03-11 14:37:04 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
MREMAP_MAYMOVE is a GNU extension, so you need to -D_GNU_SOURCE to get it, otherwise it would break namespace of various standards. See info libc on Feature Set Macros. |
The man page for mremap(2) says to include these header files: #include <unistd.h> #include <sys/mman.h> The flags argument can take the flag 'MREMAP_MAYMOVE' which is not defined in either of those files, but is in linux/mman.h. See mremap(2) and grep /usr/include/sys/mman.h for MREMAP_MAYMOVE