- switch (c) {
- case 'r': /* run program before accepting commands */
- runfirst = true;
- coredump = false;
- break;
-
- case 'i':
- interactive = true;
- break;
-
- case 'b':
- tracebpts = true;
- break;
-
- case 'e':
- traceexec = true;
- break;
-
- case 's':
- tracesyms = true;
- break;
-
- case 'l':
-# ifdef LEXDEBUG
- lexdebug = true;
-# else
- fatal("\"-l\" only applicable when compiled with LEXDEBUG");
-# endif
- break;
+# ifdef IRIS
+ ioctl(fileno(f), TCGETA, t);
+# else
+ ioctl(fileno(f), TIOCGETP, &(t->sg));
+ ioctl(fileno(f), TIOCGETC, &(t->tc));
+ ioctl(fileno(f), TIOCGLTC, &(t->ltc));
+ ioctl(fileno(f), TIOCGETD, &(t->ldisc));
+ ioctl(fileno(f), TIOCLGET, &(t->local));
+ t->fcflags = fcntl(fileno(f), F_GETFL, 0);
+ if ((t->fcflags&FASYNC) != 0) {
+ /* fprintf(stderr, "[async i/o found set -- reset]\n"); */
+ t->fcflags &= ~FASYNC;
+ }
+# endif
+}