static char *sccsid
= "@(#)lock.c 4.1 (Berkeley) 10/1/80";
* Lock a terminal up until the knowledgeable Joe returns.
char masterp
[] = "hasta la vista\n";
char s
[BUFSIZ
], s1
[BUFSIZ
];
for (t
= 1; t
<= 16; t
++)
ntty
= tty
; ntty
.sg_flags
&= ~ECHO
;
fgets(s
, sizeof s
, stdin
);
fgets(s1
, sizeof s1
, stdin
);
fgets(s
, sizeof s
, stdin
);
if (strcmp(s
, masterp
) == 0)