Mail Archives: djgpp/1997/11/07/02:32:23
Christopher Croughton <crough45 AT amc DOT de> wrote:
> How standard is the sbrk(2) function? It's on every Unix I've seen,
> and appears to be in DJGPP as well, but it's not as far as I can tell
> ANSI. How much can I rely on it being there, and is using it likely
> to mess up malloc etc.? Does it actually work under DJGPP as it does
> in Unix?
'man sbrk' on my Linux system yields:
CONFORMING TO
BSD 4.3
brk and sbrk are not defined in the C Standard and are
deliberately excluded from the POSIX.1 standard (see para-
graphs B.1.1.1.3 and B.8.3.3).
sbrk() appears to do the same thing on either Linux or DJGPP from their
descriptions, but I can't conceive of any way to verify this.
--
[- firewind -]
[- email: firewind AT metroid DOT dyn DOT ml DOT org (home), firewind AT aurdev DOT com (work) -]
[- "You're just jealous because the voices talk to -me-." -]
[- Have a good day, and enjoy your C. -]
[- (on a crusade of grumpiness where grumpiness is due) -]
- Raw text -