有名管道
摘要:
写程序#include<stdio.h>#include<stdlib.h>#include<string.h>#include<unistd.h>#include<sys/types.h>#include<sys/stat.h>#include<fcntl.h>int main(){int f;int fd;//char buff[10];f = mkfifo("myfifo",06666);//创建有名管道char buf[] = "abcd";fd = open(& 阅读全文
posted @ 2012-04-07 22:57 小风儿_xf 阅读(469) 评论(0) 推荐(0) 编辑