/* linuxinfo, written by M. Lang, University of Mainz, 12/1996 Linuxinfo shows several nice stuff about the running Linux-system on the PS/2 95 series LED-display. This means that you need at least an IBM PS/2 95 with this special LED-display, the Kernel-patch for MCA and it all together running. Compile this code with gcc -O display.c -o display Because it accesses ports, this program must be run as root. This means either root must run it, or it must be owned by root with the suid bit set (chown root.root display ; chmod 4755 display) The program doesn't check for root permission, so you'll get a Seg. fault if it is not root. */ #include #include #include #include #include #include char regs[9]; void hauweg(int); int show_string(char *text) { int i,j; j=strlen(text); /* set maximum textlength */ if (j>7) j=7; for (i=0; iHosted by www.Geocities.ws