Initial edits...

This commit is contained in:
Nils Faerber 2011-07-18 22:33:40 +02:00
commit 5c3d6461a1
3 changed files with 101 additions and 0 deletions

29
metawatch.c Normal file
View file

@ -0,0 +1,29 @@
/*
* (c) 2011 Siegen, Germany by Nils Faerber
*
* license GPL
*/
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "metawatch_protocol.h"
int main(int argc, char **argv)
{
int mwfd;
if (argc != 2) {
fprintf(stderr, "Usage:\n\t%s <devicename>\n", argv[0]);
return 1;
};
mwfd = open(argv[1], O_RDWR);
if (mwfd < 0) {
perror("open");
return 1;
};
return 0;
};