On Wed, 14 Apr 1999, Poul-Henning Kamp wrote: > In message <199904141501.laa25...@kot.ne.mediaone.net>, Mikhail Teterin > writes: > >Poul-Henning Kamp once stated: > > > >=malloc() on FreeBSD returns NULL when it cannot allocate the memory > >=asked for. > > > >=If you have an example where this is not the case I would VERY > >=much like to see it. > > > >I believe, a number of examples were given, when the use of the non-NULL > >pointer returned by malloc resulted in the program being killed. > > No, the examples I have seen showed the system killing a (somewhat) > random large process in an attempt to avoid deadlock. > > I guess you can interpret it the way above if you insist on using a > very narrow application oriented focus. > > Ignoring the larger issues is not a modus operandi I subscribe to. > > Anyway, what you're asking for is really resource reservation. > > Sorry FreeBSD doesn't support resource reservation for memory.
mlock()? BTW, why can't anyone explain why the old behavior WAS THAT the process would get NULL? Now it's this... > > -- > Poul-Henning Kamp FreeBSD coreteam member > p...@freebsd.org "Real hackers run -current on their laptop." > FreeBSD -- It will take a long time before progress goes too far! > > > To Unsubscribe: send mail to majord...@freebsd.org > with "unsubscribe freebsd-current" in the body of the message > Brian Feldman _ __ ___ ____ ___ ___ ___ gr...@unixhelp.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ __ \ |) | http://www.freebsd.org _ |___/___/___/ To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message