|
|
1.1 ! root 1: #include <stdio.h> ! 2: #include <sgtty.h> ! 3: #include <signal.h> ! 4: ! 5: extern int udp_ld; ! 6: ! 7: main(argc, argv) ! 8: char *argv[]; ! 9: { ! 10: int fd; ! 11: ! 12: if(argc < 2){ ! 13: fprintf(stderr, "Usage: %s device\n", argv[0]); ! 14: exit(1); ! 15: } ! 16: signal(SIGHUP, SIG_IGN); ! 17: fd = open(argv[1], 2); ! 18: if(fd < 0){ ! 19: perror(argv[1]); ! 20: exit(1); ! 21: } ! 22: if(ioctl(fd, FIOPUSHLD, &udp_ld) < 0){ ! 23: perror("PUSHLD udp"); ! 24: exit(1); ! 25: } ! 26: pause(); ! 27: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.