Sfoglia il codice sorgente

Complete the syscall 'sys_pipe()'.

quanzhao 5 anni fa
parent
commit
b2db833697
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  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])
 int sys_pipe(int fd[2])
 {
 {
-    /* not implemented */
-    return -1;
+    return pipe(fd);
 }
 }
 
 
 int sys_clock_settime(clockid_t clk, const struct timespec *ts)
 int sys_clock_settime(clockid_t clk, const struct timespec *ts)