]> git.kernelconcepts.de Git - metawatch.git/blob - metawatch.c
Initial edits...
[metawatch.git] / metawatch.c
1 /*
2  * (c) 2011 Siegen, Germany by Nils Faerber
3  *
4  * license GPL
5  */
6 #include <stdio.h>
7 #include <sys/types.h>
8 #include <sys/stat.h>
9 #include <fcntl.h>
10
11 #include "metawatch_protocol.h"
12
13 int main(int argc, char **argv)
14 {
15   int mwfd;
16
17   if (argc != 2) {
18     fprintf(stderr, "Usage:\n\t%s <devicename>\n", argv[0]);
19     return 1;
20   };
21   
22   mwfd = open(argv[1], O_RDWR);
23   if (mwfd < 0) {
24     perror("open");
25     return 1;
26   };
27
28   return 0;
29 };