source: experiments/5_1_wait/mon.c @ 16

Revision 16, 550 bytes checked in by mmatloka, 14 years ago (diff)

add experiments

Line 
1#include <stdio.h>
2#include <stdlib.h>
3
4#include <llapi.h>
5#include <unistd.h>
6#include <fcntl.h>
7#include <time.h>
8#include <string.h>
9#include <errno.h>
10#include <sys/types.h>
11#include <time.h>
12
13#include <sys/types.h>
14#include <sys/ipc.h>
15#include <sys/msg.h>
16
17#define CHAR_BUFFER 256
18#define FILE_LENGTH 256
19
20int main(int argc, char *argv[])
21{
22        FILE * fd;
23        mkfifo(argv[2],0600);
24        fd=fopen(argv[2],"w");
25        fprintf(fd,"%s\n",argv[1]);
26        fprintf(fd,"%s\n",argv[3]);
27        fprintf(fd,"%s\n",argv[4]);
28        fclose(fd);
29        return 0;
30}
Note: See TracBrowser for help on using the repository browser.