Hello John-Mark

On 02.07.09, you wrote:

> 
> I've tidied up the imagemap code and stopped it trying to call
> calloc(0, ...), which was probably your problem.

Yes thanks, calloc 0 was the problem.your new file work and also when i
change the 0 to 1 in to places in old file work.

there is calloc use from netbsd.and this fail on 0.but i am not sure what
unix specification say to this.if all Unix accept 0, i change AOS 68k lib
to be compatible. 

* Copyright (c) 1990 The Regents of the University of California.
 * All rights reserved.

.....
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)calloc.c    5.5 (Berkeley) 5/17/90";
#endif /* LIBC_SCCS and not lint */

#define _KERNEL
#include "ixemul.h"

#include <stdlib.h>
#include <string.h>

void *
calloc (size_t num, size_t size)
{
    register void *p;

    size *= num;
    if ((p = (void *) syscall (SYS_malloc, size)))
        bzero(p, size);
    return(p);
}

void
cfree(void *p)
{
    (void)syscall (SYS_free, p);
} 

> 
> 
> J.
> 
Regards


Reply via email to