1l, 2l, 7l, kl, vl: add missing setmalloctag() dummy in compat.c

This commit is contained in:
cinap_lenrek 2014-05-02 05:17:40 +02:00
parent f7f3e4780a
commit bd3e9e4b7c
5 changed files with 35 additions and 5 deletions

View file

@ -38,7 +38,7 @@ calloc(ulong m, ulong n)
void*
realloc(void *p, ulong n)
{
fprint(2, "realloc(0x%p, %ld) called\n", p, n);
fprint(2, "realloc(0x%p %ld) called\n", p, n);
abort();
return 0;
}
@ -48,3 +48,9 @@ mysbrk(ulong size)
{
return sbrk(size);
}
void
setmalloctag(void *v, uintptr pc)
{
USED(v, pc);
}

View file

@ -48,3 +48,9 @@ mysbrk(ulong size)
{
return sbrk(size);
}
void
setmalloctag(void *v, uintptr pc)
{
USED(v, pc);
}

View file

@ -36,9 +36,9 @@ calloc(ulong m, ulong n)
}
void*
realloc(void*, ulong)
realloc(void *p, ulong n)
{
fprint(2, "realloc called\n");
fprint(2, "realloc(0x%p %ld) called\n", p, n);
abort();
return 0;
}
@ -48,3 +48,9 @@ mysbrk(ulong size)
{
return sbrk(size);
}
void
setmalloctag(void *v, uintptr pc)
{
USED(v, pc);
}

View file

@ -48,3 +48,9 @@ mysbrk(ulong size)
{
return sbrk(size);
}
void
setmalloctag(void *v, uintptr pc)
{
USED(v, pc);
}

View file

@ -36,9 +36,9 @@ calloc(ulong m, ulong n)
}
void*
realloc(void*, ulong)
realloc(void *p, ulong n)
{
fprint(2, "realloc called\n");
fprint(2, "realloc(0x%p %ld) called\n", p, n);
abort();
return 0;
}
@ -48,3 +48,9 @@ mysbrk(ulong size)
{
return sbrk(size);
}
void
setmalloctag(void *v, uintptr pc)
{
USED(v, pc);
}