|
|
@ -8,9 +8,11 @@
|
|
|
|
#include <string.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#ifdef __linux__
|
|
|
|
#include <linux/kd.h>
|
|
|
|
#include <linux/kd.h>
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
static void
|
|
|
|
usage(const char* argv){
|
|
|
|
usage(const char* argv){
|
|
|
|
fprintf(stderr, "usage: %s [ ttydev ]\n", argv);
|
|
|
|
fprintf(stderr, "usage: %s [ ttydev ]\n", argv);
|
|
|
@ -211,3 +213,9 @@ int main(int argc, char** argv){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return r ? EXIT_FAILURE : EXIT_SUCCESS;
|
|
|
|
return r ? EXIT_FAILURE : EXIT_SUCCESS;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
int main(void){
|
|
|
|
|
|
|
|
fprintf(stderr, "This is a Linux-only program\n");
|
|
|
|
|
|
|
|
return EXIT_FAILURE;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|