16.pipe函数创建匿名管道

  int pipe(int fd[2]);
   fd--传出参数
   fd[0]--读端

   fd[1]--写端

用法:

  int fd[2];

  pipe(fd);

猜你喜欢

转载自blog.csdn.net/disappear_xuechao/article/details/80889887