News for hackers. Stuff that matters.
Re:Malloc Never Fails (2012) by potyl on Monday June 10, 2019 @06:21AM (#20145339)
> [...] Linux blatantly violates the language specification [...]

We can't expect a kernel to be aware of all language specifications.

Yes, I know that in this case C is both the program's and the Kernel's language in this example but even then. Languages go through iterations (versions) and a Kernel can't be required to obey all languages which might run under it.

Re:Malloc Never Fails (2012) by mehrdadn on Monday June 10, 2019 @07:26AM (#20145641)
If you're suggesting Linux did not intend its malloc implement the corresponding function in the C standard then you're just lying to yourself. That's exactly why it's there and that's exactly what it's used for.
Re:Malloc Never Fails (2012) by cesarb on Monday June 10, 2019 @06:11PM (#20151387)
> If you're suggesting Linux did not intend its malloc implement

Linux (the kernel) doesn't have malloc. It's part of the C library, which is a completely separate project. What Linux implements is brk and mmap.

Re:Malloc Never Fails (2012) by mehrdadn on Monday June 10, 2019 @06:16PM (#20151421)
Playing loose with the word Linux here. Play along a bit maybe?