[PATCH] add __ASSUME_MREMAP

Pino Toscano toscano.pino@tiscali.it
Sat Nov 10 18:06:00 GMT 2012


Hi,

just like it is done also for other functions, add a __ASSUME_MREMAP in 
kernel-features.h (only in the Linux version) to indicate the 
availability of mremap; this is used to uniform the two existing checks:
- malloc.c enables it if linux is defined
- libio uses _G_HAVE_MREMAP (from _G_config.h)
The comment for __ASSUME_MREMAP in kernel-features.h has been taken from 
malloc.c, just above the HAVE_MREMAP definition.

After this patch, sysdeps/unix/sysv/linux/_G_config.h becomes the same 
as sysdeps/generic/_G_config.h; after review and commit of this, I will 
send a new patch to get rid of the linux _G_config.h.

Thanks,
-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mremap.diff
Type: text/x-patch
Size: 2570 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20121110/bf1ac64c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20121110/bf1ac64c/attachment.sig>


More information about the Libc-alpha mailing list