Include malloc.h instead of stdlib.h for mallinfo()

Adapt to the change in the main repo.

mallinfo is meant to be API compatible with Linux,
where it's provided by malloc.h.

(I think the API actually originated with System V. I don't
remember how it was there though. Anyway, I guess the
compatibility with Linux is more important than System V
these days.)
This commit is contained in:
YAMAMOTO Takashi 2020-06-15 15:02:49 +09:00 committed by patacongo
parent 6fd57ba071
commit faba0249c1
29 changed files with 29 additions and 2 deletions

View File

@ -42,6 +42,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>

View File

@ -30,6 +30,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <unistd.h>
#include <string.h>
#include <pthread.h>

View File

@ -30,6 +30,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>

View File

@ -27,6 +27,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>

View File

@ -42,6 +42,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <malloc.h>
#include <stdio.h>
#include <debug.h>
#include <fcntl.h>

View File

@ -27,6 +27,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cstdlib>
#include <malloc.h>
#include <unistd.h>
#include <debug.h>

View File

@ -28,6 +28,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <malloc.h>
#include <unistd.h>
#include <debug.h>

View File

@ -28,6 +28,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <malloc.h>
#include <unistd.h>
#include <debug.h>

View File

@ -28,6 +28,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <malloc.h>
#include <unistd.h>
#include <debug.h>

View File

@ -28,6 +28,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <malloc.h>
#include <unistd.h>
#include <debug.h>

View File

@ -27,6 +27,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cstdlib>
#include <malloc.h>
#include <unistd.h>
#include <debug.h>

View File

@ -27,6 +27,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cstdlib>
#include <malloc.h>
#include <unistd.h>
#include <debug.h>

View File

@ -28,6 +28,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <malloc.h>
#include <unistd.h>
#include <debug.h>

View File

@ -28,6 +28,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <malloc.h>
#include <unistd.h>
#include <debug.h>

View File

@ -28,6 +28,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <malloc.h>
#include <unistd.h>
#include <debug.h>

View File

@ -28,6 +28,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <malloc.h>
#include <unistd.h>
#include <debug.h>

View File

@ -28,6 +28,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <malloc.h>
#include <unistd.h>
#include <debug.h>

View File

@ -28,6 +28,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <malloc.h>
#include <unistd.h>
#include <debug.h>

View File

@ -28,6 +28,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <malloc.h>
#include <unistd.h>
#include <debug.h>

View File

@ -26,6 +26,7 @@
#include <sys/types.h>
#include <stdlib.h>
#include <malloc.h>
#include <debug.h>
#include <errno.h>

View File

@ -41,7 +41,7 @@
****************************************************************************/
#include <nuttx/config.h>
#include <stdlib.h>
#include <malloc.h>
/****************************************************************************
* Pre-Processor Definitions

View File

@ -29,6 +29,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>

View File

@ -41,7 +41,7 @@
****************************************************************************/
#include <nuttx/config.h>
#include <stdlib.h>
#include <malloc.h>
/****************************************************************************
* Pre-Processor Definitions

View File

@ -30,6 +30,7 @@
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <malloc.h>
#include <unistd.h>
#include <debug.h>

View File

@ -31,6 +31,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>

View File

@ -39,6 +39,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
/****************************************************************************

View File

@ -29,6 +29,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>

View File

@ -28,6 +28,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <unistd.h>
#include <signal.h>
#include <string.h>

View File

@ -29,6 +29,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>