Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 85955 - undefined flag for mremap(2) in sys/mman.h
Summary: undefined flag for mremap(2) in sys/mman.h
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-03-11 14:24 UTC by Daniel J Blueman
Modified: 2016-11-24 14:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-03-11 14:37:04 UTC


Attachments (Terms of Use)

Description Daniel J Blueman 2003-03-11 14:24:44 UTC
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

Comment 1 Jakub Jelinek 2003-03-11 14:37:04 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.