diff options
author | jkh <jkh@FreeBSD.org> | 1995-05-26 08:41:52 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-05-26 08:41:52 +0000 |
commit | c9272a6f475ce6bc60d5f6a7c05cf373716bd373 (patch) | |
tree | 9b1782f6ca1efa625c82d9c92b053a09b3536c85 /usr.sbin/sade/termcap.c | |
parent | 3eb2d33debccf5429df8cf9c51a4174a777fb9e2 (diff) | |
download | FreeBSD-src-c9272a6f475ce6bc60d5f6a7c05cf373716bd373.zip FreeBSD-src-c9272a6f475ce6bc60d5f6a7c05cf373716bd373.tar.gz |
Totally revamp the TCP/IP dialog; now network selection makes a bit more sense.
Root floppy (which actually may be able to go completely away at some point
soon!) is now loadable from ftp/nfs/dos as well as CDROM and (of course)
floppy.
Fix more problems on Poul's Gripe List.
Diffstat (limited to 'usr.sbin/sade/termcap.c')
-rw-r--r-- | usr.sbin/sade/termcap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/sade/termcap.c b/usr.sbin/sade/termcap.c index 99cde148..ea8a38a 100644 --- a/usr.sbin/sade/termcap.c +++ b/usr.sbin/sade/termcap.c @@ -17,6 +17,7 @@ #include <unistd.h> #include <stdarg.h> #include <fcntl.h> +#include <sys/errno.h> #include <sys/ioctl.h> #include <machine/console.h> @@ -64,8 +65,11 @@ set_termcap(void) } } if (DebugFD == -1) { + int i; + DebugFD = open("/dev/ttyv1", O_WRONLY); - ioctl(DebugFD, TIOCCONS, (char *)NULL); + i = ioctl(DebugFD, TIOCCONS, (char *)NULL); + msgDebug("ioctl(%d, TIOCCONS, NULL) = %d (%s)", DebugFD, i, !i ? "success" : strerror(errno)); } OnVTY = TRUE; } |