From 723c8b552ef0a7b12a772d4ba070bd5f4e1c3b7d Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 26 Nov 2004 17:56:02 +0000 Subject: preparing for packaging --- oops_test.c | 52 ---------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 oops_test.c (limited to 'oops_test.c') diff --git a/oops_test.c b/oops_test.c deleted file mode 100644 index f710d4cd..00000000 --- a/oops_test.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * This is a small test program for generating a kernel protection fault - * using the oops loadable module. - * - * Fri Apr 26 12:52:43 CDT 1996: Dr. Wettstein - * Initial version. - */ - - -/* Includes. */ -#include -#include -#include -#include - - -/* Function prototypes. */ -extern int main(int, char **); - - -extern int main(argc, argv) - - int argc; - - char *argv[]; - -{ - auto int fd; - - if ( argc != 2 ) - { - fprintf(stderr, "No oops device specified.\n"); - return(1); - } - - if ( (fd = open(argv[1], O_RDONLY)) < 0 ) - { - fprintf(stderr, "Cannot open device: %s.\n", argv[1]); - return(1); - } - - if ( ioctl(fd, 1, 0) < 0 ) - { - fprintf(stderr, "Failed on oops.\n"); - return(1); - } - - printf("OOoops\n"); - - close(fd); - return(0); -} -- cgit v1.2.3