Initial edits...
This commit is contained in:
commit
5c3d6461a1
3 changed files with 101 additions and 0 deletions
29
metawatch.c
Normal file
29
metawatch.c
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue