summaryrefslogtreecommitdiffstats
path: root/usr.bin/lock/lock.c
Commit message (Collapse)AuthorAgeFilesLines
* Make this work without COMPAT_43 by using tcgetattr()/tcsetattr() insteadtjr2003-02-101-10/+10
| | | | of ioctl TIOCGETP/TIOCSETP.
* ANSIify function definitions.dwmalone2002-09-041-4/+2
| | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
* Add a -v option that prevents switching virtual terminals while thisdd2002-07-281-10/+36
| | | | | terminal is locked. This permits the user to easily lock the entire console from a single terminal.
* Correct a comment: Typing in the root password at the "Key:" promptdd2002-07-101-2/+2
| | | | doesn't (and shouldn't) work.
* Fix indentation: Don't use space where tabs will do; specifically,dd2002-07-101-30/+30
| | | | | | | | don't use spaces at the beginning of a line where tabs are normally used (the worst thing was that half of this file was right (tabs) and half was wrong (spaces), making for painful reading). Reviewed by: /sbin/md5, diff -b
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* remove __Pimp2002-03-221-2/+4
|
* Warns cleanups:dwmalone2001-12-031-8/+7
| | | | | Signal handlers are supposed to take an int as an arg. Don't locally declare crypt or ttyname.
* Fix a style bug that I introduced (both sys/param.h and sys/types.hnectar1999-10-121-1/+0
| | | | | | included). Caught by: sheldonh@freebsd.org
* log root unlock attemptsnectar1999-10-121-1/+15
| | | | PR: bin/13932
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Don't assume that time_t is long.bde1998-06-291-2/+4
|
* Use err(3). Add usage().charnier1997-07-211-28/+31
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Closes PR bin/1567roberto1996-09-141-9/+29
| | | | | | | | | | | | | | | /usr/bin/lock can be used to lock a terminal much like xlock does for your X-windows session. Problem is, /usr/bin/lock cannot lock your terminal indefinately. Rather you must specify a timeout value, after which, your terminal is unlocked and become unsecured. I have added a ``-n'' no timeout option to /usr/bin/lock Currently the only way to get this functionality is to use a huge timeout value and hope it is long enought (in time). This method also requires you to know the maxium number of minutes you are allowed to specify. Submitted by: David E. O'Brien <obrien@Nuxi.cs.ucdavis.edu>
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+223
OpenPOWER on IntegriCloud