Page 1 of 1
morecore vs sbrk
Posted: Wed Mar 10, 2004 5:14 am
by Candy
When using relocatable shared libraries, does it offer any true advantage to have morecore instead of sbrk?
Re:morecore vs sbrk
Posted: Wed Mar 10, 2004 5:46 am
by Schol-R-LEA
In your own OS? That depends on how you write them, and how your kernel allocates application memory. Since (AFAICT) neither of them are defined by the POSIX Standard (the
man page for sbrk() states that "brk and sbrk are not defined in the C Standard and are deliberately excluded from the POSIX.1 standard"), you have no real need to support either function at all.