Преглед изворни кода

Complete the syscall 'sys_pipe()'.

quanzhao пре 5 година
родитељ
комит
b2db833697
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      components/lwp/lwp_syscall.c

+ 1 - 2
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)