|
@@ -85,6 +85,7 @@ void __libc_init_array(void)
|
|
|
#ifdef RT_USING_LIBC
|
|
|
#include <reent.h>
|
|
|
#include <stdio.h>
|
|
|
+#include "libc.h"
|
|
|
#ifdef RT_USING_DFS
|
|
|
#include <dfs_posix.h>
|
|
|
#endif
|
|
@@ -92,10 +93,6 @@ void __libc_init_array(void)
|
|
|
#include <dlmodule.h>
|
|
|
#endif
|
|
|
|
|
|
-#define DBG_TAG "newlib.syscalls"
|
|
|
-#define DBG_LVL DBG_INFO
|
|
|
-#include <rtdbg.h>
|
|
|
-
|
|
|
/* Reentrant versions of system calls. */
|
|
|
|
|
|
#ifndef _REENT_ONLY
|
|
@@ -311,12 +308,6 @@ _ssize_t _write_r(struct _reent *ptr, int fd, const void *buf, size_t nbytes)
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
-void _system(const char *s)
|
|
|
-{
|
|
|
- extern int __rt_libc_system(const char *string);
|
|
|
- __rt_libc_system(s);
|
|
|
-}
|
|
|
-
|
|
|
/* for exit() and abort() */
|
|
|
__attribute__ ((noreturn)) void _exit (int status)
|
|
|
{
|