30 lines
440 B
C
30 lines
440 B
C
![]() |
/*
|
||
|
* (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;
|
||
|
};
|