summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/termcap.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-26 08:41:52 +0000
committerjkh <jkh@FreeBSD.org>1995-05-26 08:41:52 +0000
commitc9272a6f475ce6bc60d5f6a7c05cf373716bd373 (patch)
tree9b1782f6ca1efa625c82d9c92b053a09b3536c85 /usr.sbin/sysinstall/termcap.c
parent3eb2d33debccf5429df8cf9c51a4174a777fb9e2 (diff)
downloadFreeBSD-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/sysinstall/termcap.c')
-rw-r--r--usr.sbin/sysinstall/termcap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/termcap.c b/usr.sbin/sysinstall/termcap.c
index 99cde148..ea8a38a 100644
--- a/usr.sbin/sysinstall/termcap.c
+++ b/usr.sbin/sysinstall/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;
}
OpenPOWER on IntegriCloud