+ putchar('\n');
+ exit (0);
+usage:
+ printf("Usage: lock [-timeout]\n");
+ exit (1);
+}
+
+/*
+ * get out of here
+ */
+
+quit()
+{
+ ioctl(0, TIOCSETN, &tty);
+ exit (0);
+}
+
+bye()
+{
+ ioctl(0, TIOCSETN, &tty);
+ printf("lock: timeout\n");
+ exit (1);
+}
+
+/*
+ * tell the user we are waiting
+ */
+
+hi()
+{
+ long curtime;
+ struct timeval timval;
+ struct timezone timzone;
+
+ gettimeofday(&timval, &timzone);
+ curtime = timval.tv_sec;
+ printf("lock: type in the unlock key. timeout in %d minutes\n",
+ (nexttime-curtime)/60);