summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-04-09 09:38:09 +0000
committerbernard.xiong <[email protected]>2010-04-09 09:38:09 +0000
commit01149ddd0e951b44574adc731c6bb7380b0b89ab (patch)
tree4e386a50a4fb394609a8fc1c6d728afda734f650 /components/libc
parentc4163480201f3e947c679871ff50b10f922ea83d (diff)
add newlib directory
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@594 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/newlib/syscalls.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/libc/newlib/syscalls.c b/components/libc/newlib/syscalls.c
new file mode 100644
index 0000000000..7768612da2
--- /dev/null
+++ b/components/libc/newlib/syscalls.c
@@ -0,0 +1,8 @@
+#include <reent.h>
+
+int _fork_r (struct _reent *ptr)
+{
+ /* return "not supported" */
+ ptr->errno = ENOTSUP;
+ return -1;
+}