summaryrefslogtreecommitdiff
path: root/components/libc/compilers/picolibc/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/libc/compilers/picolibc/syscall.c')
-rw-r--r--components/libc/compilers/picolibc/syscall.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/components/libc/compilers/picolibc/syscall.c b/components/libc/compilers/picolibc/syscall.c
new file mode 100644
index 0000000000..882964a1f3
--- /dev/null
+++ b/components/libc/compilers/picolibc/syscall.c
@@ -0,0 +1,16 @@
+/*
+ * Copyright (c) 2006-2023, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2023-05-17 Flybreak the first version
+ */
+
+#include <rtthread.h>
+
+int pico_get_errno(void)
+{
+ return rt_get_errno();
+}