#include #include #include #include #include #include #include #include #define HELLOCTL "/dev/helloctl" int main(int argc, char ** argv) { int fd = -1; int ret; int i; fd = open(HELLOCTL, O_RDONLY); if (fd < 0) { fprintf(stderr, "Could not open %s\n", HELLOCTL); _exit(1); } for (i=1; i