RixinHuang
全部博文(11)
IPC(3)
process(0)
2011年(1)
2010年(5)
2009年(5)
格伯纳
talent87
zhang815
king_of_
分类: LINUX
2010-01-06 22:47:22
/* fifo01.c */ #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> int main (int argc, char *argv[]) { mode_t mode = 0666; if (argc != 2){ puts("input format: fifo01 "); exit(1); } /* delete file: argv[1]*/ unlink(argv[1]); /* creat fifo, name: argv[1] */ if ((mkfifo(argv[1], mode)) < 0){ perror("mkfifo error"); exit(1); } exit(0); }
上一篇:Thinkpad SL410 安装ubuntu 9.10
下一篇:ubuntu 9.10 simcom300dz ppp 拨号
登录 注册