SCCS-vsn: usr.bin/ex/ex_put.c 7.12
SCCS-vsn: usr.bin/ex/ex_tty.c 7.13
SCCS-vsn: usr.bin/ex/ex3.7recover/ex3.7recover.c 7.11
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char *sccsid = "@(#)ex3.7recover.c 7.10 (Berkeley) %G%";
+static char *sccsid = "@(#)ex3.7recover.c 7.11 (Berkeley) %G%";
#endif not lint
#include <stdio.h> /* mjm: BUFSIZ: stdio = 512, VMUNIX = 1024 */
#endif not lint
#include <stdio.h> /* mjm: BUFSIZ: stdio = 512, VMUNIX = 1024 */
{
fprintf(stderr, str, inf);
{
fprintf(stderr, str, inf);
-#ifndef USG3TTY
- gtty(2, &tty);
+ (void)ioctl(2, TIOCGETP, &tty);
if ((tty.sg_flags & RAW) == 0)
if ((tty.sg_flags & RAW) == 0)
-#else
- ioctl(2, TCGETA, &tty);
- if (tty.c_lflag & ICANON)
-#endif
fprintf(stderr, "\n");
exit(1);
}
fprintf(stderr, "\n");
exit(1);
}
-static char *sccsid = "@(#)ex_put.c 7.11 (Berkeley) %G%";
+static char *sccsid = "@(#)ex_put.c 7.12 (Berkeley) %G%";
#endif not lint
#include "ex.h"
#endif not lint
#include "ex.h"
+ ignore(ioctl(i, TIOCGETP, &tty));
# ifdef TIOCGETC
ioctl(i, TIOCGETC, (char *) &ottyc);
nttyc = ottyc;
# ifdef TIOCGETC
ioctl(i, TIOCGETC, (char *) &ottyc);
nttyc = ottyc;
-static char *sccsid = "@(#)ex_tty.c 7.12 (Berkeley) %G%";
+static char *sccsid = "@(#)ex_tty.c 7.13 (Berkeley) %G%";
#endif not lint
#include "ex.h"
#endif not lint
#include "ex.h"
+ if (ioctl(1, TIOCGETP, &tty) < 0)
return;
if (ospeed != tty.sg_ospeed)
value(SLOWOPEN) = tty.sg_ospeed < B1200;
return;
if (ospeed != tty.sg_ospeed)
value(SLOWOPEN) = tty.sg_ospeed < B1200;