mailing list of musl libc
 help / color / mirror / code / Atom feed
* a workaround when mremap() is not functional?
@ 2017-06-11  9:51 u-uy74
  2017-06-11 13:17 ` Rich Felker
  0 siblings, 1 reply; 4+ messages in thread
From: u-uy74 @ 2017-06-11  9:51 UTC (permalink / raw)
  To: musl

Is there any variation to the musl malloc which would make realloc()
work when the Linux ABI implementation lacks a usable mremap()?

Otherwse realloc() under Linux ABI in FreeBSD fails due to mremap()
being mostly a stub and returning -1/ENOMEM for any growth.

LinuxABI under FreeBSD apparently behaves differently than the
Linux kernel, which can be seen as bugs when the purpose is "Linux
compatibility".

OTOH it would be nice to reduce the strength of the conformity
requirements by musl, to be able to accomodate the extra platform
(possibly could help on other platforms too).

Regards,
Rune



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-11 14:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-11  9:51 a workaround when mremap() is not functional? u-uy74
2017-06-11 13:17 ` Rich Felker
2017-06-11 13:38   ` Rich Felker
2017-06-11 14:28     ` u-uy74

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).