Linux C函数库参考手册之管道相关函数

mkfifo(建立具名管道)

#include <sys/types.h>
#include <sys/stat.h>
int mkfifo(const char *pathname, mode_t mode);

pclose(关闭管道I/O)

#include <stdio.h>
int pclose(FILE *stream);

pipe(建立管道)

#include <unistd.h>
int pipe(int pipefd[2]);

popen(建立管道I/O)

#include <stdio.h>
FILE *popen(const char *command, const char *type);

Leave a Reply

Your email address will not be published. Required fields are marked *