Open vmlemon opened 5 years ago
Focusing on high-level API calls, but ignoring things like dynamic linking, ELF, and internal-implementation-specific things (e.g. the execution flow, behind the system function calls), to run something like uname (PPC64/Fedora 28), we'd need to implement:
This wouldn't be impossible (Linux has an Open Source implementation, and I implemented a version of uname(), in Enryo, for instance), but it'd only be enough to run one command binary (uname), as a proof of concept...
For a first run of "gcc -static hello.c", without following forks:
For what it's worth, it could be useful to implement the interfaces at https://github.com/NickStrupat/CacheLineSize/blob/master/CacheLineSize.c, for getting the size of the system cache lines, if this gets off the ground.
Some of these, we can port from FreeBSD (https://github.com/freebsd/freebsd/tree/a4c47e1ddee5bbf6407a4c01a0274ed274a9beda/lib/libc/stdio)
The stuff from the liblinux branch is now in master, and propagated into most of the other working branches, since it doesn't break anything.
Information on Linux syscalls is available at https://fedora.juszkiewicz.com.pl/syscalls.html, https://stackoverflow.com/questions/46752964/what-is-callq-instruction, https://github.com/strace/strace/blob/v4.26/linux/x86_64/syscallent.h, https://unix.stackexchange.com/questions/421750/where-do-you-find-the-syscall-table-for-linux, and http://manugarg.appspot.com/systemcallinlinux2_6.html
Solaris calls, in https://docs.oracle.com/cd/E19695-01/802-1930-02/802-1930-02.pdf, and https://zinascii.com/2016/the-illumos-syscall-handler.html
Since the userland kinda compiles, on x86-64, at the moment (still have to fix the kernel), with GCC6, I started trying to port some things (the Sony Clefia reference source compiles, and links, if I dump it in with /user/apps/system/, and add it to the Makefile), and investigated trying to plug in nedmalloc.
Right now, in master, we have a Makefile
/Makefile.in
pair, in /user/lib/linux, which is connected to the Makefile
for the libraries (in Enryo, we used to lump everything into io
, which caused problems), and I moved the bare essential files (malloc.c.h, nedmalloc.c, and nedmalloc.h, from the distribution file), and some empty dummy headers, to satisfy the source file requirements:
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ tree ../../include/
../../include/
├── assert.h
├── errno.h
├── fcntl.h
├── l4
│ ├── amd64
│ │ ├── arch.h
│ │ ├── compat.h
│ │ ├── kdebug.h
│ │ ├── specials.h
│ │ ├── syscalls.h
│ │ ├── tracebuffer.h
│ │ ├── types.h
│ │ └── vregs.h
│ ├── arch.h
│ ├── bootinfo.h
│ ├── ia32
│ │ ├── arch.h
│ │ ├── kdebug.h
│ │ ├── specials.h
│ │ ├── syscalls.h
│ │ ├── tracebuffer.h
│ │ ├── types.h
│ │ └── vregs.h
│ ├── ipc.h
│ ├── kcp.h
│ ├── kdebug.h
│ ├── kip.h
│ ├── message.h
│ ├── misc.h
│ ├── pagefault.h
│ ├── powerpc
│ │ ├── arch.h
│ │ ├── kdebug.h
│ │ ├── specials.h
│ │ ├── syscalls.h
│ │ ├── tracebuffer.h
│ │ ├── types.h
│ │ └── vregs.h
│ ├── powerpc64
│ │ ├── asm.h
│ │ ├── kdebug.h
│ │ ├── specials.h
│ │ ├── syscalls.h
│ │ ├── tracebuffer.h
│ │ ├── types.h
│ │ └── vregs.h
│ ├── schedule.h
│ ├── sigma0.h
│ ├── space.h
│ ├── thread.h
│ ├── tracebuffer.h
│ └── types.h
├── l4io.h
├── pthread.h
├── stdio.h
├── stdlib.h
├── string.h
├── sys
│ ├── mman.h
│ ├── param.h
│ ├── time.h
│ └── types.h
├── time.h
└── unistd.h
The L4-specific files were already present.
Trying to build nedmalloc gets as far as this, right now:
===> nedmalloc.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c nedmalloc.c -o nedmalloc.o
nedmalloc.c:117:4: warning: #warning DEBUG may not be defined but without NDEBUG being defined allocator will run with assert checking! Define NDEBUG to run at full speed. [-Wcpp]
#warning DEBUG may not be defined but without NDEBUG being defined allocator will run with assert checking! Define NDEBUG to run at full speed.
^~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘posix_mmap’:
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
#define MMAP_FLAGS (MAP_PRIVATE)
^
malloc.c.h:1642:15: note: in expansion of macro ‘MMAP_FLAGS’
int flags = MMAP_FLAGS, fd = -1;
^~~~~~~~~~
malloc.c.h:1635:31: note: each undeclared identifier is reported only once for each function it appears in
#define MMAP_FLAGS (MAP_PRIVATE)
^
malloc.c.h:1642:15: note: in expansion of macro ‘MMAP_FLAGS’
int flags = MMAP_FLAGS, fd = -1;
^~~~~~~~~~
malloc.c.h:1645:19: warning: implicit declaration of function ‘open’ [-Wimplicit-function-declaration]
dev_zero_fd = open("/dev/zero", O_RDWR);
^~~~
malloc.c.h:1645:37: error: ‘O_RDWR’ undeclared (first use in this function)
dev_zero_fd = open("/dev/zero", O_RDWR);
^~~~~~
malloc.c.h:1660:11: warning: implicit declaration of function ‘mmap’ [-Wimplicit-function-declaration]
ptr = mmap(baseaddress, size, MMAP_PROT, flags, fd, 0);
^~~~
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
#define MMAP_PROT (PROT_READ|PROT_WRITE)
^
malloc.c.h:1660:35: note: in expansion of macro ‘MMAP_PROT’
ptr = mmap(baseaddress, size, MMAP_PROT, flags, fd, 0);
^~~~~~~~~
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
#define MMAP_PROT (PROT_READ|PROT_WRITE)
^
malloc.c.h:1660:35: note: in expansion of macro ‘MMAP_PROT’
ptr = mmap(baseaddress, size, MMAP_PROT, flags, fd, 0);
^~~~~~~~~
malloc.c.h: In function ‘posix_direct_mmap’:
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
#define MMAP_FLAGS (MAP_PRIVATE)
^
malloc.c.h:1671:15: note: in expansion of macro ‘MMAP_FLAGS’
int flags = MMAP_FLAGS, fd = -1;
^~~~~~~~~~
malloc.c.h:1674:37: error: ‘O_RDWR’ undeclared (first use in this function)
dev_zero_fd = open("/dev/zero", O_RDWR);
^~~~~~
malloc.c.h:1682:2: warning: #warning Cannot figure out how to request memory from the top of the address space! [-Wcpp]
#warning Cannot figure out how to request memory from the top of the address space!
^~~~~~~
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
#define MMAP_PROT (PROT_READ|PROT_WRITE)
^
malloc.c.h:1684:23: note: in expansion of macro ‘MMAP_PROT’
ptr = mmap(0, size, MMAP_PROT, flags, fd, 0);
^~~~~~~~~
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
#define MMAP_PROT (PROT_READ|PROT_WRITE)
^
malloc.c.h:1684:23: note: in expansion of macro ‘MMAP_PROT’
ptr = mmap(0, size, MMAP_PROT, flags, fd, 0);
^~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h: At top level:
malloc.c.h:2055:3: error: unknown type name ‘pthread_t’
pthread_t threadid;
^~~~~~~~~
malloc.c.h: In function ‘pthread_acquire_lock’:
malloc.c.h:2069:3: error: unknown type name ‘pthread_t’
pthread_t mythreadid = CURRENT_THREAD;
^~~~~~~~~
malloc.c.h:2058:31: warning: implicit declaration of function ‘pthread_self’ [-Wimplicit-function-declaration]
#define CURRENT_THREAD pthread_self()
^
malloc.c.h:2069:26: note: in expansion of macro ‘CURRENT_THREAD’
pthread_t mythreadid = CURRENT_THREAD;
^~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2086:9: note: in expansion of macro ‘assert’
assert(!sl->threadid);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2086:9: note: in expansion of macro ‘assert’
assert(!sl->threadid);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2086:9: note: in expansion of macro ‘assert’
assert(!sl->threadid);
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:2097:7: warning: implicit declaration of function ‘sched_yield’ [-Wimplicit-function-declaration]
sched_yield();
^~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘pthread_release_lock’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2108:3: note: in expansion of macro ‘assert’
assert(*lp != 0);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2108:3: note: in expansion of macro ‘assert’
assert(*lp != 0);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2109:3: note: in expansion of macro ‘assert’
assert(sl->threadid == CURRENT_THREAD);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2109:3: note: in expansion of macro ‘assert’
assert(sl->threadid == CURRENT_THREAD);
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘pthread_try_lock’:
malloc.c.h:2117:3: error: unknown type name ‘pthread_t’
pthread_t mythreadid = CURRENT_THREAD;
^~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2131:7: note: in expansion of macro ‘assert’
assert(!sl->threadid);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2131:7: note: in expansion of macro ‘assert’
assert(!sl->threadid);
^~~~~~
malloc.c.h: In function ‘init_mparams’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3403:7: note: in expansion of macro ‘ABORT’
ABORT;
^~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3403:7: note: in expansion of macro ‘ABORT’
ABORT;
^~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:3436:26: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
magic = (size_t)(time(0) ^ (size_t)0x55555555U);
^~~~
malloc.c.h: In function ‘internal_malloc_stats’:
malloc.c.h:3808:5: warning: implicit declaration of function ‘fprintf’ [-Wimplicit-function-declaration]
fprintf(stderr, "max system bytes = %10lu\n", (unsigned long)(maxfp));
^~~~~~~
malloc.c.h:3808:5: warning: incompatible implicit declaration of built-in function ‘fprintf’
malloc.c.h:3808:5: note: include ‘<stdio.h>’ or provide a declaration of ‘fprintf’
malloc.c.h:3808:13: error: ‘stderr’ undeclared (first use in this function)
fprintf(stderr, "max system bytes = %10lu\n", (unsigned long)(maxfp));
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘mmap_alloc’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4103:7: note: in expansion of macro ‘assert’
assert(is_aligned(chunk2mem(p)));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4103:7: note: in expansion of macro ‘assert’
assert(is_aligned(chunk2mem(p)));
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘prepend_alloc’:
malloc.c.h:4198:18: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
size_t psize = (char*)oldfirst - (char*)p;
^
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4203:3: note: in expansion of macro ‘assert’
assert((char*)oldfirst > (char*)q);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4203:3: note: in expansion of macro ‘assert’
assert((char*)oldfirst > (char*)q);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4204:3: note: in expansion of macro ‘assert’
assert(pinuse(oldfirst));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4204:3: note: in expansion of macro ‘assert’
assert(pinuse(oldfirst));
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4205:3: note: in expansion of macro ‘assert’
assert(qsize >= MIN_CHUNK_SIZE);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4205:3: note: in expansion of macro ‘assert’
assert(qsize >= MIN_CHUNK_SIZE);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3849:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3849:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3850:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3850:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3851:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3851:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3860:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3860:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4227:24: warning: conversion to ‘unsigned int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
insert_chunk(m, q, qsize);
^
malloc.c.h:3072:20: note: in definition of macro ‘compute_tree_index’
unsigned int X = S >> TREEBIN_SHIFT;\
^
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
malloc.c.h: In function ‘add_segment’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4256:3: note: in expansion of macro ‘assert’
assert(is_aligned(ss));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4256:3: note: in expansion of macro ‘assert’
assert(is_aligned(ss));
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4274:3: note: in expansion of macro ‘assert’
assert(nfences >= 2);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4274:3: note: in expansion of macro ‘assert’
assert(nfences >= 2);
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4279:20: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
size_t psize = csp - old_top;
^~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4282:24: warning: conversion to ‘unsigned int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
insert_chunk(m, q, psize);
^
malloc.c.h:3072:20: note: in definition of macro ‘compute_tree_index’
unsigned int X = S >> TREEBIN_SHIFT;\
^
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘sys_alloc’:
malloc.c.h:4408:24: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
size_t ssize = end - br;
^~~
In file included from nedmalloc.c:168:0:
malloc.c.h:628:32: error: ‘errno’ undeclared (first use in this function)
#define MALLOC_FAILURE_ACTION errno = ENOMEM;
^
malloc.c.h:4487:3: note: in expansion of macro ‘MALLOC_FAILURE_ACTION’
MALLOC_FAILURE_ACTION;
^~~~~~~~~~~~~~~~~~~~~
malloc.c.h:628:40: error: ‘ENOMEM’ undeclared (first use in this function)
#define MALLOC_FAILURE_ACTION errno = ENOMEM;
^
malloc.c.h:4487:3: note: in expansion of macro ‘MALLOC_FAILURE_ACTION’
MALLOC_FAILURE_ACTION;
^~~~~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘release_unused_segments’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4510:9: note: in expansion of macro ‘assert’
assert(segment_holds(sp, (char*)sp));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4510:9: note: in expansion of macro ‘assert’
assert(segment_holds(sp, (char*)sp));
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:1692:45: warning: implicit declaration of function ‘munmap’ [-Wimplicit-function-declaration]
#define MUNMAP_DEFAULT(h, a, s) munmap((a), (s))
^
malloc.c.h:1968:49: note: in expansion of macro ‘MUNMAP_DEFAULT’
#define CALL_MUNMAP(h, a, s) MUNMAP_DEFAULT((h), (a), (s))
^~~~~~~~~~~~~~
malloc.c.h:4518:13: note: in expansion of macro ‘CALL_MUNMAP’
if (CALL_MUNMAP(0/*segment*/, base, size) == 0) {
^~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4526:37: warning: conversion to ‘unsigned int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
insert_large_chunk(m, tp, psize);
^
malloc.c.h:3072:20: note: in definition of macro ‘compute_tree_index’
unsigned int X = S >> TREEBIN_SHIFT;\
^
malloc.c.h:4526:11: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(m, tp, psize);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4526:11: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(m, tp, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4526:11: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(m, tp, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4526:11: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(m, tp, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4526:11: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(m, tp, psize);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4536:23: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘int’ may change the sign of the result [-Wsign-conversion]
m->release_checks = ((nsegs > MAX_RELEASE_CHECK_RATE)?
^
malloc.c.h: In function ‘sys_trim’:
malloc.c.h:4578:28: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
released = old_br - new_br;
^~~~~~
malloc.c.h: In function ‘tmalloc_large’:
malloc.c.h:4614:22: warning: conversion to ‘unsigned int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
compute_tree_index(nb, idx);
^
malloc.c.h:3072:20: note: in definition of macro ‘compute_tree_index’
unsigned int X = S >> TREEBIN_SHIFT;\
^
malloc.c.h:3176:7: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
J = __builtin_ctz(X); \
^
malloc.c.h:4643:7: note: in expansion of macro ‘compute_bit2idx’
compute_bit2idx(leastbit, i);
^~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4661:7: note: in expansion of macro ‘assert’
assert(chunksize(v) == rsize + nb);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4661:7: note: in expansion of macro ‘assert’
assert(chunksize(v) == rsize + nb);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4669:30: warning: conversion to ‘unsigned int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
insert_chunk(m, r, rsize);
^
malloc.c.h:3072:20: note: in definition of macro ‘compute_tree_index’
unsigned int X = S >> TREEBIN_SHIFT;\
^
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4674:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(m);
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4674:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(m);
^~~~~~~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘tmalloc_small’:
malloc.c.h:3176:7: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
J = __builtin_ctz(X); \
^
malloc.c.h:4685:3: note: in expansion of macro ‘compute_bit2idx’
compute_bit2idx(leastbit, i);
^~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4699:5: note: in expansion of macro ‘assert’
assert(chunksize(v) == rsize + nb);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4699:5: note: in expansion of macro ‘assert’
assert(chunksize(v) == rsize + nb);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3889:5: note: in expansion of macro ‘assert’
assert(is_small(DVS));\
^~~~~~
malloc.c.h:4707:9: note: in expansion of macro ‘replace_dv’
replace_dv(m, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3889:5: note: in expansion of macro ‘assert’
assert(is_small(DVS));\
^~~~~~
malloc.c.h:4707:9: note: in expansion of macro ‘replace_dv’
replace_dv(m, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4707:9: note: in expansion of macro ‘replace_dv’
replace_dv(m, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4707:9: note: in expansion of macro ‘replace_dv’
replace_dv(m, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4707:9: note: in expansion of macro ‘replace_dv’
replace_dv(m, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4707:9: note: in expansion of macro ‘replace_dv’
replace_dv(m, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4713:3: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(m);
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4713:3: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(m);
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘internal_realloc’:
malloc.c.h:628:32: error: ‘errno’ undeclared (first use in this function)
#define MALLOC_FAILURE_ACTION errno = ENOMEM;
^
malloc.c.h:4722:5: note: in expansion of macro ‘MALLOC_FAILURE_ACTION’
MALLOC_FAILURE_ACTION;
^~~~~~~~~~~~~~~~~~~~~
malloc.c.h:628:40: error: ‘ENOMEM’ undeclared (first use in this function)
#define MALLOC_FAILURE_ACTION errno = ENOMEM;
^
malloc.c.h:4722:5: note: in expansion of macro ‘MALLOC_FAILURE_ACTION’
MALLOC_FAILURE_ACTION;
^~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:4762:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(m, oldmem);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:4762:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(m, oldmem);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4786:9: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
memcpy(newmem, oldmem, (oc < bytes)? oc : bytes);
^~~~~~
malloc.c.h:4786:9: warning: incompatible implicit declaration of built-in function ‘memcpy’
malloc.c.h:4786:9: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘internal_memalign’:
malloc.c.h:628:32: error: ‘errno’ undeclared (first use in this function)
#define MALLOC_FAILURE_ACTION errno = ENOMEM;
^
malloc.c.h:4810:7: note: in expansion of macro ‘MALLOC_FAILURE_ACTION’
MALLOC_FAILURE_ACTION;
^~~~~~~~~~~~~~~~~~~~~
malloc.c.h:628:40: error: ‘ENOMEM’ undeclared (first use in this function)
#define MALLOC_FAILURE_ACTION errno = ENOMEM;
^
malloc.c.h:4810:7: note: in expansion of macro ‘MALLOC_FAILURE_ACTION’
MALLOC_FAILURE_ACTION;
^~~~~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4839:27: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
size_t leadsize = pos - (char*)(p);
^~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4866:7: note: in expansion of macro ‘assert’
assert (chunksize(p) >= nb);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4866:7: note: in expansion of macro ‘assert’
assert (chunksize(p) >= nb);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4867:7: note: in expansion of macro ‘assert’
assert((((size_t)(chunk2mem(p))) % alignment) == 0);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4867:7: note: in expansion of macro ‘assert’
assert((((size_t)(chunk2mem(p))) % alignment) == 0);
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘ialloc’:
malloc.c.h:2896:47: warning: conversion to ‘flag_t {aka unsigned int}’ from ‘long unsigned int’ may alter its value [-Wconversion]
#define disable_mmap(M) ((M)->mflags &= ~USE_MMAP_BIT)
^
malloc.c.h:4946:3: note: in expansion of macro ‘disable_mmap’
disable_mmap(m);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4957:3: note: in expansion of macro ‘assert’
assert(!is_mmapped(p));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4957:3: note: in expansion of macro ‘assert’
assert(!is_mmapped(p));
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4960:5: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
memset((size_t*)mem, 0, remainder_size - SIZE_T_SIZE - array_size);
^~~~~~
malloc.c.h:4960:5: warning: incompatible implicit declaration of built-in function ‘memset’
malloc.c.h:4960:5: note: include ‘<string.h>’ or provide a declaration of ‘memset’
malloc.c.h: In function ‘init_user_mstate’:
malloc.c.h:5381:3: warning: incompatible implicit declaration of built-in function ‘memset’
memset(m, 0, msize);
^~~~~~
malloc.c.h:5381:3: note: include ‘<string.h>’ or provide a declaration of ‘memset’
malloc.c.h:2059:73: warning: right-hand operand of comma expression has no effect [-Wunused-value]
#define INITIAL_LOCK(sl) ((sl)->threadid = 0, (sl)->l = (sl)->c = 0, 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
malloc.c.h:5382:3: note: in expansion of macro ‘INITIAL_LOCK’
INITIAL_LOCK(&m->mutex);
^~~~~~~~~~~~
malloc.c.h: In function ‘mspace_track_large_chunks’:
malloc.c.h:2896:47: warning: conversion to ‘flag_t {aka unsigned int}’ from ‘long unsigned int’ may alter its value [-Wconversion]
#define disable_mmap(M) ((M)->mflags &= ~USE_MMAP_BIT)
^
malloc.c.h:5441:7: note: in expansion of macro ‘disable_mmap’
disable_mmap(ms);
^~~~~~~~~~~~
malloc.c.h: In function ‘destroy_mspace’:
malloc.c.h:2060:31: warning: statement with no effect [-Wunused-value]
#define DESTROY_LOCK(sl) (0)
^
malloc.c.h:5461:5: note: in expansion of macro ‘DESTROY_LOCK’
DESTROY_LOCK(&ms->mutex);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5464:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5464:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_malloc_implementation’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:5491:11: note: in expansion of macro ‘assert’
assert(chunksize(p) == small_index2size(idx));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:5491:11: note: in expansion of macro ‘assert’
assert(chunksize(p) == small_index2size(idx));
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3867:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3867:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3868:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3868:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3869:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3869:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3877:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3877:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:3176:7: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
J = __builtin_ctz(X); \
^
malloc.c.h:5506:13: note: in expansion of macro ‘compute_bit2idx’
compute_bit2idx(leastbit, i);
^~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:5509:13: note: in expansion of macro ‘assert’
assert(chunksize(p) == small_index2size(i));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:5509:13: note: in expansion of macro ‘assert’
assert(chunksize(p) == small_index2size(i));
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3867:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3867:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3868:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3868:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3869:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3869:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3877:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3877:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3889:5: note: in expansion of macro ‘assert’
assert(is_small(DVS));\
^~~~~~
malloc.c.h:5519:15: note: in expansion of macro ‘replace_dv’
replace_dv(ms, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3889:5: note: in expansion of macro ‘assert’
assert(is_small(DVS));\
^~~~~~
malloc.c.h:5519:15: note: in expansion of macro ‘replace_dv’
replace_dv(ms, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5519:15: note: in expansion of macro ‘replace_dv’
replace_dv(ms, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5519:15: note: in expansion of macro ‘replace_dv’
replace_dv(ms, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5519:15: note: in expansion of macro ‘replace_dv’
replace_dv(ms, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5519:15: note: in expansion of macro ‘replace_dv’
replace_dv(ms, r, rsize);
^~~~~~~~~~
malloc.c.h: In function ‘mspace_malloc’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5587:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5587:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_malloc2’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5596:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5596:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:5606:7: warning: incompatible implicit declaration of built-in function ‘memset’
memset(mem, 0, chunksize(p) - overhead_for(p));
^~~~~~
malloc.c.h:5606:7: note: include ‘<string.h>’ or provide a declaration of ‘memset’
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘mspace_free’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5621:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(fm, p);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5621:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(fm, p);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3849:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3849:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3850:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3850:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3851:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3851:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3860:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3860:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3849:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3849:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3850:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3850:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3851:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3851:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3860:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3860:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:5692:13: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(fm, p, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:5692:13: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(fm, p, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5692:13: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(fm, p, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5692:13: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(fm, p, psize);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:5697:40: warning: conversion to ‘unsigned int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
insert_large_chunk(fm, tp, psize);
^
malloc.c.h:3072:20: note: in definition of macro ‘compute_tree_index’
unsigned int X = S >> TREEBIN_SHIFT;\
^
malloc.c.h:5697:13: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(fm, tp, psize);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5697:13: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(fm, tp, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5697:13: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(fm, tp, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5697:13: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(fm, tp, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5697:13: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(fm, tp, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5706:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(fm, p);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5706:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(fm, p);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_calloc’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5718:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5718:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:5731:7: warning: incompatible implicit declaration of built-in function ‘memset’
memset(mem, 0, chunksize(p) - overhead_for(p));
^~~~~~
malloc.c.h:5731:7: note: include ‘<string.h>’ or provide a declaration of ‘memset’
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘mspace_realloc2’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5755:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5755:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:5763:9: warning: incompatible implicit declaration of built-in function ‘memset’
memset((char*)mem + oldsize, 0, newsize - oldsize);
^~~~~~
malloc.c.h:5763:9: note: include ‘<string.h>’ or provide a declaration of ‘memset’
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘mspace_memalign’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5776:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5776:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_independent_calloc’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5787:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5787:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_independent_comalloc’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5797:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5797:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_trim’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5813:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5813:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_malloc_stats’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5824:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5824:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_footprint’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5835:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5835:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_max_footprint’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5848:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5848:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_mallinfo’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5858:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5858:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
nedmalloc.c: At top level:
nedmalloc.c:299:28: error: ‘malloc’ undeclared here (not in a function)
void *(*sysmalloc)(size_t)=malloc;
^~~~~~
nedmalloc.c:300:36: error: ‘calloc’ undeclared here (not in a function)
void *(*syscalloc)(size_t, size_t)=calloc;
^~~~~~
nedmalloc.c:301:37: error: ‘realloc’ undeclared here (not in a function)
void *(*sysrealloc)(void *, size_t)=realloc;
^~~~~~~
nedmalloc.c:302:25: error: ‘free’ undeclared here (not in a function)
void (*sysfree)(void *)=free;
^~~~
nedmalloc.c: In function ‘CallMalloc’:
nedmalloc.c:325:90: warning: declaration of ‘mspace’ shadows a global declaration [-Wshadow]
static FORCEINLINE NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void *CallMalloc(void *RESTRICT mspace, size_t size, size_t alignment, unsigned flags) THROWSPEC
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:1179:15: note: shadowed declaration is here
typedef void* mspace;
^~~~~~
nedmalloc.c: In function ‘CallRealloc’:
nedmalloc.c:374:91: warning: declaration of ‘mspace’ shadows a global declaration [-Wshadow]
static FORCEINLINE NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void *CallRealloc(void *RESTRICT mspace, void *RESTRICT mem, int isforeign, size_t oldsize, size_t newsize, size_t alignment, unsigned flags) THROWSPEC
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:1179:15: note: shadowed declaration is here
typedef void* mspace;
^~~~~~
nedmalloc.c:389:4: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
printf("*** nedmalloc frees system allocated block %p\n", mem);
^~~~~~
nedmalloc.c:389:4: warning: incompatible implicit declaration of built-in function ‘printf’
nedmalloc.c:389:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
nedmalloc.c:391:4: warning: incompatible implicit declaration of built-in function ‘memcpy’
memcpy(ret, mem, oldsize<newsize ? oldsize : newsize);
^~~~~~
nedmalloc.c:391:4: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
nedmalloc.c: In function ‘CallFree’:
nedmalloc.c:435:49: warning: declaration of ‘mspace’ shadows a global declaration [-Wshadow]
static FORCEINLINE void CallFree(void *RESTRICT mspace, void *RESTRICT mem, int isforeign) THROWSPEC
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:1179:15: note: shadowed declaration is here
typedef void* mspace;
^~~~~~
nedmalloc.c:447:3: warning: incompatible implicit declaration of built-in function ‘printf’
printf("*** nedmalloc frees system allocated block %p\n", mem);
^~~~~~
nedmalloc.c:447:3: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
In file included from nedmalloc.c:168:0:
nedmalloc.c: In function ‘nedblkmstate’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:583:5: note: in expansion of macro ‘assert’
assert(ok_magic(fm)); /* If this fails, someone tried to free a block twice */
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:583:5: note: in expansion of macro ‘assert’
assert(ok_magic(fm)); /* If this fails, someone tried to free a block twice */
^~~~~~
nedmalloc.c: In function ‘nedblksize’:
nedmalloc.c:616:13: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion]
if((flags & NM_SKIP_TOLERANCE_CHECKS) || nedblkmstate(mem))
^
nedmalloc.c:625:8: warning: unused variable ‘a’ [-Wunused-variable]
int a=1; /* Set breakpoints here if needed */
^
nedmalloc.c: In function ‘nedmalloc2’:
nedmalloc.c:643:1: warning: ‘nedpmalloc2’ is deprecated [-Wdeprecated-declarations]
NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedmalloc2(size_t size, size_t alignment, unsigned flags) THROWSPEC { return nedpmalloc2((nedpool *) 0, size, alignment, flags); }
^~~~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:78:0:
nedmalloc.h:606:83: note: declared here
NEDMALLOCDEPRECATED NEDMALLOCEXTSPEC NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedpmalloc2(nedpool *p, size_t size, size_t alignment, unsigned flags) THROWSPEC;
^~~~~~~~~~~
nedmalloc.c: In function ‘nedrealloc2’:
nedmalloc.c:644:1: warning: ‘nedprealloc2’ is deprecated [-Wdeprecated-declarations]
NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedrealloc2(void *mem, size_t size, size_t alignment, unsigned flags) THROWSPEC { return nedprealloc2((nedpool *) 0, mem, size, alignment, flags); }
^~~~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:78:0:
nedmalloc.h:607:83: note: declared here
NEDMALLOCDEPRECATED NEDMALLOCEXTSPEC NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedprealloc2(nedpool *p, void *mem, size_t size, size_t alignment, unsigned flags) THROWSPEC;
^~~~~~~~~~~~
nedmalloc.c: In function ‘nedfree2’:
nedmalloc.c:645:1: warning: ‘nedpfree2’ is deprecated [-Wdeprecated-declarations]
NEDMALLOCNOALIASATTR void nedfree2(void *mem, unsigned flags) THROWSPEC { nedpfree2((nedpool *) 0, mem, flags); }
^~~~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:78:0:
nedmalloc.h:608:66: note: declared here
NEDMALLOCDEPRECATED NEDMALLOCEXTSPEC NEDMALLOCNOALIASATTR void nedpfree2(nedpool *p, void *mem, unsigned flags) THROWSPEC;
^~~~~~~~~
nedmalloc.c: In function ‘GetTimestamp’:
nedmalloc.c:689:17: error: storage size of ‘tv’ isn’t known
struct timeval tv;
^~
nedmalloc.c:690:2: warning: implicit declaration of function ‘gettimeofday’ [-Wimplicit-function-declaration]
gettimeofday(&tv, 0);
^~~~~~~~~~~~
nedmalloc.c:689:17: warning: unused variable ‘tv’ [-Wunused-variable]
struct timeval tv;
^~
nedmalloc.c: At top level:
nedmalloc.c:252:19: error: unknown type name ‘pthread_key_t’
#define TLSVAR pthread_key_t
^
nedmalloc.c:791:2: note: in expansion of macro ‘TLSVAR’
TLSVAR mycache; /* Thread cache for this thread. 0 for unset, negative for use mspace-1 directly, otherwise is cache-1 */
^~~~~~
nedmalloc.c: In function ‘LogOperation’:
nedmalloc.c:1012:96: warning: declaration of ‘mspace’ shadows a global declaration [-Wshadow]
static FORCEINLINE logentry *LogOperation(threadcache *tc, nedpool *np, LogEntryType type, int mspace, size_t size, void *mem, size_t alignment, unsigned flags, void *returned) THROWSPEC
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:1179:15: note: shadowed declaration is here
typedef void* mspace;
^~~~~~
nedmalloc.c: In function ‘size2binidx’:
nedmalloc.c:1056:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
topbit = sizeof(size)*__CHAR_BIT__ - 1 - __builtin_clz(size);
^
nedmalloc.c:1056:18: warning: conversion to ‘unsigned int’ from ‘long unsigned int’ may alter its value [-Wconversion]
topbit = sizeof(size)*__CHAR_BIT__ - 1 - __builtin_clz(size);
^~~~~~
In file included from nedmalloc.c:168:0:
nedmalloc.c: In function ‘RemoveCacheEntries’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1156:5: note: in expansion of macro ‘assert’
assert(blksize<=nedblksize(0, f, 0));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1156:5: note: in expansion of macro ‘assert’
assert(blksize<=nedblksize(0, f, 0));
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1157:5: note: in expansion of macro ‘assert’
assert(blksize);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1157:5: note: in expansion of macro ‘assert’
assert(blksize);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1167:5: note: in expansion of macro ‘assert’
assert((long) tc->freeInCache>=0);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1167:5: note: in expansion of macro ‘assert’
assert((long) tc->freeInCache>=0);
^~~~~~
nedmalloc.c:1170:53: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
LogOperation(tc, p, LOGENTRY_THREADCACHE_CLEAN, age, blksize, f, 0, 0, 0);
^~~
In file included from nedmalloc.c:168:0:
nedmalloc.c: In function ‘nedflushlogs’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1200:5: note: in expansion of macro ‘assert’
assert(!tc->freeInCache);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1200:5: note: in expansion of macro ‘assert’
assert(!tc->freeInCache);
^~~~~~
nedmalloc.c: In function ‘AllocCache’:
nedmalloc.c:1322:15: warning: implicit declaration of function ‘abs’ [-Wimplicit-function-declaration]
tc->mymspace=abs(tc->threadid) % end;
^~~
nedmalloc.c:256:23: warning: implicit declaration of function ‘pthread_setspecific’ [-Wimplicit-function-declaration]
#define TLSSET(k, a) pthread_setspecific(k, a)
^
nedmalloc.c:1343:5: note: in expansion of macro ‘TLSSET’
if(TLSSET(p->mycache, (void *)(size_t)(n+1))) abort();
^~~~~~
nedmalloc.c:1343:48: warning: incompatible implicit declaration of built-in function ‘abort’
if(TLSSET(p->mycache, (void *)(size_t)(n+1))) abort();
^~~~~
nedmalloc.c:1343:48: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
nedmalloc.c: In function ‘threadcache_malloc’:
nedmalloc.c:1358:11: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
bestsize=1<<(idx+4);
^
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1379:2: note: in expansion of macro ‘assert’
assert(bestsize>=size);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1379:2: note: in expansion of macro ‘assert’
assert(bestsize>=size);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1381:2: note: in expansion of macro ‘assert’
assert(size<=THREADCACHEMAX);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1381:2: note: in expansion of macro ‘assert’
assert(size<=THREADCACHEMAX);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1382:2: note: in expansion of macro ‘assert’
assert(idx<=THREADCACHEMAXBINS);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1382:2: note: in expansion of macro ‘assert’
assert(idx<=THREADCACHEMAXBINS);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1398:3: note: in expansion of macro ‘assert’
assert(nedblksize(0, blk, 0)>=blksize);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1398:3: note: in expansion of macro ‘assert’
assert(nedblksize(0, blk, 0)>=blksize);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1399:3: note: in expansion of macro ‘assert’
assert(blksize>=size);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1399:3: note: in expansion of macro ‘assert’
assert(blksize>=size);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1408:3: note: in expansion of macro ‘assert’
assert(binsptr[0]!=blk && binsptr[1]!=blk);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1408:3: note: in expansion of macro ‘assert’
assert(binsptr[0]!=blk && binsptr[1]!=blk);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1409:3: note: in expansion of macro ‘assert’
assert(nedblksize(0, blk, 0)>=sizeof(threadcacheblk) && nedblksize(0, blk, 0)<=THREADCACHEMAX+CHUNK_OVERHEAD);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1409:3: note: in expansion of macro ‘assert’
assert(nedblksize(0, blk, 0)>=sizeof(threadcacheblk) && nedblksize(0, blk, 0)<=THREADCACHEMAX+CHUNK_OVERHEAD);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1416:3: note: in expansion of macro ‘assert’
assert(blksize>=size);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1416:3: note: in expansion of macro ‘assert’
assert(blksize>=size);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1419:3: note: in expansion of macro ‘assert’
assert((long) tc->freeInCache>=0);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1419:3: note: in expansion of macro ‘assert’
assert((long) tc->freeInCache>=0);
^~~~~~
nedmalloc.c: In function ‘threadcache_free’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1455:2: note: in expansion of macro ‘assert’
assert(size>=sizeof(threadcacheblk) && size<=THREADCACHEMAX+CHUNK_OVERHEAD);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1455:2: note: in expansion of macro ‘assert’
assert(size>=sizeof(threadcacheblk) && size<=THREADCACHEMAX+CHUNK_OVERHEAD);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1458:2: note: in expansion of macro ‘assert’
assert(nedblksize(0, mem, 0));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1458:2: note: in expansion of macro ‘assert’
assert(nedblksize(0, mem, 0));
^~~~~~
nedmalloc.c:1464:11: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
bestsize=1<<(idx+4);
^
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1481:2: note: in expansion of macro ‘assert’
assert(idx<=THREADCACHEMAXBINS);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1481:2: note: in expansion of macro ‘assert’
assert(idx<=THREADCACHEMAXBINS);
^~~~~~
nedmalloc.c:1484:3: warning: incompatible implicit declaration of built-in function ‘fprintf’
fprintf(stderr, "nedmalloc: Attempt to free already freed memory block %p - aborting!\n", tck);
^~~~~~~
nedmalloc.c:1484:3: note: include ‘<stdio.h>’ or provide a declaration of ‘fprintf’
nedmalloc.c:1484:11: error: ‘stderr’ undeclared (first use in this function)
fprintf(stderr, "nedmalloc: Attempt to free already freed memory block %p - aborting!\n", tck);
^~~~~~
nedmalloc.c:1485:3: warning: incompatible implicit declaration of built-in function ‘abort’
abort();
^~~~~
nedmalloc.c:1485:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1499:2: note: in expansion of macro ‘assert’
assert(!*binsptr || (*binsptr)->size==tck->size);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1499:2: note: in expansion of macro ‘assert’
assert(!*binsptr || (*binsptr)->size==tck->size);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1501:2: note: in expansion of macro ‘assert’
assert(tck==tc->bins[idx*2]);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1501:2: note: in expansion of macro ‘assert’
assert(tck==tc->bins[idx*2]);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1502:2: note: in expansion of macro ‘assert’
assert(tc->bins[idx*2+1]==tck || binsptr[0]->next->prev==tck);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1502:2: note: in expansion of macro ‘assert’
assert(tc->bins[idx*2+1]==tck || binsptr[0]->next->prev==tck);
^~~~~~
nedmalloc.c: In function ‘InitPool’:
nedmalloc.c:253:22: warning: implicit declaration of function ‘pthread_key_create’ [-Wimplicit-function-declaration]
#define TLSALLOC(k) pthread_key_create(k, 0)
^
nedmalloc.c:1525:5: note: in expansion of macro ‘TLSALLOC’
if(TLSALLOC(&p->mycache)) goto err;
^~~~~~~~
nedmalloc.c:1538:3: warning: incompatible implicit declaration of built-in function ‘abort’
abort(); /* If you can't allocate for system pool, we're screwed */
^~~~~
nedmalloc.c:1538:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
nedmalloc.c:254:22: warning: implicit declaration of function ‘pthread_key_delete’ [-Wimplicit-function-declaration]
#define TLSFREE(k) pthread_key_delete(k)
^
nedmalloc.c:1549:6: note: in expansion of macro ‘TLSFREE’
if(TLSFREE(p->mycache)) abort();
^~~~~~~
nedmalloc.c:1549:27: warning: incompatible implicit declaration of built-in function ‘abort’
if(TLSFREE(p->mycache)) abort();
^~~~~
nedmalloc.c:1549:27: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
nedmalloc.c: In function ‘FindMSpace’:
nedmalloc.c:1615:52: warning: incompatible implicit declaration of built-in function ‘abort’
if(TLSSET(p->mycache, (void *)(size_t)(-(n+1)))) abort();
^~~~~
nedmalloc.c:1615:52: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
In file included from nedmalloc.c:168:0:
nedmalloc.c: In function ‘nedcreatepool’:
malloc.c.h:2059:73: warning: right-hand operand of comma expression has no effect [-Wunused-value]
#define INITIAL_LOCK(sl) ((sl)->threadid = 0, (sl)->l = (sl)->c = 0, 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
nedmalloc.c:1642:3: note: in expansion of macro ‘INITIAL_LOCK’
INITIAL_LOCK(&poollistlock);
^~~~~~~~~~~~
nedmalloc.c:1659:3: warning: incompatible implicit declaration of built-in function ‘memset’
memset(&poollist->list[poollist->size], 0, newsize-((size_t)&poollist->list[poollist->size]-(size_t)&poollist->list[0]));
^~~~~~
nedmalloc.c:1659:3: note: include ‘<string.h>’ or provide a declaration of ‘memset’
nedmalloc.c:1660:27: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
poollist->size=((newsize-((char *)&poollist->list[0]-(char *)poollist))/sizeof(nedpool *))-1;
^
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1661:3: note: in expansion of macro ‘assert’
assert(poollist->size>poollist->length);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1661:3: note: in expansion of macro ‘assert’
assert(poollist->size>poollist->length);
^~~~~~
In file included from nedmalloc.c:168:0:
nedmalloc.c: In function ‘neddestroypool’:
malloc.c.h:2060:31: warning: statement with no effect [-Wunused-value]
#define DESTROY_LOCK(sl) (0)
^
nedmalloc.c:1694:2: note: in expansion of macro ‘DESTROY_LOCK’
DESTROY_LOCK(&p->mutex);
^~~~~~~~~~~~
nedmalloc.c:1696:26: warning: incompatible implicit declaration of built-in function ‘abort’
if(TLSFREE(p->mycache)) abort();
^~~~~
nedmalloc.c:1696:26: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1701:2: note: in expansion of macro ‘assert’
assert(poollist);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1701:2: note: in expansion of macro ‘assert’
assert(poollist);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1703:2: note: in expansion of macro ‘assert’
assert(n!=poollist->length);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1703:2: note: in expansion of macro ‘assert’
assert(n!=poollist->length);
^~~~~~
nedmalloc.c:1704:2: warning: implicit declaration of function ‘memmove’ [-Wimplicit-function-declaration]
memmove(&poollist->list[n], &poollist->list[n+1], (size_t)&poollist->list[poollist->length]-(size_t)&poollist->list[n]);
^~~~~~~
nedmalloc.c:1704:2: warning: incompatible implicit declaration of built-in function ‘memmove’
nedmalloc.c:1704:2: note: include ‘<string.h>’ or provide a declaration of ‘memmove’
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1707:3: note: in expansion of macro ‘assert’
assert(!poollist->list[0]);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1707:3: note: in expansion of macro ‘assert’
assert(!poollist->list[0]);
^~~~~~
nedmalloc.c: In function ‘neddestroysyspool’:
nedmalloc.c:1735:26: warning: incompatible implicit declaration of built-in function ‘abort’
if(TLSFREE(p->mycache)) abort();
^~~~~
nedmalloc.c:1735:26: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
In file included from nedmalloc.c:168:0:
malloc.c.h:2060:31: warning: statement with no effect [-Wunused-value]
#define DESTROY_LOCK(sl) (0)
^
nedmalloc.c:1738:2: note: in expansion of macro ‘DESTROY_LOCK’
DESTROY_LOCK(&p->mutex);
^~~~~~~~~~~~
nedmalloc.c: In function ‘nedpoollist’:
nedmalloc.c:1750:3: warning: incompatible implicit declaration of built-in function ‘memcpy’
memcpy(ret, poollist->list, (poollist->length+1)*sizeof(nedpool *));
^~~~~~
nedmalloc.c:1750:3: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
nedmalloc.c: In function ‘nedtrimthreadcache’:
nedmalloc.c:255:21: warning: implicit declaration of function ‘pthread_getspecific’ [-Wimplicit-function-declaration]
#define TLSGET(k) pthread_getspecific(k)
^
nedmalloc.c:1784:24: note: in expansion of macro ‘TLSGET’
mycache=(int)(size_t) TLSGET(p->mycache);
^~~~~~
nedmalloc.c:1787:57: warning: incompatible implicit declaration of built-in function ‘abort’
if(disable && TLSSET(p->mycache, (void *)(size_t)-1)) abort();
^~~~~
nedmalloc.c:1787:57: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
nedmalloc.c:1793:3: warning: incompatible implicit declaration of built-in function ‘printf’
printf("Threadcache utilisation: %lf%% in cache with %lf%% lost to other threads\n",
^~~~~~
nedmalloc.c:1793:3: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
nedmalloc.c:1796:70: warning: incompatible implicit declaration of built-in function ‘abort’
if(disable && TLSSET(p->mycache, (void *)(size_t)(-tc->mymspace))) abort();
^~~~~
nedmalloc.c:1796:70: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1799:3: note: in expansion of macro ‘assert’
assert(!tc->freeInCache);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1799:3: note: in expansion of macro ‘assert’
assert(!tc->freeInCache);
^~~~~~
nedmalloc.c: In function ‘GetMSpace’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1834:2: note: in expansion of macro ‘assert’
assert(m);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1834:2: note: in expansion of macro ‘assert’
assert(m);
^~~~~~
nedmalloc.c: In function ‘GetThreadCache_cold2’:
nedmalloc.c:1853:50: warning: incompatible implicit declaration of built-in function ‘abort’
if(TLSSET((*p)->mycache, (void *)(size_t)-1)) abort();
^~~~~
nedmalloc.c:1853:50: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
In file included from nedmalloc.c:168:0:
nedmalloc.c: In function ‘GetThreadCache’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1880:2: note: in expansion of macro ‘assert’
assert(*mymspace>=0);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1880:2: note: in expansion of macro ‘assert’
assert(*mymspace>=0);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1882:2: note: in expansion of macro ‘assert’
assert(!(*tc) || (long)(size_t)CURRENT_THREAD==(*tc)->threadid);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1882:2: note: in expansion of macro ‘assert’
assert(!(*tc) || (long)(size_t)CURRENT_THREAD==(*tc)->threadid);
^~~~~~
nedmalloc.c: In function ‘nedpmalloc2’:
nedmalloc.c:1907:5: warning: incompatible implicit declaration of built-in function ‘memset’
memset(ret, 0, size);
^~~~~~
nedmalloc.c:1907:5: note: include ‘<string.h>’ or provide a declaration of ‘memset’
nedmalloc.c: In function ‘nedprealloc2’:
nedmalloc.c:1928:2: warning: ‘nedpmalloc2’ is deprecated [-Wdeprecated-declarations]
if(!mem) return nedpmalloc2(p, size, alignment, flags);
^~
nedmalloc.c:1895:46: note: declared here
NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedpmalloc2(nedpool *p, size_t size, size_t alignment, unsigned flags) THROWSPEC
^~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1937:2: note: in expansion of macro ‘assert’
assert(memsize);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1937:2: note: in expansion of macro ‘assert’
assert(memsize);
^~~~~~
nedmalloc.c:1940:3: warning: incompatible implicit declaration of built-in function ‘fprintf’
fprintf(stderr, "nedmalloc: nedprealloc() called with a block not created by nedmalloc!\n");
^~~~~~~
nedmalloc.c:1940:3: note: include ‘<stdio.h>’ or provide a declaration of ‘fprintf’
nedmalloc.c:1940:11: error: ‘stderr’ undeclared (first use in this function)
fprintf(stderr, "nedmalloc: nedprealloc() called with a block not created by nedmalloc!\n");
^~~~~~
nedmalloc.c:1941:3: warning: incompatible implicit declaration of built-in function ‘abort’
abort();
^~~~~
nedmalloc.c:1941:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
nedmalloc.c:1958:4: warning: incompatible implicit declaration of built-in function ‘memcpy’
memcpy(ret, mem, tocopy);
^~~~~~
nedmalloc.c:1958:4: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
nedmalloc.c:1960:5: warning: incompatible implicit declaration of built-in function ‘memset’
memset((void *)((size_t)ret+memsize), 0, size-memsize);
^~~~~~
nedmalloc.c:1960:5: note: include ‘<string.h>’ or provide a declaration of ‘memset’
nedmalloc.c: In function ‘nedpfree2’:
nedmalloc.c:1994:3: warning: incompatible implicit declaration of built-in function ‘fprintf’
fprintf(stderr, "nedmalloc: WARNING nedpfree() called with zero. This is not portable behaviour!\n");
^~~~~~~
nedmalloc.c:1994:3: note: include ‘<stdio.h>’ or provide a declaration of ‘fprintf’
nedmalloc.c:1994:11: error: ‘stderr’ undeclared (first use in this function)
fprintf(stderr, "nedmalloc: WARNING nedpfree() called with zero. This is not portable behaviour!\n");
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1999:2: note: in expansion of macro ‘assert’
assert(memsize);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1999:2: note: in expansion of macro ‘assert’
assert(memsize);
^~~~~~
nedmalloc.c:2002:3: warning: incompatible implicit declaration of built-in function ‘fprintf’
fprintf(stderr, "nedmalloc: nedpfree() called with a block not created by nedmalloc!\n");
^~~~~~~
nedmalloc.c:2002:3: note: include ‘<stdio.h>’ or provide a declaration of ‘fprintf’
nedmalloc.c:2003:3: warning: incompatible implicit declaration of built-in function ‘abort’
abort();
^~~~~
nedmalloc.c:2003:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
nedmalloc.c: In function ‘nedpmalloc’:
nedmalloc.c:2023:2: warning: ‘nedpmalloc2’ is deprecated [-Wdeprecated-declarations]
return nedpmalloc2(p, size, 0, flags);
^~~~~~
nedmalloc.c:1895:46: note: declared here
NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedpmalloc2(nedpool *p, size_t size, size_t alignment, unsigned flags) THROWSPEC
^~~~~~~~~~~
nedmalloc.c: In function ‘nedpcalloc’:
nedmalloc.c:2031:2: warning: ‘nedpmalloc2’ is deprecated [-Wdeprecated-declarations]
return nedpmalloc2(p, bytes, 0, M2_ZERO_MEMORY|flags);
^~~~~~
nedmalloc.c:1895:46: note: declared here
NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedpmalloc2(nedpool *p, size_t size, size_t alignment, unsigned flags) THROWSPEC
^~~~~~~~~~~
nedmalloc.c: In function ‘nedprealloc’:
nedmalloc.c:2045:2: warning: ‘nedprealloc2’ is deprecated [-Wdeprecated-declarations]
return nedprealloc2(p, mem, size, 0, flags);
^~~~~~
nedmalloc.c:1922:46: note: declared here
NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedprealloc2(nedpool *p, void *mem, size_t size, size_t alignment, unsigned flags) THROWSPEC
^~~~~~~~~~~~
nedmalloc.c: In function ‘nedpmemalign’:
nedmalloc.c:2050:2: warning: ‘nedpmalloc2’ is deprecated [-Wdeprecated-declarations]
return nedpmalloc2(p, bytes, alignment, flags);
^~~~~~
nedmalloc.c:1895:46: note: declared here
NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedpmalloc2(nedpool *p, size_t size, size_t alignment, unsigned flags) THROWSPEC
^~~~~~~~~~~
nedmalloc.c: In function ‘nedpfree’:
nedmalloc.c:2054:3: warning: ‘nedpfree2’ is deprecated [-Wdeprecated-declarations]
nedpfree2(p, mem, 0);
^~~~~~~~~
nedmalloc.c:1985:29: note: declared here
NEDMALLOCNOALIASATTR void nedpfree2(nedpool *p, void *mem, unsigned flags) THROWSPEC
^~~~~~~~~
nedmalloc.c: In function ‘nedpindependent_comalloc’:
nedmalloc.c:2163:41: warning: implicit declaration of function ‘alloca’ [-Wimplicit-function-declaration]
size_t i, *adjustedsizes=(size_t *) alloca(elems*sizeof(size_t));
^~~~~~
nedmalloc.c:2163:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
size_t i, *adjustedsizes=(size_t *) alloca(elems*sizeof(size_t));
^
nedmalloc.c:2165:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(i=0; i<elems; i++)
^~~
nedmalloc.c:2167:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
GetThreadCache(&p, &tc, &mymspace, 0);
^~~~~~~~~~~~~~
At top level:
nedmalloc.c:739:20: warning: ‘LogEntryTypeStrings’ defined but not used [-Wunused-variable]
static const char *LogEntryTypeStrings[]={
^~~~~~~~~~~~~~~~~~~
nedmalloc.c:680:18: warning: ‘GetTimestamp’ defined but not used [-Wunused-function]
static timeCount GetTimestamp()
^~~~~~~~~~~~
make: *** [../../Mk/l4.build.mk:62: nedmalloc.o] Error 1```
Filtering the warnings, we don't implement the following, yet:
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
malloc.c.h:1645:37: error: ‘O_RDWR’ undeclared (first use in this function)
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
malloc.c.h:1674:37: error: ‘O_RDWR’ undeclared (first use in this function)
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
malloc.c.h:2055:3: error: unknown type name ‘pthread_t’
malloc.c.h:2069:3: error: unknown type name ‘pthread_t’
malloc.c.h:2117:3: error: unknown type name ‘pthread_t’
malloc.c.h:3808:13: error: ‘stderr’ undeclared (first use in this function)
malloc.c.h:628:32: error: ‘errno’ undeclared (first use in this function)
malloc.c.h:628:40: error: ‘ENOMEM’ undeclared (first use in this function)
malloc.c.h:628:32: error: ‘errno’ undeclared (first use in this function)
malloc.c.h:628:40: error: ‘ENOMEM’ undeclared (first use in this function)
malloc.c.h:628:32: error: ‘errno’ undeclared (first use in this function)
malloc.c.h:628:40: error: ‘ENOMEM’ undeclared (first use in this function)
nedmalloc.c:299:28: error: ‘malloc’ undeclared here (not in a function)
nedmalloc.c:300:36: error: ‘calloc’ undeclared here (not in a function)
nedmalloc.c:301:37: error: ‘realloc’ undeclared here (not in a function)
nedmalloc.c:302:25: error: ‘free’ undeclared here (not in a function)
nedmalloc.c:689:17: error: storage size of ‘tv’ isn’t known
nedmalloc.c:252:19: error: unknown type name ‘pthread_key_t’
nedmalloc.c:1484:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1940:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1994:11: error: ‘stderr’ undeclared (first use in this function)
Imported FreeBSD version of errno.h, and created a stub version of sys/cdefs.h.
On both Linux, and FreeBSD, ENOMEM
is defined to be: #define ENOMEM 12 /* Out of memory */
.
This gets us to:
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ cat errno | grep error
../../include/errno.h:46:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
int * __error(void);
nedmalloc.c:86:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
malloc.c.h:1645:37: error: ‘O_RDWR’ undeclared (first use in this function)
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
malloc.c.h:1674:37: error: ‘O_RDWR’ undeclared (first use in this function)
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
malloc.c.h:2055:3: error: unknown type name ‘pthread_t’
malloc.c.h:2069:3: error: unknown type name ‘pthread_t’
malloc.c.h:2117:3: error: unknown type name ‘pthread_t’
malloc.c.h:3808:13: error: ‘stderr’ undeclared (first use in this function)
../../include/errno.h:48:19: warning: implicit declaration of function ‘__error’ [-Wimplicit-function-declaration]
#define errno (* __error())
../../include/errno.h:48:17: error: invalid type argument of unary ‘*’ (have ‘int’)
#define errno (* __error())
../../include/errno.h:48:17: error: invalid type argument of unary ‘*’ (have ‘int’)
#define errno (* __error())
../../include/errno.h:48:17: error: invalid type argument of unary ‘*’ (have ‘int’)
#define errno (* __error())
nedmalloc.c:299:28: error: ‘malloc’ undeclared here (not in a function)
nedmalloc.c:300:36: error: ‘calloc’ undeclared here (not in a function)
nedmalloc.c:301:37: error: ‘realloc’ undeclared here (not in a function)
nedmalloc.c:302:25: error: ‘free’ undeclared here (not in a function)
nedmalloc.c:309:2: error: ‘malloc_usable_size’ undeclared here (not in a function)
nedmalloc.c:689:17: error: storage size of ‘tv’ isn’t known
nedmalloc.c:252:19: error: unknown type name ‘pthread_key_t’
nedmalloc.c:1484:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1940:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1994:11: error: ‘stderr’ undeclared (first use in this function)
After importing the FreeBSD version of sys/cdefs.h, we now get to:
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
malloc.c.h:1645:37: error: ‘O_RDWR’ undeclared (first use in this function)
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
malloc.c.h:1674:37: error: ‘O_RDWR’ undeclared (first use in this function)
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
malloc.c.h:2055:3: error: unknown type name ‘pthread_t’
malloc.c.h:2069:3: error: unknown type name ‘pthread_t’
malloc.c.h:2117:3: error: unknown type name ‘pthread_t’
malloc.c.h:3808:13: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:299:28: error: ‘malloc’ undeclared here (not in a function)
nedmalloc.c:300:36: error: ‘calloc’ undeclared here (not in a function)
nedmalloc.c:301:37: error: ‘realloc’ undeclared here (not in a function)
nedmalloc.c:302:25: error: ‘free’ undeclared here (not in a function)
nedmalloc.c:689:17: error: storage size of ‘tv’ isn’t known
nedmalloc.c:252:19: error: unknown type name ‘pthread_key_t’
nedmalloc.c:1484:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1940:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1994:11: error: ‘stderr’ undeclared (first use in this function)
malloc.c.h:3808:13: error: ‘stderr’ undeclared (first use in this function) ../../include/errno.h:48:19: warning: implicit declaration of function ‘__error’ [-Wimplicit-function-declaration]
define errno (* __error())
../../include/errno.h:48:17: error: invalid type argument of unary ‘*’ (have ‘int’)
define errno (* __error())
../../include/errno.h:48:17: error: invalid type argument of unary ‘*’ (have ‘int’)
define errno (* __error())
../../include/errno.h:48:17: error: invalid type argument of unary ‘*’ (have ‘int’)
define errno (* __error())
This apparently gets inherited from sys/cdefs.h, according to https://www.freebsd.org/cgi/man.cgi?query=errno&sektion=2&manpath=freebsd-release-ports
Imported https://raw.githubusercontent.com/freebsd/freebsd/master/sys/sys/fcntl.h, and created a stub sys/_types.h, which gets us to:
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ cat def4 | grep error
../../include/fcntl.h:53:9: error: unknown type name ‘__mode_t’
../../include/fcntl.h:58:9: error: unknown type name ‘__off_t’
../../include/fcntl.h:63:9: error: unknown type name ‘__pid_t’
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
malloc.c.h:2055:3: error: unknown type name ‘pthread_t’
malloc.c.h:2069:3: error: unknown type name ‘pthread_t’
malloc.c.h:2117:3: error: unknown type name ‘pthread_t’
malloc.c.h:3808:13: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:299:28: error: ‘malloc’ undeclared here (not in a function)
nedmalloc.c:300:36: error: ‘calloc’ undeclared here (not in a function)
nedmalloc.c:301:37: error: ‘realloc’ undeclared here (not in a function)
nedmalloc.c:302:25: error: ‘free’ undeclared here (not in a function)
nedmalloc.c:689:17: error: storage size of ‘tv’ isn’t known
nedmalloc.c:252:19: error: unknown type name ‘pthread_key_t’
nedmalloc.c:1484:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1940:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1994:11: error: ‘stderr’ undeclared (first use in this function)
We want to do things properly, so there's still more to do...
https://jameshfisher.com/2017/02/24/what-is-mode_t/ has info on mode_t
Importing https://raw.githubusercontent.com/freebsd/freebsd/master/sys/sys/_types.h, and a dummy machine/_types.h gets us to:
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ cat def6 | grep error
../../include/sys/_types.h:40:9: error: unknown type name ‘__int32_t’
../../include/sys/_types.h:41:9: error: unknown type name ‘__int64_t’
../../include/sys/_types.h:42:9: error: unknown type name ‘__int32_t’
../../include/sys/_types.h:43:9: error: unknown type name ‘__uint32_t’
../../include/sys/_types.h:44:9: error: unknown type name ‘__uint64_t’
../../include/sys/_types.h:45:9: error: unknown type name ‘__uint64_t’
../../include/sys/_types.h:46:9: error: unknown type name ‘__uint32_t’
../../include/sys/_types.h:47:9: error: unknown type name ‘__int64_t’
../../include/sys/_types.h:48:9: error: unknown type name ‘__uint64_t’
../../include/sys/_types.h:50:9: error: unknown type name ‘__int32_t’
../../include/sys/_types.h:51:9: error: unknown type name ‘__uint16_t’
../../include/sys/_types.h:54:9: error: unknown type name ‘__uint64_t’
../../include/sys/_types.h:55:9: error: unknown type name ‘__int64_t’
../../include/sys/_types.h:56:9: error: unknown type name ‘__int64_t’
../../include/sys/_types.h:57:9: error: unknown type name ‘__int32_t’
../../include/sys/_types.h:58:9: error: unknown type name ‘__int64_t’
../../include/sys/_types.h:61:9: error: unknown type name ‘__uint8_t’
../../include/sys/_types.h:62:9: error: unknown type name ‘__uint32_t’
../../include/sys/_types.h:66:9: error: unknown type name ‘__uint32_t’
../../include/sys/_types.h:71:9: error: unknown type name ‘__int64_t’
../../include/sys/_types.h:97:9: error: unknown type name ‘__uint_least16_t’
../../include/sys/_types.h:98:9: error: unknown type name ‘__uint_least32_t’
../../include/sys/_types.h:113:9: error: unknown type name ‘__uint64_t’
../../include/sys/_types.h:115:9: error: unknown type name ‘__uint32_t’
../../include/sys/_types.h:123:2: error: unknown type name ‘__int64_t’
../../include/sys/_types.h:126:9: error: unknown type name ‘__uintmax_t’
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
malloc.c.h:2055:3: error: unknown type name ‘pthread_t’
malloc.c.h:2069:3: error: unknown type name ‘pthread_t’
malloc.c.h:2117:3: error: unknown type name ‘pthread_t’
malloc.c.h:3808:13: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:299:28: error: ‘malloc’ undeclared here (not in a function)
nedmalloc.c:300:36: error: ‘calloc’ undeclared here (not in a function)
nedmalloc.c:301:37: error: ‘realloc’ undeclared here (not in a function)
nedmalloc.c:302:25: error: ‘free’ undeclared here (not in a function)
nedmalloc.c:689:17: error: storage size of ‘tv’ isn’t known
nedmalloc.c:252:19: error: unknown type name ‘pthread_key_t’
nedmalloc.c:1484:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1940:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1994:11: error: ‘stderr’ undeclared (first use in this function)
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$
We need to carefully alias the L4 types, to the FreeBSD types, according to https://svnweb.freebsd.org/base?view=revision&revision=232261, and the bug at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=186247, rather than just pasting in anything, to make it compile...
On top of the integer types, a bunch of other typedefs for POSIX are also made, and we need to take account for little-endian, and big-endian PPC
After wiring up more headers, and types:
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ cat def11 | grep error
../../include/sys/_types.h:97:9: error: unknown type name ‘__uint_least16_t’
../../include/sys/_types.h:98:9: error: unknown type name ‘__uint_least32_t’
../../include/sys/_types.h:126:9: error: unknown type name ‘__uintmax_t’
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
malloc.c.h:2055:3: error: unknown type name ‘pthread_t’
malloc.c.h:2069:3: error: unknown type name ‘pthread_t’
malloc.c.h:2117:3: error: unknown type name ‘pthread_t’
malloc.c.h:3808:13: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:299:28: error: ‘malloc’ undeclared here (not in a function)
nedmalloc.c:300:36: error: ‘calloc’ undeclared here (not in a function)
nedmalloc.c:301:37: error: ‘realloc’ undeclared here (not in a function)
nedmalloc.c:302:25: error: ‘free’ undeclared here (not in a function)
nedmalloc.c:689:17: error: storage size of ‘tv’ isn’t known
nedmalloc.c:252:19: error: unknown type name ‘pthread_key_t’
nedmalloc.c:1484:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1940:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1994:11: error: ‘stderr’ undeclared (first use in this function)
After shadowing the uint_least16_t, uint_least32_t, and __uintmax_t, we get:
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
malloc.c.h:1635:31: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
malloc.c.h:1631:31: error: ‘PROT_READ’ undeclared (first use in this function)
malloc.c.h:1631:41: error: ‘PROT_WRITE’ undeclared (first use in this function)
malloc.c.h:2055:3: error: unknown type name ‘pthread_t’
malloc.c.h:2069:3: error: unknown type name ‘pthread_t’
malloc.c.h:2117:3: error: unknown type name ‘pthread_t’
malloc.c.h:3808:13: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:299:28: error: ‘malloc’ undeclared here (not in a function)
nedmalloc.c:300:36: error: ‘calloc’ undeclared here (not in a function)
nedmalloc.c:301:37: error: ‘realloc’ undeclared here (not in a function)
nedmalloc.c:302:25: error: ‘free’ undeclared here (not in a function)
nedmalloc.c:689:17: error: storage size of ‘tv’ isn’t known
nedmalloc.c:252:19: error: unknown type name ‘pthread_key_t’
nedmalloc.c:1484:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1940:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1994:11: error: ‘stderr’ undeclared (first use in this function)
Right now, we don't copy everything from https://svnweb.freebsd.org/base/head/sys/amd64/include/_types.h?r1=232261&r2=232260&pathrev=232261
On FreeBSD, the mmap syscall is expressed in https://github.com/freebsd/freebsd/blob/master/sys/vm/vm_mmap.c, and https://github.com/freebsd/freebsd/blob/master/sys/sys/mman.h
Importing https://raw.githubusercontent.com/freebsd/freebsd/master/sys/sys/mman.h, we get down to:
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ cat def2 | grep error
malloc.c.h:2055:3: error: unknown type name ‘pthread_t’
malloc.c.h:2069:3: error: unknown type name ‘pthread_t’
malloc.c.h:2117:3: error: unknown type name ‘pthread_t’
malloc.c.h:3808:13: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:299:28: error: ‘malloc’ undeclared here (not in a function)
nedmalloc.c:300:36: error: ‘calloc’ undeclared here (not in a function)
nedmalloc.c:301:37: error: ‘realloc’ undeclared here (not in a function)
nedmalloc.c:302:25: error: ‘free’ undeclared here (not in a function)
nedmalloc.c:689:17: error: storage size of ‘tv’ isn’t known
nedmalloc.c:252:19: error: unknown type name ‘pthread_key_t’
nedmalloc.c:1484:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1940:11: error: ‘stderr’ undeclared (first use in this function)
nedmalloc.c:1994:11: error: ‘stderr’ undeclared (first use in this function)
Importing https://raw.githubusercontent.com/freebsd/freebsd/master/include/stdio.h, we get to:
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ cat def4 | grep error
../../include/stdio.h:42:23: fatal error: sys/_null.h: No such file or directory
Next,
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ cat def5 | grep error
../../include/stdio.h:50:9: error: unknown type name ‘__size_t’
../../include/stdio.h:66:9: error: unknown type name ‘__ssize_t’
../../include/stdio.h:413:9: error: unknown type name ‘__ssize_t’
../../include/stdio.h:414:9: error: unknown type name ‘__ssize_t’
malloc.c.h:2055:3: error: unknown type name ‘pthread_t’
malloc.c.h:2069:3: error: unknown type name ‘pthread_t’
malloc.c.h:2117:3: error: unknown type name ‘pthread_t’
nedmalloc.c:299:28: error: ‘malloc’ undeclared here (not in a function)
nedmalloc.c:300:36: error: ‘calloc’ undeclared here (not in a function)
nedmalloc.c:301:37: error: ‘realloc’ undeclared here (not in a function)
nedmalloc.c:302:25: error: ‘free’ undeclared here (not in a function)
nedmalloc.c:689:17: error: storage size of ‘tv’ isn’t known
nedmalloc.c:252:19: error: unknown type name ‘pthread_key_t’
Importing https://raw.githubusercontent.com/freebsd/freebsd/master/sys/sys/_null.h, we get to:
../../include/stdio.h:50:9: error: unknown type name ‘__size_t’
../../include/stdio.h:66:9: error: unknown type name ‘__ssize_t’
../../include/stdio.h:413:9: error: unknown type name ‘__ssize_t’
../../include/stdio.h:414:9: error: unknown type name ‘__ssize_t’
malloc.c.h:2055:3: error: unknown type name ‘pthread_t’
malloc.c.h:2069:3: error: unknown type name ‘pthread_t’
malloc.c.h:2117:3: error: unknown type name ‘pthread_t’
nedmalloc.c:299:28: error: ‘malloc’ undeclared here (not in a function)
nedmalloc.c:300:36: error: ‘calloc’ undeclared here (not in a function)
nedmalloc.c:301:37: error: ‘realloc’ undeclared here (not in a function)
nedmalloc.c:302:25: error: ‘free’ undeclared here (not in a function)
nedmalloc.c:689:17: error: storage size of ‘tv’ isn’t known
nedmalloc.c:252:19: error: unknown type name ‘pthread_key_t’
On FBSD, https://github.com/freebsd/freebsd/blob/master/sys/x86/include/_types.h is machine-dependent
After mapping __size_t
(unsigned), and __ssize_t
(signed), we get:
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ cat def7 | grep error
malloc.c.h:2055:3: error: unknown type name ‘pthread_t’
malloc.c.h:2069:3: error: unknown type name ‘pthread_t’
malloc.c.h:2117:3: error: unknown type name ‘pthread_t’
nedmalloc.c:299:28: error: ‘malloc’ undeclared here (not in a function)
nedmalloc.c:300:36: error: ‘calloc’ undeclared here (not in a function)
nedmalloc.c:301:37: error: ‘realloc’ undeclared here (not in a function)
nedmalloc.c:302:25: error: ‘free’ undeclared here (not in a function)
nedmalloc.c:689:17: error: storage size of ‘tv’ isn’t known
nedmalloc.c:252:19: error: unknown type name ‘pthread_key_t’
There is supposed to be an implementation of pthread
, in HURD/L4, but it's under the LGPL, and was removed from their codebase, a while ago, and the FreeBSD implementation, at https://github.com/freebsd/freebsd/blob/master/include/pthread.h requires hooks into the scheduler, and time management, by the looks of things.
https://lists.freebsd.org/pipermail/p4-projects/2008-November/029415.html has a FreeBSD patch, implementing something like exit_group()
In FreeBSD, the system call table at https://github.com/freebsd/freebsd/blob/master/sys/kern/syscalls.c exists
FreeBSD's Linux emulator core is at https://github.com/freebsd/freebsd/blob/219791b23e761720c839a7d786b32533fd3c8056/sys/compat/linux/linux_emul.c
Testing with CacheLineSize:
===> CacheLineSize.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c CacheLineSize.c -o CacheLineSize.o
In file included from ../../include/sys/_types.h:35:0,
from ../../include/stdio.h:43,
from CacheLineSize.c:40:
../../include/machine/_types.h:36:1: warning: useless type name in empty declaration
typedef L4_Size_t __size_t;
^~~~~~~
In file included from CacheLineSize.c:40:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
===> Linking ./syslaunch
ld -e_start -N -L../../lib -L/usr/lib/gcc/x86_64-linux-gnu/6 -nostdlib -melf_x86_64 -Ttext=01000000 crt0-amd64.o syslaunch.o CacheLineSize.o -ll4 -lio -lgcc -o syslaunch
ld: CacheLineSize.o: in function `CacheLineSize':
/home/tyson/Orion/user/apps/system/CacheLineSize.c:43: undefined reference to `fopen'
ld: /home/tyson/Orion/user/apps/system/CacheLineSize.c:46: undefined reference to `fscanf'
ld: /home/tyson/Orion/user/apps/system/CacheLineSize.c:47: undefined reference to `fclose'
make: *** [../../Mk/l4.prog.mk:54: syslaunch] Error 1
We imported https://raw.githubusercontent.com/freebsd/freebsd/master/lib/libc/stdio/fopen.c
Need to pull in https://raw.githubusercontent.com/lattera/freebsd/master/lib/libc/include/un-namespace.h, and https://raw.githubusercontent.com/lattera/freebsd/master/lib/libc/include/namespace.h, add a dummy sys/stat.h, local.h, and limits.h, and we receive:
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ make
===> fopen.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c fopen.c -o fopen.o
In file included from fopen.c:46:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
fopen.c: In function ‘fopen’:
fopen.c:60:15: warning: implicit declaration of function ‘__sflags’ [-Wimplicit-function-declaration]
if ((flags = __sflags(mode, &oflags)) == 0)
^~~~~~~~
fopen.c:62:12: warning: implicit declaration of function ‘__sfp’ [-Wimplicit-function-declaration]
if ((fp = __sfp()) == NULL)
^~~~~
fopen.c:62:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
if ((fp = __sfp()) == NULL)
^
fopen.c:64:31: error: ‘DEFFILEMODE’ undeclared (first use in this function)
if ((f = _open(file, oflags, DEFFILEMODE)) < 0) {
^~~~~~~~~~~
fopen.c:64:31: note: each undeclared identifier is reported only once for each function it appears in
fopen.c:75:10: error: ‘SHRT_MAX’ undeclared (first use in this function)
if (f > SHRT_MAX) {
^~~~~~~~
fopen.c:77:3: warning: implicit declaration of function ‘_close’ [-Wimplicit-function-declaration]
_close(f);
^~~~~~
fopen.c:81:14: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_file = f;
^
fopen.c:82:15: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_flags = flags;
^~~~~
fopen.c:84:14: error: ‘__sread’ undeclared (first use in this function)
fp->_read = __sread;
^~~~~~~
fopen.c:85:15: error: ‘__swrite’ undeclared (first use in this function)
fp->_write = __swrite;
^~~~~~~~
fopen.c:86:14: error: ‘__sseek’ undeclared (first use in this function)
fp->_seek = __sseek;
^~~~~~~
fopen.c:87:15: error: ‘__sclose’ undeclared (first use in this function)
fp->_close = __sclose;
^~~~~~~~
fopen.c:98:9: warning: implicit declaration of function ‘_sseek’ [-Wimplicit-function-declaration]
(void)_sseek(fp, (fpos_t)0, SEEK_END);
^~~~~~
make: *** [../../Mk/l4.build.mk:62: fopen.o] Error 1
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$
Need a dummy sys/_timespec.h, and https://raw.githubusercontent.com/freebsd/freebsd/master/sys/sys/stat.h, to get DEFFILEMODE
, and then:
===> fopen.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c fopen.c -o fopen.o
In file included from fopen.c:43:0:
../../include/sys/stat.h:165:2: error: unknown type name ‘__int16_t’
__int16_t st_padding0;
^~~~~~~~~
../../include/sys/stat.h:173:18: error: field ‘st_atim’ has incomplete type
struct timespec st_atim; /* time of last access */
^~~~~~~
../../include/sys/stat.h:177:18: error: field ‘st_mtim’ has incomplete type
struct timespec st_mtim; /* time of last data modification */
^~~~~~~
../../include/sys/stat.h:181:18: error: field ‘st_ctim’ has incomplete type
struct timespec st_ctim; /* time of last file status change */
^~~~~~~
../../include/sys/stat.h:185:18: error: field ‘st_birthtim’ has incomplete type
struct timespec st_birthtim; /* time of file creation */
^~~~~~~~~~~
../../include/sys/stat.h:377:44: error: array type has incomplete element type ‘struct timespec’
int futimens(int fd, const struct timespec times[2]);
^~~~~
../../include/sys/stat.h:378:63: error: array type has incomplete element type ‘struct timespec’
int utimensat(int fd, const char *path, const struct timespec times[2],
^~~~~
In file included from fopen.c:46:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
fopen.c: In function ‘fopen’:
fopen.c:60:15: warning: implicit declaration of function ‘__sflags’ [-Wimplicit-function-declaration]
if ((flags = __sflags(mode, &oflags)) == 0)
^~~~~~~~
fopen.c:62:12: warning: implicit declaration of function ‘__sfp’ [-Wimplicit-function-declaration]
if ((fp = __sfp()) == NULL)
^~~~~
fopen.c:62:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
if ((fp = __sfp()) == NULL)
^
fopen.c:75:10: error: ‘SHRT_MAX’ undeclared (first use in this function)
if (f > SHRT_MAX) {
^~~~~~~~
fopen.c:75:10: note: each undeclared identifier is reported only once for each function it appears in
fopen.c:77:3: warning: implicit declaration of function ‘_close’ [-Wimplicit-function-declaration]
_close(f);
^~~~~~
fopen.c:81:14: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_file = f;
^
fopen.c:82:15: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_flags = flags;
^~~~~
fopen.c:84:14: error: ‘__sread’ undeclared (first use in this function)
fp->_read = __sread;
^~~~~~~
fopen.c:85:15: error: ‘__swrite’ undeclared (first use in this function)
fp->_write = __swrite;
^~~~~~~~
fopen.c:86:14: error: ‘__sseek’ undeclared (first use in this function)
fp->_seek = __sseek;
^~~~~~~
fopen.c:87:15: error: ‘__sclose’ undeclared (first use in this function)
fp->_close = __sclose;
^~~~~~~~
fopen.c:98:9: warning: implicit declaration of function ‘_sseek’ [-Wimplicit-function-declaration]
(void)_sseek(fp, (fpos_t)0, SEEK_END);
^~~~~~
make: *** [../../Mk/l4.build.mk:62: fopen.o] Error 1
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$
With https://raw.githubusercontent.com/freebsd/freebsd/master/include/time.h, we get
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c fopen.c -o fopen.o
In file included from fopen.c:43:0:
../../include/sys/stat.h:173:18: error: field ‘st_atim’ has incomplete type
struct timespec st_atim; /* time of last access */
^~~~~~~
../../include/sys/stat.h:177:18: error: field ‘st_mtim’ has incomplete type
struct timespec st_mtim; /* time of last data modification */
^~~~~~~
../../include/sys/stat.h:181:18: error: field ‘st_ctim’ has incomplete type
struct timespec st_ctim; /* time of last file status change */
^~~~~~~
../../include/sys/stat.h:185:18: error: field ‘st_birthtim’ has incomplete type
struct timespec st_birthtim; /* time of file creation */
^~~~~~~~~~~
../../include/sys/stat.h:377:44: error: array type has incomplete element type ‘struct timespec’
int futimens(int fd, const struct timespec times[2]);
^~~~~
../../include/sys/stat.h:378:63: error: array type has incomplete element type ‘struct timespec’
int utimensat(int fd, const char *path, const struct timespec times[2],
^~~~~
In file included from fopen.c:46:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
fopen.c: In function ‘fopen’:
fopen.c:60:15: warning: implicit declaration of function ‘__sflags’ [-Wimplicit-function-declaration]
if ((flags = __sflags(mode, &oflags)) == 0)
^~~~~~~~
fopen.c:62:12: warning: implicit declaration of function ‘__sfp’ [-Wimplicit-function-declaration]
if ((fp = __sfp()) == NULL)
^~~~~
fopen.c:62:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
if ((fp = __sfp()) == NULL)
^
fopen.c:75:10: error: ‘SHRT_MAX’ undeclared (first use in this function)
if (f > SHRT_MAX) {
^~~~~~~~
fopen.c:75:10: note: each undeclared identifier is reported only once for each function it appears in
fopen.c:77:3: warning: implicit declaration of function ‘_close’ [-Wimplicit-function-declaration]
_close(f);
^~~~~~
fopen.c:81:14: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_file = f;
^
fopen.c:82:15: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_flags = flags;
^~~~~
fopen.c:84:14: error: ‘__sread’ undeclared (first use in this function)
fp->_read = __sread;
^~~~~~~
fopen.c:85:15: error: ‘__swrite’ undeclared (first use in this function)
fp->_write = __swrite;
^~~~~~~~
fopen.c:86:14: error: ‘__sseek’ undeclared (first use in this function)
fp->_seek = __sseek;
^~~~~~~
fopen.c:87:15: error: ‘__sclose’ undeclared (first use in this function)
fp->_close = __sclose;
^~~~~~~~
fopen.c:98:9: warning: implicit declaration of function ‘_sseek’ [-Wimplicit-function-declaration]
(void)_sseek(fp, (fpos_t)0, SEEK_END);
^~~~~~
make: *** [../../Mk/l4.build.mk:62: fopen.o] Error 1
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$
Pulled in https://raw.githubusercontent.com/freebsd/freebsd/master/sys/sys/stdint.h, fopen, fread, tempnam
Implemented a workaround, for max/min short defines, and get
===> fopen.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c fopen.c -o fopen.o
In file included from fopen.c:43:0:
../../include/sys/stat.h:173:18: error: field ‘st_atim’ has incomplete type
struct timespec st_atim; /* time of last access */
^~~~~~~
../../include/sys/stat.h:177:18: error: field ‘st_mtim’ has incomplete type
struct timespec st_mtim; /* time of last data modification */
^~~~~~~
../../include/sys/stat.h:181:18: error: field ‘st_ctim’ has incomplete type
struct timespec st_ctim; /* time of last file status change */
^~~~~~~
../../include/sys/stat.h:185:18: error: field ‘st_birthtim’ has incomplete type
struct timespec st_birthtim; /* time of file creation */
^~~~~~~~~~~
../../include/sys/stat.h:377:44: error: array type has incomplete element type ‘struct timespec’
int futimens(int fd, const struct timespec times[2]);
^~~~~
../../include/sys/stat.h:378:63: error: array type has incomplete element type ‘struct timespec’
int utimensat(int fd, const char *path, const struct timespec times[2],
^~~~~
In file included from fopen.c:46:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
In file included from fopen.c:48:0:
../../include/limits.h: At top level:
../../include/limits.h:12:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif SHRT_MAX
^~~~~~~~
fopen.c: In function ‘fopen’:
fopen.c:60:15: warning: implicit declaration of function ‘__sflags’ [-Wimplicit-function-declaration]
if ((flags = __sflags(mode, &oflags)) == 0)
^~~~~~~~
fopen.c:62:12: warning: implicit declaration of function ‘__sfp’ [-Wimplicit-function-declaration]
if ((fp = __sfp()) == NULL)
^~~~~
fopen.c:62:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
if ((fp = __sfp()) == NULL)
^
fopen.c:77:3: warning: implicit declaration of function ‘_close’ [-Wimplicit-function-declaration]
_close(f);
^~~~~~
fopen.c:81:14: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_file = f;
^
fopen.c:82:15: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_flags = flags;
^~~~~
fopen.c:84:14: error: ‘__sread’ undeclared (first use in this function)
fp->_read = __sread;
^~~~~~~
fopen.c:84:14: note: each undeclared identifier is reported only once for each function it appears in
fopen.c:85:15: error: ‘__swrite’ undeclared (first use in this function)
fp->_write = __swrite;
^~~~~~~~
fopen.c:86:14: error: ‘__sseek’ undeclared (first use in this function)
fp->_seek = __sseek;
^~~~~~~
fopen.c:87:15: error: ‘__sclose’ undeclared (first use in this function)
fp->_close = __sclose;
^~~~~~~~
fopen.c:98:9: warning: implicit declaration of function ‘_sseek’ [-Wimplicit-function-declaration]
(void)_sseek(fp, (fpos_t)0, SEEK_END);
^~~~~~
make[1]: *** [../../Mk/l4.build.mk:62: fopen.o] Error 1
make[1]: Leaving directory '/home/tyson/Orion/user/lib/linux'
make: *** [../Mk/l4.subdir.mk:41: subdirs-all] Error 2
https://github.com/freebsd/freebsd/blob/master/lib/libc/sys/read.c does kernel-specific stuff
An alternative implementation can be found in https://android.googlesource.com/platform/bionic/+/c8bae05/libc/stdio/stdio.c
After importing a few more files from Bionic, temporarily, we get to :
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ make
===> stdio.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c stdio.c -o stdio.o
In file included from stdio.c:36:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
stdio.c: In function ‘__sread’:
stdio.c:48:8: warning: implicit declaration of function ‘TEMP_FAILURE_RETRY’ [-Wimplicit-function-declaration]
ret = TEMP_FAILURE_RETRY(read(fp->_file, buf, n));
^~~~~~~~~~~~~~~~~~
stdio.c:48:27: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
ret = TEMP_FAILURE_RETRY(read(fp->_file, buf, n));
^~~~
stdio.c: In function ‘__swrite’:
stdio.c:63:28: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration]
return TEMP_FAILURE_RETRY(write(fp->_file, buf, n));
^~~~~
stdio.c: In function ‘__sclose’:
stdio.c:83:9: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
return close(((FILE *)cookie)->_file);
^~~~~
===> fopen.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c fopen.c -o fopen.o
In file included from fopen.c:43:0:
../../include/sys/stat.h:173:18: error: field ‘st_atim’ has incomplete type
struct timespec st_atim; /* time of last access */
^~~~~~~
../../include/sys/stat.h:177:18: error: field ‘st_mtim’ has incomplete type
struct timespec st_mtim; /* time of last data modification */
^~~~~~~
../../include/sys/stat.h:181:18: error: field ‘st_ctim’ has incomplete type
struct timespec st_ctim; /* time of last file status change */
^~~~~~~
../../include/sys/stat.h:185:18: error: field ‘st_birthtim’ has incomplete type
struct timespec st_birthtim; /* time of file creation */
^~~~~~~~~~~
../../include/sys/stat.h:377:44: error: array type has incomplete element type ‘struct timespec’
int futimens(int fd, const struct timespec times[2]);
^~~~~
../../include/sys/stat.h:378:63: error: array type has incomplete element type ‘struct timespec’
int utimensat(int fd, const char *path, const struct timespec times[2],
^~~~~
In file included from fopen.c:46:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
In file included from fopen.c:48:0:
../../include/limits.h: At top level:
../../include/limits.h:12:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif SHRT_MAX
^~~~~~~~
fopen.c: In function ‘fopen’:
fopen.c:77:3: warning: implicit declaration of function ‘_close’ [-Wimplicit-function-declaration]
_close(f);
^~~~~~
fopen.c:81:14: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_file = f;
^
fopen.c:82:15: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_flags = flags;
^~~~~
fopen.c:98:9: warning: implicit declaration of function ‘_sseek’ [-Wimplicit-function-declaration]
(void)_sseek(fp, (fpos_t)0, SEEK_END);
^~~~~~
make: *** [../../Mk/l4.build.mk:62: fopen.o] Error 1
Import https://raw.githubusercontent.com/freebsd/freebsd/master/sys/sys/timespec.h, to get past :
===> Making dependencies in .
===> fopen.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c fopen.c -o fopen.o
In file included from ../../include/sys/stat.h:101:0,
from fopen.c:43:
../../include/sys/time.h:62:9: error: unknown type name ‘__clock_t’
typedef __clock_t clock_t;
^~~~~~~~~
../../include/sys/time.h:67:9: error: unknown type name ‘__time_t’
typedef __time_t time_t;
^~~~~~~~
../../include/sys/time.h:90:26: fatal error: sys/timespec.h: No such file or directory
#include <sys/timespec.h>
^
compilation terminated.
make: *** [../../Mk/l4.build.mk:62: fopen.o] Error 1
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ make
===> Making dependencies in .
===> fopen.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c fopen.c -o fopen.o
In file included from ../../include/sys/stat.h:101:0,
from fopen.c:43:
../../include/sys/time.h:62:9: error: unknown type name ‘__clock_t’
typedef __clock_t clock_t;
^~~~~~~~~
../../include/sys/time.h:67:9: error: unknown type name ‘__time_t’
typedef __time_t time_t;
^~~~~~~~
In file included from ../../include/sys/time.h:90:0,
from ../../include/sys/stat.h:101,
from fopen.c:43:
../../include/sys/timespec.h:61:19: error: field ‘it_interval’ has incomplete type
struct timespec it_interval;
^~~~~~~~~~~
../../include/sys/timespec.h:62:19: error: field ‘it_value’ has incomplete type
struct timespec it_value;
^~~~~~~~
In file included from ../../include/sys/stat.h:101:0,
from fopen.c:43:
../../include/sys/time.h:207:27: fatal error: xlocale/_time.h: No such file or directory
#include <xlocale/_time.h>
^
compilation terminated.
make: *** [../../Mk/l4.build.mk:62: fopen.o] Error 1
https://github.com/freebsd/freebsd/blob/af881ec390ca378ac573d58251e8626623a6d1ed/sys/x86/include/_types.h says that __clock_t can have at least 2 definitions, depending on architecture
Now we get to:
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ make
===> Making dependencies in .
===> fscanf.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c fscanf.c -o fscanf.o
In file included from fscanf.c:33:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
===> stdio.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c stdio.c -o stdio.o
In file included from stdio.c:36:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
stdio.c: In function ‘__sread’:
stdio.c:48:8: warning: implicit declaration of function ‘TEMP_FAILURE_RETRY’ [-Wimplicit-function-declaration]
ret = TEMP_FAILURE_RETRY(read(fp->_file, buf, n));
^~~~~~~~~~~~~~~~~~
stdio.c:48:27: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
ret = TEMP_FAILURE_RETRY(read(fp->_file, buf, n));
^~~~
stdio.c: In function ‘__swrite’:
stdio.c:63:28: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration]
return TEMP_FAILURE_RETRY(write(fp->_file, buf, n));
^~~~~
stdio.c: In function ‘__sclose’:
stdio.c:83:9: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
return close(((FILE *)cookie)->_file);
^~~~~
===> fopen.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c fopen.c -o fopen.o
In file included from ../../include/sys/time.h:90:0,
from ../../include/sys/stat.h:101,
from fopen.c:43:
../../include/sys/timespec.h:61:19: error: field ‘it_interval’ has incomplete type
struct timespec it_interval;
^~~~~~~~~~~
../../include/sys/timespec.h:62:19: error: field ‘it_value’ has incomplete type
struct timespec it_value;
^~~~~~~~
In file included from ../../include/sys/stat.h:101:0,
from fopen.c:43:
../../include/sys/time.h:207:27: fatal error: xlocale/_time.h: No such file or directory
#include <xlocale/_time.h>
^
compilation terminated.
make: *** [../../Mk/l4.build.mk:62: fopen.o] Error 1
Now we get to
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ make
===> fopen.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c fopen.c -o fopen.o
In file included from fopen.c:46:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
In file included from fopen.c:48:0:
../../include/limits.h: At top level:
../../include/limits.h:12:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif SHRT_MAX
^~~~~~~~
fopen.c: In function ‘fopen’:
fopen.c:77:3: warning: implicit declaration of function ‘_close’ [-Wimplicit-function-declaration]
_close(f);
^~~~~~
fopen.c:81:14: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_file = f;
^
fopen.c:82:15: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_flags = flags;
^~~~~
fopen.c:98:9: warning: implicit declaration of function ‘_sseek’ [-Wimplicit-function-declaration]
(void)_sseek(fp, (fpos_t)0, SEEK_END);
^~~~~~
===> nedmalloc.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c nedmalloc.c -o nedmalloc.o
In file included from nedmalloc.c:53:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
nedmalloc.c: At top level:
nedmalloc.c:117:4: warning: #warning DEBUG may not be defined but without NDEBUG being defined allocator will run with assert checking! Define NDEBUG to run at full speed. [-Wcpp]
#warning DEBUG may not be defined but without NDEBUG being defined allocator will run with assert checking! Define NDEBUG to run at full speed.
^~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:2055:3: error: unknown type name ‘pthread_t’
pthread_t threadid;
^~~~~~~~~
malloc.c.h: In function ‘pthread_acquire_lock’:
malloc.c.h:2069:3: error: unknown type name ‘pthread_t’
pthread_t mythreadid = CURRENT_THREAD;
^~~~~~~~~
malloc.c.h:2058:31: warning: implicit declaration of function ‘pthread_self’ [-Wimplicit-function-declaration]
#define CURRENT_THREAD pthread_self()
^
malloc.c.h:2069:26: note: in expansion of macro ‘CURRENT_THREAD’
pthread_t mythreadid = CURRENT_THREAD;
^~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2086:9: note: in expansion of macro ‘assert’
assert(!sl->threadid);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2086:9: note: in expansion of macro ‘assert’
assert(!sl->threadid);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2086:9: note: in expansion of macro ‘assert’
assert(!sl->threadid);
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:2097:7: warning: implicit declaration of function ‘sched_yield’ [-Wimplicit-function-declaration]
sched_yield();
^~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘pthread_release_lock’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2108:3: note: in expansion of macro ‘assert’
assert(*lp != 0);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2108:3: note: in expansion of macro ‘assert’
assert(*lp != 0);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2109:3: note: in expansion of macro ‘assert’
assert(sl->threadid == CURRENT_THREAD);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2109:3: note: in expansion of macro ‘assert’
assert(sl->threadid == CURRENT_THREAD);
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘pthread_try_lock’:
malloc.c.h:2117:3: error: unknown type name ‘pthread_t’
pthread_t mythreadid = CURRENT_THREAD;
^~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2131:7: note: in expansion of macro ‘assert’
assert(!sl->threadid);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:2131:7: note: in expansion of macro ‘assert’
assert(!sl->threadid);
^~~~~~
malloc.c.h: In function ‘init_mparams’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3403:7: note: in expansion of macro ‘ABORT’
ABORT;
^~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3403:7: note: in expansion of macro ‘ABORT’
ABORT;
^~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:3436:34: warning: conversion to ‘long unsigned int’ from ‘time_t {aka long int}’ may change the sign of the result [-Wsign-conversion]
magic = (size_t)(time(0) ^ (size_t)0x55555555U);
^
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘mmap_alloc’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4103:7: note: in expansion of macro ‘assert’
assert(is_aligned(chunk2mem(p)));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4103:7: note: in expansion of macro ‘assert’
assert(is_aligned(chunk2mem(p)));
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘prepend_alloc’:
malloc.c.h:4198:18: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
size_t psize = (char*)oldfirst - (char*)p;
^
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4203:3: note: in expansion of macro ‘assert’
assert((char*)oldfirst > (char*)q);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4203:3: note: in expansion of macro ‘assert’
assert((char*)oldfirst > (char*)q);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4204:3: note: in expansion of macro ‘assert’
assert(pinuse(oldfirst));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4204:3: note: in expansion of macro ‘assert’
assert(pinuse(oldfirst));
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4205:3: note: in expansion of macro ‘assert’
assert(qsize >= MIN_CHUNK_SIZE);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4205:3: note: in expansion of macro ‘assert’
assert(qsize >= MIN_CHUNK_SIZE);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3849:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3849:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3850:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3850:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3851:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3851:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3860:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3860:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4222:7: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(m, oldfirst, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4227:24: warning: conversion to ‘unsigned int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
insert_chunk(m, q, qsize);
^
malloc.c.h:3072:20: note: in definition of macro ‘compute_tree_index’
unsigned int X = S >> TREEBIN_SHIFT;\
^
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4227:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, qsize);
^~~~~~~~~~~~
malloc.c.h: In function ‘add_segment’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4256:3: note: in expansion of macro ‘assert’
assert(is_aligned(ss));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4256:3: note: in expansion of macro ‘assert’
assert(is_aligned(ss));
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4274:3: note: in expansion of macro ‘assert’
assert(nfences >= 2);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4274:3: note: in expansion of macro ‘assert’
assert(nfences >= 2);
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4279:20: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
size_t psize = csp - old_top;
^~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4282:24: warning: conversion to ‘unsigned int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
insert_chunk(m, q, psize);
^
malloc.c.h:3072:20: note: in definition of macro ‘compute_tree_index’
unsigned int X = S >> TREEBIN_SHIFT;\
^
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4282:5: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, q, psize);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘sys_alloc’:
malloc.c.h:4408:24: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
size_t ssize = end - br;
^~~
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘release_unused_segments’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4510:9: note: in expansion of macro ‘assert’
assert(segment_holds(sp, (char*)sp));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4510:9: note: in expansion of macro ‘assert’
assert(segment_holds(sp, (char*)sp));
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4516:11: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, tp);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4526:37: warning: conversion to ‘unsigned int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
insert_large_chunk(m, tp, psize);
^
malloc.c.h:3072:20: note: in definition of macro ‘compute_tree_index’
unsigned int X = S >> TREEBIN_SHIFT;\
^
malloc.c.h:4526:11: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(m, tp, psize);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4526:11: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(m, tp, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4526:11: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(m, tp, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4526:11: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(m, tp, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4526:11: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(m, tp, psize);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4536:23: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘int’ may change the sign of the result [-Wsign-conversion]
m->release_checks = ((nsegs > MAX_RELEASE_CHECK_RATE)?
^
malloc.c.h: In function ‘sys_trim’:
malloc.c.h:4578:28: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
released = old_br - new_br;
^~~~~~
malloc.c.h: In function ‘tmalloc_large’:
malloc.c.h:4614:22: warning: conversion to ‘unsigned int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
compute_tree_index(nb, idx);
^
malloc.c.h:3072:20: note: in definition of macro ‘compute_tree_index’
unsigned int X = S >> TREEBIN_SHIFT;\
^
malloc.c.h:3176:7: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
J = __builtin_ctz(X); \
^
malloc.c.h:4643:7: note: in expansion of macro ‘compute_bit2idx’
compute_bit2idx(leastbit, i);
^~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4661:7: note: in expansion of macro ‘assert’
assert(chunksize(v) == rsize + nb);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4661:7: note: in expansion of macro ‘assert’
assert(chunksize(v) == rsize + nb);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4663:9: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4041:20: note: in expansion of macro ‘insert_small_chunk’
if (is_small(S)) insert_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4669:30: warning: conversion to ‘unsigned int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
insert_chunk(m, r, rsize);
^
malloc.c.h:3072:20: note: in definition of macro ‘compute_tree_index’
unsigned int X = S >> TREEBIN_SHIFT;\
^
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4042:41: note: in expansion of macro ‘insert_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:4669:11: note: in expansion of macro ‘insert_chunk’
insert_chunk(m, r, rsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4674:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(m);
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4674:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(m);
^~~~~~~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘tmalloc_small’:
malloc.c.h:3176:7: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
J = __builtin_ctz(X); \
^
malloc.c.h:4685:3: note: in expansion of macro ‘compute_bit2idx’
compute_bit2idx(leastbit, i);
^~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4699:5: note: in expansion of macro ‘assert’
assert(chunksize(v) == rsize + nb);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4699:5: note: in expansion of macro ‘assert’
assert(chunksize(v) == rsize + nb);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4701:7: note: in expansion of macro ‘unlink_large_chunk’
unlink_large_chunk(m, v);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3889:5: note: in expansion of macro ‘assert’
assert(is_small(DVS));\
^~~~~~
malloc.c.h:4707:9: note: in expansion of macro ‘replace_dv’
replace_dv(m, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3889:5: note: in expansion of macro ‘assert’
assert(is_small(DVS));\
^~~~~~
malloc.c.h:4707:9: note: in expansion of macro ‘replace_dv’
replace_dv(m, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4707:9: note: in expansion of macro ‘replace_dv’
replace_dv(m, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4707:9: note: in expansion of macro ‘replace_dv’
replace_dv(m, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4707:9: note: in expansion of macro ‘replace_dv’
replace_dv(m, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:4707:9: note: in expansion of macro ‘replace_dv’
replace_dv(m, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4713:3: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(m);
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4713:3: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(m);
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘internal_realloc’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:4762:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(m, oldmem);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:4762:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(m, oldmem);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4786:9: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
memcpy(newmem, oldmem, (oc < bytes)? oc : bytes);
^~~~~~
malloc.c.h:4786:9: warning: incompatible implicit declaration of built-in function ‘memcpy’
malloc.c.h:4786:9: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
malloc.c.h: In function ‘internal_memalign’:
malloc.c.h:4839:27: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
size_t leadsize = pos - (char*)(p);
^~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4866:7: note: in expansion of macro ‘assert’
assert (chunksize(p) >= nb);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4866:7: note: in expansion of macro ‘assert’
assert (chunksize(p) >= nb);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4867:7: note: in expansion of macro ‘assert’
assert((((size_t)(chunk2mem(p))) % alignment) == 0);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4867:7: note: in expansion of macro ‘assert’
assert((((size_t)(chunk2mem(p))) % alignment) == 0);
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘ialloc’:
malloc.c.h:2896:47: warning: conversion to ‘flag_t {aka unsigned int}’ from ‘long unsigned int’ may alter its value [-Wconversion]
#define disable_mmap(M) ((M)->mflags &= ~USE_MMAP_BIT)
^
malloc.c.h:4946:3: note: in expansion of macro ‘disable_mmap’
disable_mmap(m);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4957:3: note: in expansion of macro ‘assert’
assert(!is_mmapped(p));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:4957:3: note: in expansion of macro ‘assert’
assert(!is_mmapped(p));
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:4960:5: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
memset((size_t*)mem, 0, remainder_size - SIZE_T_SIZE - array_size);
^~~~~~
malloc.c.h:4960:5: warning: incompatible implicit declaration of built-in function ‘memset’
malloc.c.h:4960:5: note: include ‘<string.h>’ or provide a declaration of ‘memset’
malloc.c.h: In function ‘init_user_mstate’:
malloc.c.h:5381:3: warning: incompatible implicit declaration of built-in function ‘memset’
memset(m, 0, msize);
^~~~~~
malloc.c.h:5381:3: note: include ‘<string.h>’ or provide a declaration of ‘memset’
malloc.c.h:2059:73: warning: right-hand operand of comma expression has no effect [-Wunused-value]
#define INITIAL_LOCK(sl) ((sl)->threadid = 0, (sl)->l = (sl)->c = 0, 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
malloc.c.h:5382:3: note: in expansion of macro ‘INITIAL_LOCK’
INITIAL_LOCK(&m->mutex);
^~~~~~~~~~~~
malloc.c.h: In function ‘mspace_track_large_chunks’:
malloc.c.h:2896:47: warning: conversion to ‘flag_t {aka unsigned int}’ from ‘long unsigned int’ may alter its value [-Wconversion]
#define disable_mmap(M) ((M)->mflags &= ~USE_MMAP_BIT)
^
malloc.c.h:5441:7: note: in expansion of macro ‘disable_mmap’
disable_mmap(ms);
^~~~~~~~~~~~
malloc.c.h: In function ‘destroy_mspace’:
malloc.c.h:2060:31: warning: statement with no effect [-Wunused-value]
#define DESTROY_LOCK(sl) (0)
^
malloc.c.h:5461:5: note: in expansion of macro ‘DESTROY_LOCK’
DESTROY_LOCK(&ms->mutex);
^~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5464:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5464:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_malloc_implementation’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:5491:11: note: in expansion of macro ‘assert’
assert(chunksize(p) == small_index2size(idx));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:5491:11: note: in expansion of macro ‘assert’
assert(chunksize(p) == small_index2size(idx));
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3867:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3867:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3868:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3868:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3869:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3869:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3877:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3877:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5492:11: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, idx);
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:3176:7: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
J = __builtin_ctz(X); \
^
malloc.c.h:5506:13: note: in expansion of macro ‘compute_bit2idx’
compute_bit2idx(leastbit, i);
^~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:5509:13: note: in expansion of macro ‘assert’
assert(chunksize(p) == small_index2size(i));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:5509:13: note: in expansion of macro ‘assert’
assert(chunksize(p) == small_index2size(i));
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3867:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3867:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3868:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3868:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3869:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3869:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3877:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3877:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5510:13: note: in expansion of macro ‘unlink_first_small_chunk’
unlink_first_small_chunk(ms, b, p, i);
^~~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3889:5: note: in expansion of macro ‘assert’
assert(is_small(DVS));\
^~~~~~
malloc.c.h:5519:15: note: in expansion of macro ‘replace_dv’
replace_dv(ms, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3889:5: note: in expansion of macro ‘assert’
assert(is_small(DVS));\
^~~~~~
malloc.c.h:5519:15: note: in expansion of macro ‘replace_dv’
replace_dv(ms, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5519:15: note: in expansion of macro ‘replace_dv’
replace_dv(ms, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5519:15: note: in expansion of macro ‘replace_dv’
replace_dv(ms, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5519:15: note: in expansion of macro ‘replace_dv’
replace_dv(ms, r, rsize);
^~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:3890:5: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(M, DV, DVS);\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5519:15: note: in expansion of macro ‘replace_dv’
replace_dv(ms, r, rsize);
^~~~~~~~~~
malloc.c.h: In function ‘mspace_malloc’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5587:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5587:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_malloc2’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5596:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5596:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:5606:7: warning: incompatible implicit declaration of built-in function ‘memset’
memset(mem, 0, chunksize(p) - overhead_for(p));
^~~~~~
malloc.c.h:5606:7: note: include ‘<string.h>’ or provide a declaration of ‘memset’
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘mspace_free’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5621:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(fm, p);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5621:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(fm, p);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3849:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3849:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3850:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3850:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3851:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3851:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3860:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3860:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5644:17: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, p, prevsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3849:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3849:3: note: in expansion of macro ‘assert’
assert(P != B);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3850:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3850:3: note: in expansion of macro ‘assert’
assert(P != F);\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3851:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3851:3: note: in expansion of macro ‘assert’
assert(chunksize(P) == small_index2size(I));\
^~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3860:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3860:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4045:20: note: in expansion of macro ‘unlink_small_chunk’
if (is_small(S)) unlink_small_chunk(M, P, S)\
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3978:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3993:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4010:7: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4021:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4029:13: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:4033:9: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:4046:41: note: in expansion of macro ‘unlink_large_chunk’
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
^~~~~~~~~~~~~~~~~~
malloc.c.h:5680:15: note: in expansion of macro ‘unlink_chunk’
unlink_chunk(fm, next, nsize);
^~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:5692:13: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(fm, p, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
malloc.c.h:3830:3: note: in expansion of macro ‘assert’
assert(S >= MIN_CHUNK_SIZE);\
^~~~~~
malloc.c.h:5692:13: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(fm, p, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5692:13: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(fm, p, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3836:5: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5692:13: note: in expansion of macro ‘insert_small_chunk’
insert_small_chunk(fm, p, psize);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:5697:40: warning: conversion to ‘unsigned int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
insert_large_chunk(fm, tp, psize);
^
malloc.c.h:3072:20: note: in definition of macro ‘compute_tree_index’
unsigned int X = S >> TREEBIN_SHIFT;\
^
malloc.c.h:5697:13: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(fm, tp, psize);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5697:13: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(fm, tp, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3928:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5697:13: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(fm, tp, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5697:13: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(fm, tp, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3015:36: note: in expansion of macro ‘ABORT’
#define CORRUPTION_ERROR_ACTION(m) ABORT
^~~~~
malloc.c.h:3942:11: note: in expansion of macro ‘CORRUPTION_ERROR_ACTION’
CORRUPTION_ERROR_ACTION(M);\
^~~~~~~~~~~~~~~~~~~~~~~
malloc.c.h:5697:13: note: in expansion of macro ‘insert_large_chunk’
insert_large_chunk(fm, tp, psize);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5706:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(fm, p);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5706:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(fm, p);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_calloc’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5718:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5718:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:5731:7: warning: incompatible implicit declaration of built-in function ‘memset’
memset(mem, 0, chunksize(p) - overhead_for(p));
^~~~~~
malloc.c.h:5731:7: note: include ‘<string.h>’ or provide a declaration of ‘memset’
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘mspace_realloc2’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5755:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5755:7: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:5763:9: warning: incompatible implicit declaration of built-in function ‘memset’
memset((char*)mem + oldsize, 0, newsize - oldsize);
^~~~~~
malloc.c.h:5763:9: note: include ‘<string.h>’ or provide a declaration of ‘memset’
In file included from nedmalloc.c:168:0:
malloc.c.h: In function ‘mspace_memalign’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5776:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5776:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_independent_calloc’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5787:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5787:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_independent_comalloc’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5797:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5797:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_trim’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5813:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5813:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_malloc_stats’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5824:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5824:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_footprint’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5835:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5835:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_max_footprint’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5848:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5848:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h: In function ‘mspace_mallinfo’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5858:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:3019:33: note: in expansion of macro ‘ABORT’
#define USAGE_ERROR_ACTION(m,p) ABORT
^~~~~
malloc.c.h:5858:5: note: in expansion of macro ‘USAGE_ERROR_ACTION’
USAGE_ERROR_ACTION(ms,ms);
^~~~~~~~~~~~~~~~~~
nedmalloc.c: At top level:
nedmalloc.c:299:28: error: ‘malloc’ undeclared here (not in a function)
void *(*sysmalloc)(size_t)=malloc;
^~~~~~
nedmalloc.c:300:36: error: ‘calloc’ undeclared here (not in a function)
void *(*syscalloc)(size_t, size_t)=calloc;
^~~~~~
nedmalloc.c:301:37: error: ‘realloc’ undeclared here (not in a function)
void *(*sysrealloc)(void *, size_t)=realloc;
^~~~~~~
nedmalloc.c:302:25: error: ‘free’ undeclared here (not in a function)
void (*sysfree)(void *)=free;
^~~~
nedmalloc.c: In function ‘CallMalloc’:
nedmalloc.c:325:90: warning: declaration of ‘mspace’ shadows a global declaration [-Wshadow]
static FORCEINLINE NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void *CallMalloc(void *RESTRICT mspace, size_t size, size_t alignment, unsigned flags) THROWSPEC
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:1179:15: note: shadowed declaration is here
typedef void* mspace;
^~~~~~
nedmalloc.c: In function ‘CallRealloc’:
nedmalloc.c:374:91: warning: declaration of ‘mspace’ shadows a global declaration [-Wshadow]
static FORCEINLINE NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void *CallRealloc(void *RESTRICT mspace, void *RESTRICT mem, int isforeign, size_t oldsize, size_t newsize, size_t alignment, unsigned flags) THROWSPEC
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:1179:15: note: shadowed declaration is here
typedef void* mspace;
^~~~~~
nedmalloc.c:391:4: warning: incompatible implicit declaration of built-in function ‘memcpy’
memcpy(ret, mem, oldsize<newsize ? oldsize : newsize);
^~~~~~
nedmalloc.c:391:4: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
nedmalloc.c: In function ‘CallFree’:
nedmalloc.c:435:49: warning: declaration of ‘mspace’ shadows a global declaration [-Wshadow]
static FORCEINLINE void CallFree(void *RESTRICT mspace, void *RESTRICT mem, int isforeign) THROWSPEC
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:1179:15: note: shadowed declaration is here
typedef void* mspace;
^~~~~~
nedmalloc.c: In function ‘nedblkmstate’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:583:5: note: in expansion of macro ‘assert’
assert(ok_magic(fm)); /* If this fails, someone tried to free a block twice */
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:583:5: note: in expansion of macro ‘assert’
assert(ok_magic(fm)); /* If this fails, someone tried to free a block twice */
^~~~~~
nedmalloc.c: In function ‘nedblksize’:
nedmalloc.c:616:13: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion]
if((flags & NM_SKIP_TOLERANCE_CHECKS) || nedblkmstate(mem))
^
nedmalloc.c:625:8: warning: unused variable ‘a’ [-Wunused-variable]
int a=1; /* Set breakpoints here if needed */
^
nedmalloc.c: In function ‘nedmalloc2’:
nedmalloc.c:643:1: warning: ‘nedpmalloc2’ is deprecated [-Wdeprecated-declarations]
NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedmalloc2(size_t size, size_t alignment, unsigned flags) THROWSPEC { return nedpmalloc2((nedpool *) 0, size, alignment, flags); }
^~~~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:78:0:
nedmalloc.h:606:83: note: declared here
NEDMALLOCDEPRECATED NEDMALLOCEXTSPEC NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedpmalloc2(nedpool *p, size_t size, size_t alignment, unsigned flags) THROWSPEC;
^~~~~~~~~~~
nedmalloc.c: In function ‘nedrealloc2’:
nedmalloc.c:644:1: warning: ‘nedprealloc2’ is deprecated [-Wdeprecated-declarations]
NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedrealloc2(void *mem, size_t size, size_t alignment, unsigned flags) THROWSPEC { return nedprealloc2((nedpool *) 0, mem, size, alignment, flags); }
^~~~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:78:0:
nedmalloc.h:607:83: note: declared here
NEDMALLOCDEPRECATED NEDMALLOCEXTSPEC NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedprealloc2(nedpool *p, void *mem, size_t size, size_t alignment, unsigned flags) THROWSPEC;
^~~~~~~~~~~~
nedmalloc.c: In function ‘nedfree2’:
nedmalloc.c:645:1: warning: ‘nedpfree2’ is deprecated [-Wdeprecated-declarations]
NEDMALLOCNOALIASATTR void nedfree2(void *mem, unsigned flags) THROWSPEC { nedpfree2((nedpool *) 0, mem, flags); }
^~~~~~~~~~~~~~~~~~~~
In file included from nedmalloc.c:78:0:
nedmalloc.h:608:66: note: declared here
NEDMALLOCDEPRECATED NEDMALLOCEXTSPEC NEDMALLOCNOALIASATTR void nedpfree2(nedpool *p, void *mem, unsigned flags) THROWSPEC;
^~~~~~~~~
nedmalloc.c: In function ‘GetTimestamp’:
nedmalloc.c:687:45: warning: conversion to ‘long long unsigned int’ from ‘long long int’ may change the sign of the result [-Wsign-conversion]
ret=((timeCount) ts.tv_sec*1000000000000LL)+ts.tv_nsec*1000LL;
^
nedmalloc.c: At top level:
nedmalloc.c:252:19: error: unknown type name ‘pthread_key_t’
#define TLSVAR pthread_key_t
^
nedmalloc.c:791:2: note: in expansion of macro ‘TLSVAR’
TLSVAR mycache; /* Thread cache for this thread. 0 for unset, negative for use mspace-1 directly, otherwise is cache-1 */
^~~~~~
nedmalloc.c: In function ‘LogOperation’:
nedmalloc.c:1012:96: warning: declaration of ‘mspace’ shadows a global declaration [-Wshadow]
static FORCEINLINE logentry *LogOperation(threadcache *tc, nedpool *np, LogEntryType type, int mspace, size_t size, void *mem, size_t alignment, unsigned flags, void *returned) THROWSPEC
^~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:1179:15: note: shadowed declaration is here
typedef void* mspace;
^~~~~~
nedmalloc.c: In function ‘size2binidx’:
nedmalloc.c:1056:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
topbit = sizeof(size)*__CHAR_BIT__ - 1 - __builtin_clz(size);
^
nedmalloc.c:1056:18: warning: conversion to ‘unsigned int’ from ‘long unsigned int’ may alter its value [-Wconversion]
topbit = sizeof(size)*__CHAR_BIT__ - 1 - __builtin_clz(size);
^~~~~~
In file included from nedmalloc.c:168:0:
nedmalloc.c: In function ‘RemoveCacheEntries’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1156:5: note: in expansion of macro ‘assert’
assert(blksize<=nedblksize(0, f, 0));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1156:5: note: in expansion of macro ‘assert’
assert(blksize<=nedblksize(0, f, 0));
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1157:5: note: in expansion of macro ‘assert’
assert(blksize);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1157:5: note: in expansion of macro ‘assert’
assert(blksize);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1167:5: note: in expansion of macro ‘assert’
assert((long) tc->freeInCache>=0);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1167:5: note: in expansion of macro ‘assert’
assert((long) tc->freeInCache>=0);
^~~~~~
nedmalloc.c:1170:53: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
LogOperation(tc, p, LOGENTRY_THREADCACHE_CLEAN, age, blksize, f, 0, 0, 0);
^~~
In file included from nedmalloc.c:168:0:
nedmalloc.c: In function ‘nedflushlogs’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1200:5: note: in expansion of macro ‘assert’
assert(!tc->freeInCache);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1200:5: note: in expansion of macro ‘assert’
assert(!tc->freeInCache);
^~~~~~
nedmalloc.c: In function ‘AllocCache’:
nedmalloc.c:1322:15: warning: implicit declaration of function ‘abs’ [-Wimplicit-function-declaration]
tc->mymspace=abs(tc->threadid) % end;
^~~
nedmalloc.c:256:23: warning: implicit declaration of function ‘pthread_setspecific’ [-Wimplicit-function-declaration]
#define TLSSET(k, a) pthread_setspecific(k, a)
^
nedmalloc.c:1343:5: note: in expansion of macro ‘TLSSET’
if(TLSSET(p->mycache, (void *)(size_t)(n+1))) abort();
^~~~~~
nedmalloc.c:1343:48: warning: incompatible implicit declaration of built-in function ‘abort’
if(TLSSET(p->mycache, (void *)(size_t)(n+1))) abort();
^~~~~
nedmalloc.c:1343:48: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
nedmalloc.c: In function ‘threadcache_malloc’:
nedmalloc.c:1358:11: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
bestsize=1<<(idx+4);
^
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1379:2: note: in expansion of macro ‘assert’
assert(bestsize>=size);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1379:2: note: in expansion of macro ‘assert’
assert(bestsize>=size);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1381:2: note: in expansion of macro ‘assert’
assert(size<=THREADCACHEMAX);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1381:2: note: in expansion of macro ‘assert’
assert(size<=THREADCACHEMAX);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1382:2: note: in expansion of macro ‘assert’
assert(idx<=THREADCACHEMAXBINS);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1382:2: note: in expansion of macro ‘assert’
assert(idx<=THREADCACHEMAXBINS);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1398:3: note: in expansion of macro ‘assert’
assert(nedblksize(0, blk, 0)>=blksize);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1398:3: note: in expansion of macro ‘assert’
assert(nedblksize(0, blk, 0)>=blksize);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1399:3: note: in expansion of macro ‘assert’
assert(blksize>=size);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1399:3: note: in expansion of macro ‘assert’
assert(blksize>=size);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1408:3: note: in expansion of macro ‘assert’
assert(binsptr[0]!=blk && binsptr[1]!=blk);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1408:3: note: in expansion of macro ‘assert’
assert(binsptr[0]!=blk && binsptr[1]!=blk);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1409:3: note: in expansion of macro ‘assert’
assert(nedblksize(0, blk, 0)>=sizeof(threadcacheblk) && nedblksize(0, blk, 0)<=THREADCACHEMAX+CHUNK_OVERHEAD);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1409:3: note: in expansion of macro ‘assert’
assert(nedblksize(0, blk, 0)>=sizeof(threadcacheblk) && nedblksize(0, blk, 0)<=THREADCACHEMAX+CHUNK_OVERHEAD);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1416:3: note: in expansion of macro ‘assert’
assert(blksize>=size);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1416:3: note: in expansion of macro ‘assert’
assert(blksize>=size);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1419:3: note: in expansion of macro ‘assert’
assert((long) tc->freeInCache>=0);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1419:3: note: in expansion of macro ‘assert’
assert((long) tc->freeInCache>=0);
^~~~~~
nedmalloc.c: In function ‘threadcache_free’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1455:2: note: in expansion of macro ‘assert’
assert(size>=sizeof(threadcacheblk) && size<=THREADCACHEMAX+CHUNK_OVERHEAD);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1455:2: note: in expansion of macro ‘assert’
assert(size>=sizeof(threadcacheblk) && size<=THREADCACHEMAX+CHUNK_OVERHEAD);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1458:2: note: in expansion of macro ‘assert’
assert(nedblksize(0, mem, 0));
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1458:2: note: in expansion of macro ‘assert’
assert(nedblksize(0, mem, 0));
^~~~~~
nedmalloc.c:1464:11: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
bestsize=1<<(idx+4);
^
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1481:2: note: in expansion of macro ‘assert’
assert(idx<=THREADCACHEMAXBINS);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1481:2: note: in expansion of macro ‘assert’
assert(idx<=THREADCACHEMAXBINS);
^~~~~~
nedmalloc.c:1485:3: warning: incompatible implicit declaration of built-in function ‘abort’
abort();
^~~~~
nedmalloc.c:1485:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1499:2: note: in expansion of macro ‘assert’
assert(!*binsptr || (*binsptr)->size==tck->size);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1499:2: note: in expansion of macro ‘assert’
assert(!*binsptr || (*binsptr)->size==tck->size);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1501:2: note: in expansion of macro ‘assert’
assert(tck==tc->bins[idx*2]);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1501:2: note: in expansion of macro ‘assert’
assert(tck==tc->bins[idx*2]);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1502:2: note: in expansion of macro ‘assert’
assert(tc->bins[idx*2+1]==tck || binsptr[0]->next->prev==tck);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1502:2: note: in expansion of macro ‘assert’
assert(tc->bins[idx*2+1]==tck || binsptr[0]->next->prev==tck);
^~~~~~
nedmalloc.c: In function ‘InitPool’:
nedmalloc.c:253:22: warning: implicit declaration of function ‘pthread_key_create’ [-Wimplicit-function-declaration]
#define TLSALLOC(k) pthread_key_create(k, 0)
^
nedmalloc.c:1525:5: note: in expansion of macro ‘TLSALLOC’
if(TLSALLOC(&p->mycache)) goto err;
^~~~~~~~
nedmalloc.c:1538:3: warning: incompatible implicit declaration of built-in function ‘abort’
abort(); /* If you can't allocate for system pool, we're screwed */
^~~~~
nedmalloc.c:1538:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
nedmalloc.c:254:22: warning: implicit declaration of function ‘pthread_key_delete’ [-Wimplicit-function-declaration]
#define TLSFREE(k) pthread_key_delete(k)
^
nedmalloc.c:1549:6: note: in expansion of macro ‘TLSFREE’
if(TLSFREE(p->mycache)) abort();
^~~~~~~
nedmalloc.c:1549:27: warning: incompatible implicit declaration of built-in function ‘abort’
if(TLSFREE(p->mycache)) abort();
^~~~~
nedmalloc.c:1549:27: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
nedmalloc.c: In function ‘FindMSpace’:
nedmalloc.c:1615:52: warning: incompatible implicit declaration of built-in function ‘abort’
if(TLSSET(p->mycache, (void *)(size_t)(-(n+1)))) abort();
^~~~~
nedmalloc.c:1615:52: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
In file included from nedmalloc.c:168:0:
nedmalloc.c: In function ‘nedcreatepool’:
malloc.c.h:2059:73: warning: right-hand operand of comma expression has no effect [-Wunused-value]
#define INITIAL_LOCK(sl) ((sl)->threadid = 0, (sl)->l = (sl)->c = 0, 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
nedmalloc.c:1642:3: note: in expansion of macro ‘INITIAL_LOCK’
INITIAL_LOCK(&poollistlock);
^~~~~~~~~~~~
nedmalloc.c:1659:3: warning: incompatible implicit declaration of built-in function ‘memset’
memset(&poollist->list[poollist->size], 0, newsize-((size_t)&poollist->list[poollist->size]-(size_t)&poollist->list[0]));
^~~~~~
nedmalloc.c:1659:3: note: include ‘<string.h>’ or provide a declaration of ‘memset’
nedmalloc.c:1660:27: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
poollist->size=((newsize-((char *)&poollist->list[0]-(char *)poollist))/sizeof(nedpool *))-1;
^
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1661:3: note: in expansion of macro ‘assert’
assert(poollist->size>poollist->length);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1661:3: note: in expansion of macro ‘assert’
assert(poollist->size>poollist->length);
^~~~~~
In file included from nedmalloc.c:168:0:
nedmalloc.c: In function ‘neddestroypool’:
malloc.c.h:2060:31: warning: statement with no effect [-Wunused-value]
#define DESTROY_LOCK(sl) (0)
^
nedmalloc.c:1694:2: note: in expansion of macro ‘DESTROY_LOCK’
DESTROY_LOCK(&p->mutex);
^~~~~~~~~~~~
nedmalloc.c:1696:26: warning: incompatible implicit declaration of built-in function ‘abort’
if(TLSFREE(p->mycache)) abort();
^~~~~
nedmalloc.c:1696:26: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1701:2: note: in expansion of macro ‘assert’
assert(poollist);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1701:2: note: in expansion of macro ‘assert’
assert(poollist);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1703:2: note: in expansion of macro ‘assert’
assert(n!=poollist->length);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1703:2: note: in expansion of macro ‘assert’
assert(n!=poollist->length);
^~~~~~
nedmalloc.c:1704:2: warning: implicit declaration of function ‘memmove’ [-Wimplicit-function-declaration]
memmove(&poollist->list[n], &poollist->list[n+1], (size_t)&poollist->list[poollist->length]-(size_t)&poollist->list[n]);
^~~~~~~
nedmalloc.c:1704:2: warning: incompatible implicit declaration of built-in function ‘memmove’
nedmalloc.c:1704:2: note: include ‘<string.h>’ or provide a declaration of ‘memmove’
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1707:3: note: in expansion of macro ‘assert’
assert(!poollist->list[0]);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1707:3: note: in expansion of macro ‘assert’
assert(!poollist->list[0]);
^~~~~~
nedmalloc.c: In function ‘neddestroysyspool’:
nedmalloc.c:1735:26: warning: incompatible implicit declaration of built-in function ‘abort’
if(TLSFREE(p->mycache)) abort();
^~~~~
nedmalloc.c:1735:26: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
In file included from nedmalloc.c:168:0:
malloc.c.h:2060:31: warning: statement with no effect [-Wunused-value]
#define DESTROY_LOCK(sl) (0)
^
nedmalloc.c:1738:2: note: in expansion of macro ‘DESTROY_LOCK’
DESTROY_LOCK(&p->mutex);
^~~~~~~~~~~~
nedmalloc.c: In function ‘nedpoollist’:
nedmalloc.c:1750:3: warning: incompatible implicit declaration of built-in function ‘memcpy’
memcpy(ret, poollist->list, (poollist->length+1)*sizeof(nedpool *));
^~~~~~
nedmalloc.c:1750:3: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
nedmalloc.c: In function ‘nedtrimthreadcache’:
nedmalloc.c:255:21: warning: implicit declaration of function ‘pthread_getspecific’ [-Wimplicit-function-declaration]
#define TLSGET(k) pthread_getspecific(k)
^
nedmalloc.c:1784:24: note: in expansion of macro ‘TLSGET’
mycache=(int)(size_t) TLSGET(p->mycache);
^~~~~~
nedmalloc.c:1787:57: warning: incompatible implicit declaration of built-in function ‘abort’
if(disable && TLSSET(p->mycache, (void *)(size_t)-1)) abort();
^~~~~
nedmalloc.c:1787:57: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
nedmalloc.c:1796:70: warning: incompatible implicit declaration of built-in function ‘abort’
if(disable && TLSSET(p->mycache, (void *)(size_t)(-tc->mymspace))) abort();
^~~~~
nedmalloc.c:1796:70: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1799:3: note: in expansion of macro ‘assert’
assert(!tc->freeInCache);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1799:3: note: in expansion of macro ‘assert’
assert(!tc->freeInCache);
^~~~~~
nedmalloc.c: In function ‘GetMSpace’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1834:2: note: in expansion of macro ‘assert’
assert(m);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1834:2: note: in expansion of macro ‘assert’
assert(m);
^~~~~~
nedmalloc.c: In function ‘GetThreadCache_cold2’:
nedmalloc.c:1853:50: warning: incompatible implicit declaration of built-in function ‘abort’
if(TLSSET((*p)->mycache, (void *)(size_t)-1)) abort();
^~~~~
nedmalloc.c:1853:50: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
In file included from nedmalloc.c:168:0:
nedmalloc.c: In function ‘GetThreadCache’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1880:2: note: in expansion of macro ‘assert’
assert(*mymspace>=0);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1880:2: note: in expansion of macro ‘assert’
assert(*mymspace>=0);
^~~~~~
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1882:2: note: in expansion of macro ‘assert’
assert(!(*tc) || (long)(size_t)CURRENT_THREAD==(*tc)->threadid);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1882:2: note: in expansion of macro ‘assert’
assert(!(*tc) || (long)(size_t)CURRENT_THREAD==(*tc)->threadid);
^~~~~~
nedmalloc.c: In function ‘nedpmalloc2’:
nedmalloc.c:1907:5: warning: incompatible implicit declaration of built-in function ‘memset’
memset(ret, 0, size);
^~~~~~
nedmalloc.c:1907:5: note: include ‘<string.h>’ or provide a declaration of ‘memset’
nedmalloc.c: In function ‘nedprealloc2’:
nedmalloc.c:1928:2: warning: ‘nedpmalloc2’ is deprecated [-Wdeprecated-declarations]
if(!mem) return nedpmalloc2(p, size, alignment, flags);
^~
nedmalloc.c:1895:46: note: declared here
NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedpmalloc2(nedpool *p, size_t size, size_t alignment, unsigned flags) THROWSPEC
^~~~~~~~~~~
In file included from nedmalloc.c:168:0:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1937:2: note: in expansion of macro ‘assert’
assert(memsize);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1937:2: note: in expansion of macro ‘assert’
assert(memsize);
^~~~~~
nedmalloc.c:1941:3: warning: incompatible implicit declaration of built-in function ‘abort’
abort();
^~~~~
nedmalloc.c:1941:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
nedmalloc.c:1958:4: warning: incompatible implicit declaration of built-in function ‘memcpy’
memcpy(ret, mem, tocopy);
^~~~~~
nedmalloc.c:1958:4: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
nedmalloc.c:1960:5: warning: incompatible implicit declaration of built-in function ‘memset’
memset((void *)((size_t)ret+memsize), 0, size-memsize);
^~~~~~
nedmalloc.c:1960:5: note: include ‘<string.h>’ or provide a declaration of ‘memset’
In file included from nedmalloc.c:168:0:
nedmalloc.c: In function ‘nedpfree2’:
malloc.c.h:592:16: warning: incompatible implicit declaration of built-in function ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1999:2: note: in expansion of macro ‘assert’
assert(memsize);
^~~~~~
malloc.c.h:592:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define ABORT abort()
^
malloc.c.h:1415:28: note: in expansion of macro ‘ABORT’
#define assert(x) if(!(x)) ABORT
^~~~~
nedmalloc.c:1999:2: note: in expansion of macro ‘assert’
assert(memsize);
^~~~~~
nedmalloc.c:2003:3: warning: incompatible implicit declaration of built-in function ‘abort’
abort();
^~~~~
nedmalloc.c:2003:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
nedmalloc.c: In function ‘nedpmalloc’:
nedmalloc.c:2023:2: warning: ‘nedpmalloc2’ is deprecated [-Wdeprecated-declarations]
return nedpmalloc2(p, size, 0, flags);
^~~~~~
nedmalloc.c:1895:46: note: declared here
NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedpmalloc2(nedpool *p, size_t size, size_t alignment, unsigned flags) THROWSPEC
^~~~~~~~~~~
nedmalloc.c: In function ‘nedpcalloc’:
nedmalloc.c:2031:2: warning: ‘nedpmalloc2’ is deprecated [-Wdeprecated-declarations]
return nedpmalloc2(p, bytes, 0, M2_ZERO_MEMORY|flags);
^~~~~~
nedmalloc.c:1895:46: note: declared here
NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedpmalloc2(nedpool *p, size_t size, size_t alignment, unsigned flags) THROWSPEC
^~~~~~~~~~~
nedmalloc.c: In function ‘nedprealloc’:
nedmalloc.c:2045:2: warning: ‘nedprealloc2’ is deprecated [-Wdeprecated-declarations]
return nedprealloc2(p, mem, size, 0, flags);
^~~~~~
nedmalloc.c:1922:46: note: declared here
NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedprealloc2(nedpool *p, void *mem, size_t size, size_t alignment, unsigned flags) THROWSPEC
^~~~~~~~~~~~
nedmalloc.c: In function ‘nedpmemalign’:
nedmalloc.c:2050:2: warning: ‘nedpmalloc2’ is deprecated [-Wdeprecated-declarations]
return nedpmalloc2(p, bytes, alignment, flags);
^~~~~~
nedmalloc.c:1895:46: note: declared here
NEDMALLOCNOALIASATTR NEDMALLOCPTRATTR void * nedpmalloc2(nedpool *p, size_t size, size_t alignment, unsigned flags) THROWSPEC
^~~~~~~~~~~
nedmalloc.c: In function ‘nedpfree’:
nedmalloc.c:2054:3: warning: ‘nedpfree2’ is deprecated [-Wdeprecated-declarations]
nedpfree2(p, mem, 0);
^~~~~~~~~
nedmalloc.c:1985:29: note: declared here
NEDMALLOCNOALIASATTR void nedpfree2(nedpool *p, void *mem, unsigned flags) THROWSPEC
^~~~~~~~~
nedmalloc.c: In function ‘nedpindependent_comalloc’:
nedmalloc.c:2163:41: warning: implicit declaration of function ‘alloca’ [-Wimplicit-function-declaration]
size_t i, *adjustedsizes=(size_t *) alloca(elems*sizeof(size_t));
^~~~~~
nedmalloc.c:2163:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
size_t i, *adjustedsizes=(size_t *) alloca(elems*sizeof(size_t));
^
nedmalloc.c:2165:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(i=0; i<elems; i++)
^~~
nedmalloc.c:2167:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
GetThreadCache(&p, &tc, &mymspace, 0);
^~~~~~~~~~~~~~
At top level:
nedmalloc.c:739:20: warning: ‘LogEntryTypeStrings’ defined but not used [-Wunused-variable]
static const char *LogEntryTypeStrings[]={
^~~~~~~~~~~~~~~~~~~
nedmalloc.c:680:18: warning: ‘GetTimestamp’ defined but not used [-Wunused-function]
static timeCount GetTimestamp()
^~~~~~~~~~~~
make: *** [../../Mk/l4.build.mk:62: nedmalloc.o] Error 1
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$
Current status is
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ make
===> Making dependencies in .
===> fscanf.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c fscanf.c -o fscanf.o
In file included from fscanf.c:33:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
===> stdio.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c stdio.c -o stdio.o
In file included from stdio.c:36:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
stdio.c: In function ‘__sread’:
stdio.c:48:8: warning: implicit declaration of function ‘TEMP_FAILURE_RETRY’ [-Wimplicit-function-declaration]
ret = TEMP_FAILURE_RETRY(read(fp->_file, buf, n));
^~~~~~~~~~~~~~~~~~
stdio.c:48:27: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
ret = TEMP_FAILURE_RETRY(read(fp->_file, buf, n));
^~~~
stdio.c: In function ‘__swrite’:
stdio.c:63:28: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration]
return TEMP_FAILURE_RETRY(write(fp->_file, buf, n));
^~~~~
stdio.c: In function ‘__sclose’:
stdio.c:83:9: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
return close(((FILE *)cookie)->_file);
^~~~~
===> fopen.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c fopen.c -o fopen.o
In file included from fopen.c:42:0:
../../include/sys/types.h: In function ‘__bitcount16’:
../../include/sys/types.h:327:7: warning: conversion to ‘__uint16_t {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
_x = (_x & 0x5555) + ((_x & 0xaaaa) >> 1);
^
../../include/sys/types.h:328:7: warning: conversion to ‘__uint16_t {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
_x = (_x & 0x3333) + ((_x & 0xcccc) >> 2);
^
In file included from ../../include/sys/types.h:376:0,
from fopen.c:42:
../../include/sys/select.h: At top level:
../../include/sys/select.h:105:54: warning: ‘struct timeval’ declared inside parameter list will not be visible outside of this definition or declaration
int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
^~~~~~~
In file included from fopen.c:42:0:
../../include/sys/types.h: In function ‘__major’:
../../include/sys/types.h:393:36: warning: conversion to ‘int’ from ‘dev_t {aka long unsigned int}’ may alter its value [-Wconversion]
return (((_d >> 32) & 0xffffff00) | ((_d >> 8) & 0xff));
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../../include/sys/types.h: In function ‘__minor’:
../../include/sys/types.h:399:32: warning: conversion to ‘int’ from ‘dev_t {aka long unsigned int}’ may alter its value [-Wconversion]
return (((_d >> 24) & 0xff00) | (_d & 0xffff00ff));
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
../../include/sys/types.h: In function ‘__makedev’:
../../include/sys/types.h:405:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
return (((dev_t)(_Major & 0xffffff00) << 32) | ((_Major & 0xff) << 8) |
^
../../include/sys/types.h:405:47: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
return (((dev_t)(_Major & 0xffffff00) << 32) | ((_Major & 0xff) << 8) |
^
../../include/sys/types.h:406:49: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
((dev_t)(_Minor & 0xff00) << 24) | (_Minor & 0xffff00ff));
^
In file included from fopen.c:46:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
In file included from fopen.c:48:0:
../../include/limits.h: At top level:
../../include/limits.h:12:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif SHRT_MAX
^~~~~~~~
fopen.c: In function ‘fopen’:
fopen.c:77:3: warning: implicit declaration of function ‘_close’ [-Wimplicit-function-declaration]
_close(f);
^~~~~~
fopen.c:81:14: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_file = f;
^
fopen.c:82:15: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_flags = flags;
^~~~~
fopen.c:98:9: warning: implicit declaration of function ‘_sseek’ [-Wimplicit-function-declaration]
(void)_sseek(fp, (fpos_t)0, SEEK_END);
^~~~~~
===> tmpnam.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c tmpnam.c -o tmpnam.o
In file included from tmpnam.c:41:0:
../../include/sys/types.h: In function ‘__bitcount16’:
../../include/sys/types.h:327:7: warning: conversion to ‘__uint16_t {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
_x = (_x & 0x5555) + ((_x & 0xaaaa) >> 1);
^
../../include/sys/types.h:328:7: warning: conversion to ‘__uint16_t {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
_x = (_x & 0x3333) + ((_x & 0xcccc) >> 2);
^
In file included from ../../include/sys/types.h:376:0,
from tmpnam.c:41:
../../include/sys/select.h: At top level:
../../include/sys/select.h:105:54: warning: ‘struct timeval’ declared inside parameter list will not be visible outside of this definition or declaration
int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
^~~~~~~
In file included from tmpnam.c:41:0:
../../include/sys/types.h: In function ‘__major’:
../../include/sys/types.h:393:36: warning: conversion to ‘int’ from ‘dev_t {aka long unsigned int}’ may alter its value [-Wconversion]
return (((_d >> 32) & 0xffffff00) | ((_d >> 8) & 0xff));
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../../include/sys/types.h: In function ‘__minor’:
../../include/sys/types.h:399:32: warning: conversion to ‘int’ from ‘dev_t {aka long unsigned int}’ may alter its value [-Wconversion]
return (((_d >> 24) & 0xff00) | (_d & 0xffff00ff));
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
../../include/sys/types.h: In function ‘__makedev’:
../../include/sys/types.h:405:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
return (((dev_t)(_Major & 0xffffff00) << 32) | ((_Major & 0xff) << 8) |
^
../../include/sys/types.h:405:47: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
return (((dev_t)(_Major & 0xffffff00) << 32) | ((_Major & 0xff) << 8) |
^
../../include/sys/types.h:406:49: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
((dev_t)(_Minor & 0xff00) << 24) | (_Minor & 0xffff00ff));
^
In file included from tmpnam.c:43:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
===> Linking ./liblinux.a
ar cru liblinux.a fscanf.o stdio.o fopen.o tmpnam.o
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib liblinux.a
cp liblinux.a ../../lib/liblinux.a
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$
Now at
tyson@tyson-Lenovo-ideapad-120S-14IAP:~/Orion/user/lib/linux$ make
===> Making dependencies in .
===> flags.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c flags.c -o flags.o
In file included from flags.c:41:0:
../../include/sys/types.h: In function ‘__bitcount16’:
../../include/sys/types.h:327:7: warning: conversion to ‘__uint16_t {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
_x = (_x & 0x5555) + ((_x & 0xaaaa) >> 1);
^
../../include/sys/types.h:328:7: warning: conversion to ‘__uint16_t {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
_x = (_x & 0x3333) + ((_x & 0xcccc) >> 2);
^
In file included from ../../include/sys/types.h:376:0,
from flags.c:41:
../../include/sys/select.h: At top level:
../../include/sys/select.h:105:54: warning: ‘struct timeval’ declared inside parameter list will not be visible outside of this definition or declaration
int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
^~~~~~~
In file included from flags.c:41:0:
../../include/sys/types.h: In function ‘__major’:
../../include/sys/types.h:393:36: warning: conversion to ‘int’ from ‘dev_t {aka long unsigned int}’ may alter its value [-Wconversion]
return (((_d >> 32) & 0xffffff00) | ((_d >> 8) & 0xff));
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../../include/sys/types.h: In function ‘__minor’:
../../include/sys/types.h:399:32: warning: conversion to ‘int’ from ‘dev_t {aka long unsigned int}’ may alter its value [-Wconversion]
return (((_d >> 24) & 0xff00) | (_d & 0xffff00ff));
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
../../include/sys/types.h: In function ‘__makedev’:
../../include/sys/types.h:405:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
return (((dev_t)(_Major & 0xffffff00) << 32) | ((_Major & 0xff) << 8) |
^
../../include/sys/types.h:405:47: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
return (((dev_t)(_Major & 0xffffff00) << 32) | ((_Major & 0xff) << 8) |
^
../../include/sys/types.h:406:49: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
((dev_t)(_Minor & 0xff00) << 24) | (_Minor & 0xffff00ff));
^
In file included from flags.c:43:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
===> fscanf.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c fscanf.c -o fscanf.o
In file included from fscanf.c:33:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
===> stdio.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c stdio.c -o stdio.o
In file included from stdio.c:36:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
stdio.c: In function ‘__sread’:
stdio.c:48:8: warning: implicit declaration of function ‘TEMP_FAILURE_RETRY’ [-Wimplicit-function-declaration]
ret = TEMP_FAILURE_RETRY(read(fp->_file, buf, n));
^~~~~~~~~~~~~~~~~~
stdio.c:48:27: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
ret = TEMP_FAILURE_RETRY(read(fp->_file, buf, n));
^~~~
stdio.c: In function ‘__swrite’:
stdio.c:63:28: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration]
return TEMP_FAILURE_RETRY(write(fp->_file, buf, n));
^~~~~
stdio.c: In function ‘__sclose’:
stdio.c:83:9: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
return close(((FILE *)cookie)->_file);
^~~~~
===> fopen.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c fopen.c -o fopen.o
In file included from fopen.c:42:0:
../../include/sys/types.h: In function ‘__bitcount16’:
../../include/sys/types.h:327:7: warning: conversion to ‘__uint16_t {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
_x = (_x & 0x5555) + ((_x & 0xaaaa) >> 1);
^
../../include/sys/types.h:328:7: warning: conversion to ‘__uint16_t {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
_x = (_x & 0x3333) + ((_x & 0xcccc) >> 2);
^
In file included from ../../include/sys/types.h:376:0,
from fopen.c:42:
../../include/sys/select.h: At top level:
../../include/sys/select.h:105:54: warning: ‘struct timeval’ declared inside parameter list will not be visible outside of this definition or declaration
int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
^~~~~~~
In file included from fopen.c:42:0:
../../include/sys/types.h: In function ‘__major’:
../../include/sys/types.h:393:36: warning: conversion to ‘int’ from ‘dev_t {aka long unsigned int}’ may alter its value [-Wconversion]
return (((_d >> 32) & 0xffffff00) | ((_d >> 8) & 0xff));
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../../include/sys/types.h: In function ‘__minor’:
../../include/sys/types.h:399:32: warning: conversion to ‘int’ from ‘dev_t {aka long unsigned int}’ may alter its value [-Wconversion]
return (((_d >> 24) & 0xff00) | (_d & 0xffff00ff));
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
../../include/sys/types.h: In function ‘__makedev’:
../../include/sys/types.h:405:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
return (((dev_t)(_Major & 0xffffff00) << 32) | ((_Major & 0xff) << 8) |
^
../../include/sys/types.h:405:47: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
return (((dev_t)(_Major & 0xffffff00) << 32) | ((_Major & 0xff) << 8) |
^
../../include/sys/types.h:406:49: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
((dev_t)(_Minor & 0xff00) << 24) | (_Minor & 0xffff00ff));
^
In file included from fopen.c:46:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
In file included from fopen.c:48:0:
../../include/limits.h: At top level:
../../include/limits.h:12:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif SHRT_MAX
^~~~~~~~
fopen.c: In function ‘fopen’:
fopen.c:77:3: warning: implicit declaration of function ‘_close’ [-Wimplicit-function-declaration]
_close(f);
^~~~~~
fopen.c:81:14: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_file = f;
^
fopen.c:82:15: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
fp->_flags = flags;
^~~~~
fopen.c:98:9: warning: implicit declaration of function ‘_sseek’ [-Wimplicit-function-declaration]
(void)_sseek(fp, (fpos_t)0, SEEK_END);
^~~~~~
===> tmpnam.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c tmpnam.c -o tmpnam.o
In file included from tmpnam.c:41:0:
../../include/sys/types.h: In function ‘__bitcount16’:
../../include/sys/types.h:327:7: warning: conversion to ‘__uint16_t {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
_x = (_x & 0x5555) + ((_x & 0xaaaa) >> 1);
^
../../include/sys/types.h:328:7: warning: conversion to ‘__uint16_t {aka short unsigned int}’ from ‘int’ may alter its value [-Wconversion]
_x = (_x & 0x3333) + ((_x & 0xcccc) >> 2);
^
In file included from ../../include/sys/types.h:376:0,
from tmpnam.c:41:
../../include/sys/select.h: At top level:
../../include/sys/select.h:105:54: warning: ‘struct timeval’ declared inside parameter list will not be visible outside of this definition or declaration
int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
^~~~~~~
In file included from tmpnam.c:41:0:
../../include/sys/types.h: In function ‘__major’:
../../include/sys/types.h:393:36: warning: conversion to ‘int’ from ‘dev_t {aka long unsigned int}’ may alter its value [-Wconversion]
return (((_d >> 32) & 0xffffff00) | ((_d >> 8) & 0xff));
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../../include/sys/types.h: In function ‘__minor’:
../../include/sys/types.h:399:32: warning: conversion to ‘int’ from ‘dev_t {aka long unsigned int}’ may alter its value [-Wconversion]
return (((_d >> 24) & 0xff00) | (_d & 0xffff00ff));
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
../../include/sys/types.h: In function ‘__makedev’:
../../include/sys/types.h:405:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
return (((dev_t)(_Major & 0xffffff00) << 32) | ((_Major & 0xff) << 8) |
^
../../include/sys/types.h:405:47: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
return (((dev_t)(_Major & 0xffffff00) << 32) | ((_Major & 0xff) << 8) |
^
../../include/sys/types.h:406:49: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
((dev_t)(_Minor & 0xff00) << 24) | (_Minor & 0xffff00ff));
^
In file included from tmpnam.c:43:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
===> Linking ./liblinux.a
ar cru liblinux.a flags.o fscanf.o stdio.o fopen.o tmpnam.o
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib liblinux.a
cp liblinux.a ../../lib/liblinux.a
For CacheLineSize:
===> CacheLineSize.c
gcc-6 -I../../include -I../.. -I/usr/lib/gcc/x86_64-linux-gnu/6/include -nostdinc -g -O2 -m64 -mno-red-zone -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -Wconversion -std=c99 -c CacheLineSize.c -o CacheLineSize.o
In file included from ../../include/sys/_types.h:35:0,
from ../../include/stdio.h:43,
from CacheLineSize.c:40:
../../include/machine/_types.h:43:1: warning: useless type name in empty declaration
typedef L4_Size_t __size_t;
^~~~~~~
In file included from CacheLineSize.c:40:0:
../../include/stdio.h: In function ‘__sputc’:
../../include/stdio.h:460:23: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
return (*_p->_p++ = _c);
^~
===> Linking ./syslaunch
ld -e_start -N -L../../lib -L/usr/lib/gcc/x86_64-linux-gnu/6 -nostdlib -melf_x86_64 -Ttext=01000000 crt0-amd64.o syslaunch.o CacheLineSize.o -ll4 -lio -llinux -lgcc -o syslaunch
ld: CacheLineSize.o: in function `CacheLineSize':
/home/tyson/Orion/user/apps/system/CacheLineSize.c:47: undefined reference to `fclose'
ld: ../../lib/liblinux.a(fscanf.o): in function `fscanf':
/home/tyson/Orion/user/lib/linux/fscanf.c:41: undefined reference to `vfscanf'
ld: ../../lib/liblinux.a(fopen.o): in function `fopen':
/home/tyson/Orion/user/lib/linux/fopen.c:62: undefined reference to `__sfp'
ld: /home/tyson/Orion/user/lib/linux/fopen.c:64: undefined reference to `_open'
ld: /home/tyson/Orion/user/lib/linux/fopen.c:77: undefined reference to `_close'
ld: /home/tyson/Orion/user/lib/linux/fopen.c:78: undefined reference to `__error'
ld: ../../lib/liblinux.a(flags.o): in function `__sflags':
/home/tyson/Orion/user/lib/linux/flags.c:113: undefined reference to `__error'
make: *** [../../Mk/l4.prog.mk:54: syslaunch] Error 1
For what it's worth, https://opensource.apple.com/source/Libc/Libc-825.26/include/stdint.h.auto.html, https://github.com/freebsd/freebsd/search?q=it_interval&unscoped_q=it_interval, https://android.googlesource.com/platform/bionic/+/ics-mr0/libc/stdio, and https://android.googlesource.com/platform/bionic/+/master/libc/include/stdint.h are useful resources, for working on this...
Although we're a long way off having a buildable, usable system, it could be useful for us to implement compatibility with the Linux ABI (similar to FreeBSD/NetBSD, LynxOS, and Windows Subsystem for Linux), so that we can run PowerPC, and x86 Linux binaries, like the old kernel toolchain, to avoid having to maintain public VMs of ancient Linux versions, just so that we can rebuild our own kernel, and userland.
In the liblinux branch, I started reverse-engineering the system calls made by a few dynamically-linked binaries (git, ls, and gcc), to see what kind of functionality we'd need to provide, and dropped in a stub version of sys/vfs.h, with a shell for statfs().
Since we need to implement a VFS layer, anyway, it would make sense to have some level of UNIX/Linux/POSIX compatibility, for this project.