Mail Archives: djgpp/1997/11/09/04:46:33
Christopher Croughton 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?
Read the documentation. Start info and find libc.a. If you haven't got
the info program, then go to wherever you got DJGPP and download
txi360b.zip.
libc.a lists the standard C functions. If these are supported by gcc
under Linux (which DJGPP is ported from) then they should be there, but
some functions aren't implemented (such as pipe() or fork()) because
they can't be done under DOS. If you want to use pipes, then download
Linux, or buy Win95 or NT.
Hope this helps,
Barry Rodewald.
- Raw text -