handle multi-part files
[tridge/junkcode.git] / fifo1.c
1 #include <stdio.h>
2 #include <sys/fcntl.h>
3
4 main()
5 {
6   char buf[100];
7   int fd;
8   
9   mkfifo("ttyc",0777);
10   fd = open("ttyc",O_RDWR);
11
12   read(fd,buf,8);
13   printf("got [%s]\n",buf);
14
15   write(fd,"world!\n",7);
16   printf("done\n");
17 }
18