[comp.sys.amiga] Manx-C realloc

2011_552@uwovax.uwo.ca (12/04/88)

I have been trying to find the realloc() function in the MANX-C library.  It
is listed on p. lib.31 under malloc.  However, when I check the source for
malloc.c and calloc.c, there is no entry for realloc().  I grepped all the
files in misc.arc and there is no mention of realloc.  Could somebody upload
the source for a realloc() function which will work with Manx-C?  Thanks.

eric@hector.UUCP (Eric Lavitsky) (12/07/88)

In article <1026@uwovax.uwo.ca> 2011_552@uwovax.uwo.ca writes:
>I have been trying to find the realloc() function in the MANX-C library.  It
>is listed on p. lib.31 under malloc.  However, when I check the source for
>malloc.c and calloc.c, there is no entry for realloc().  I grepped all the
>files in misc.arc and there is no mention of realloc.  Could somebody upload
>the source for a realloc() function which will work with Manx-C?  Thanks.

I believe you have to link with heapmem.o or heapmem.o32 to get realloc()
and calloc().

-Eric

ARPA:	eric@topaz.rutgers.edu or eric@ulysses.att.com
UUCP:	{att,ucbvax}!ulysses!eric or {wherever!}rutgers!topaz!eric
SNAIL:	34 Maplehurst Ln, Piscataway, NJ 08854

"To err is human; To really f*ck up requires the root password."

space@sns.UUCP (Lars Soltau) (12/07/88)

In article <1026@uwovax.uwo.ca> 2011_552@uwovax.uwo.ca writes:
>I have been trying to find the realloc() function in the MANX-C library.  It
>is listed on p. lib.31 under malloc.  However, when I check the source for
>malloc.c and calloc.c, there is no entry for realloc().  I grepped all the
>files in misc.arc and there is no mention of realloc.  Could somebody upload
>the source for a realloc() function which will work with Manx-C?  Thanks.

realloc() is not in the C library c.lib or c32.lib or whatever. This is
because realloc() can only be used in conjunction with another version of
malloc(), which allocates contiguos blocks of memory. You'll find a
complete memory allocation library in heapmem.o/heapmem.o32 . Just link
with this file.

BTW, all this is in Aztec C Manual page lib68.8, BREAK, if you're wondering
where I've got the news. It's kinda hard to find, however.
-- 
Lars Soltau	UUCP: ...uunet!unido!sns!space		BIX: -- no bucks --

Here's looking at you, kid!
		-- the Medusa

2011_552@uwovax.uwo.ca (12/11/88)

In article <175@sns.UUCP>, space@sns.UUCP (Lars Soltau) writes:
> In article <1026@uwovax.uwo.ca> 2011_552@uwovax.uwo.ca writes:
>>I have been trying to find the realloc() function in the MANX-C library.  It
>>is listed on p. lib.31 under malloc.  However, when I check the source for
>>malloc.c and calloc.c, there is no entry for realloc().  I grepped all the
>>files in misc.arc and there is no mention of realloc.  Could somebody upload
>>the source for a realloc() function which will work with Manx-C?  Thanks.
> 
> realloc() is not in the C library c.lib or c32.lib or whatever. This is
> because realloc() can only be used in conjunction with another version of
> malloc(), which allocates contiguos blocks of memory. You'll find a
> complete memory allocation library in heapmem.o/heapmem.o32 . Just link
> with this file.
> 
> BTW, all this is in Aztec C Manual page lib68.8, BREAK, if you're wondering
> where I've got the news. It's kinda hard to find, however.
> -- 
> Lars Soltau	UUCP: ...uunet!unido!sns!space		BIX: -- no bucks --
> 
> Here's looking at you, kid!
> 		-- the Medusa

2011_552@uwovax.uwo.ca (Terry Gaetz (UWO Astronomy); Bitnet: gaetz@uwovax) (12/11/88)

In article <175@sns.UUCP>, space@sns.UUCP (Lars Soltau) writes:
> In article <1026@uwovax.uwo.ca> 2011_552@uwovax.uwo.ca writes:
>>I have been trying to find the realloc() function in the MANX-C library. 
[lines deleted]
> 
> realloc() is not in the C library c.lib or c32.lib or whatever. This is
> because realloc() can only be used in conjunction with another version of
> malloc(), which allocates contiguos blocks of memory. You'll find a
> complete memory allocation library in heapmem.o/heapmem.o32 . Just link
> with this file.
> 
> BTW, all this is in Aztec C Manual page lib68.8, BREAK, if you're wondering
> where I've got the news. It's kinda hard to find, however.

I was sent source for a realloc() function which appears to originate with
Manx, although I haven't tried it out yet.  There is also a source listing
realloc34b.c on the Manx BBS.  Thanks for the pointer to heapmem.o.

                                 Terry Gaetz
                                 BITNET: gaetz@uwovax

2011_552@uwovax.uwo.ca (Terry Gaetz (UWO Astronomy); Bitnet: gaetz@uwovax) (12/11/88)

In article <175@sns.UUCP>, space@sns.UUCP (Lars Soltau) writes:
> In article <1026@uwovax.uwo.ca> 2011_552@uwovax.uwo.ca writes:
>>I have been trying to find the realloc() function in the MANX-C library. 
[lines deleted]
> 
> realloc() is not in the C library c.lib or c32.lib or whatever. This is
> because realloc() can only be used in conjunction with another version of
> malloc(), which allocates contiguos blocks of memory. You'll find a
> complete memory allocation library in heapmem.o/heapmem.o32 . Just link
> with this file.
> 
> BTW, all this is in Aztec C Manual page lib68.8, BREAK, if you're wondering
> where I've got the news. It's kinda hard to find, however.

Somebody sent me source for a realloc() function which appears to originate with
Manx, although I haven't tried it out yet.  There is also a source listing
realloc34b.c on the Manx BBS which appears to be the same function.  Thanks
for the pointer to heapmem.o.

                                 Terry Gaetz