|
|
1.1 ! root 1: #include <sys/ioctl.h> ! 2: ! 3: main() ! 4: { ! 5: register fd = dkctlchan(2); ! 6: register r; ! 7: ! 8: if (fd < 0) { ! 9: printf("Can't open ctlchan to kmc\n"); ! 10: exit(1); ! 11: } ! 12: r = ioctl(fd, KIOCSHUT, (char *)0); ! 13: if (r < 0) ! 14: printf("Couldn't shut down kdi\n"); ! 15: return(0); ! 16: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.