|
|
1.1 ! root 1: #include "/usr/jerq/include/jioctl.h" ! 2: #include <sys/ttyio.h> ! 3: #include <sys/filio.h> ! 4: ! 5: extern int tty_ld; ! 6: ! 7: jterm() ! 8: { ! 9: struct tchars tc; ! 10: struct sgttyb sg; ! 11: if (ioctl(0, FIOLOOKLD, (char *)0) == tty_ld) { ! 12: ioctl(0, TIOCGETC, &tc); ! 13: ioctl(0, TIOCGETP, &sg); ! 14: ioctl(0, FIOPOPLD, (char *)0); ! 15: ioctl(0, TIOCSETC, &tc); ! 16: ioctl(0, TIOCSETP, &sg); ! 17: } ! 18: ioctl(0, JTERM, (char *)0); ! 19: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.