pipe

pipe(建立管道)(无名管道,有名管道为fifo)
相关函数:mkfifo, popen, read,write fork
表头文件:#include <unistd.h>
定义函数:int pipe(int filedes[2]);
函数说明:pipe ( )会建立管道,并将文件描述词由参数filedes数组返回。filedes[0]
为管道里的读取端,filedes[1]则为管道的写入端。
返回值:
若成功则返回零,否则返回一1,错误原因存于errno中。

原文地址:https://www.cnblogs.com/coding4/p/5604875.html