www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/09/04:46:33

From: Barry Rodewald <bsr AT hn DOT pl DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Memory allocation
Date: Fri, 07 Nov 1997 11:38:14 +1300
Lines: 19
Message-ID: <346246D6.631F@hn.pl.net>
References: <97Nov6.200722gmt+0100 DOT 11649 AT internet01 DOT amc DOT de>
NNTP-Posting-Host: bsr.hn.planet.gen.nz
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019