From b2db833697026d982bc81099bc4c026c38c88ad9 Mon Sep 17 00:00:00 2001 From: quanzhao Date: Wed, 6 Jan 2021 11:09:03 +0800 Subject: [PATCH] Complete the syscall 'sys_pipe()'. --- components/lwp/lwp_syscall.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/lwp/lwp_syscall.c b/components/lwp/lwp_syscall.c index 6ef0f66710..962525e871 100644 --- a/components/lwp/lwp_syscall.c +++ b/components/lwp/lwp_syscall.c @@ -2252,8 +2252,7 @@ int sys_access(const char *filename, int mode) int sys_pipe(int fd[2]) { - /* not implemented */ - return -1; + return pipe(fd); } int sys_clock_settime(clockid_t clk, const struct timespec *ts) -- Gitee