Commit Graph

38 Commits

Author SHA1 Message Date
enami 3c12da56ad Initialize the global variable `shuttime' with current time when
user requested to shutdown now, so that correct time is written in
/etc/nologin.
1998-10-09 03:01:40 +00:00
enami 2691695883 Add -p option in usage. 1998-10-09 02:26:17 +00:00
enami 138ef65e24 Sort options in SYNOPSIS alphabetically. 1998-10-09 02:24:08 +00:00
ross 029a64cc29 from Erik Bertelsen <erik@mediator.uni-c.dk>
{ put } { in } { lots } { of } { these } { to } { shut } { up } { egcs }
1998-08-25 19:18:12 +00:00
mycroft 09ef8c4ccd const poisoning. 1998-07-26 20:18:32 +00:00
mrg c028709e08 KNF. ensure hostname is nul-terminated 1998-07-05 08:34:25 +00:00
thorpej ff77be620b Add a -p option, to power down the system at the specified time. 1998-06-06 21:18:54 +00:00
fair 3d7afc6d03 fix bad .Xr references 1998-04-29 09:49:10 +00:00
kleink ed110b2e5e Need <time.h> for ctime(), time(), localtime() and mktime() prototypes. 1998-04-01 15:17:31 +00:00
fair 32a679e7b7 add -D (no detach) option, per PR#4810 1998-03-23 05:00:15 +00:00
mycroft 9a257260cf Oops; remove DEBUG. 1998-01-21 00:33:56 +00:00
mycroft fff43038f7 Slight code rearrangement. 1998-01-21 00:32:53 +00:00
mycroft 6e07276e0f Document previous changes. 1998-01-20 23:24:46 +00:00
mycroft fea6f55d8d Recognize `-' only if it is the only argument after the time. 1998-01-20 23:13:31 +00:00
mycroft d311785b75 Allow `-dh'. Rearrange a bit. 1998-01-20 23:05:15 +00:00
mycroft 5ecc83ac42 Use err*(3) and warn*(3). Fix reading of the message from stdin. 1998-01-20 22:30:15 +00:00
mycroft 2db779a0ce Allow a century to be specified.
Don't validate the mmddhhmm values; mktime(3) does it.
1998-01-20 22:14:09 +00:00
perry 87ea5a1ff3 make Y2K compliant and document as such. 1998-01-20 20:55:22 +00:00
mycroft af65e81265 Make these executables world-readable. 1997-10-11 11:05:28 +00:00
enami ae3fbb603f Don't delcare optind. 1997-10-01 02:24:29 +00:00
lukem 704a9823f1 resolve conflicts from lite-2 merge 1997-09-16 12:54:42 +00:00
lukem 38db486f8e * cleanup for WARNS=1
* deprecate register
* fix .Nm usage
1997-09-15 11:17:10 +00:00
mikel 0b09e047ba cleanup for gcc -Wall 1997-07-10 05:08:06 +00:00
jtk 67085194b6 add -d option to shutdown, as companion to reboot's -d flag (force crash dump) 1997-07-09 02:39:37 +00:00
mikel 7f50ef911a eliminate possibility that execle() will be called with one too many
arguments.
1997-01-23 05:48:06 +00:00
thorpej 8e41017b18 After passing the terminating NULL for the argv list to execle(),
don't forget the (NULL) envp.
From Lennart Augustsson <augustss@cs.chalmers.se>, PR #2737.
1996-12-11 04:05:21 +00:00
cgd 0114e805ce convert to new RCS Id conventions; reduce my headache 1995-03-18 14:54:19 +00:00
cgd 06e2955ff1 specify man pages the new way. 1994-12-22 10:44:04 +00:00
mycroft ea7b5d4ec6 Eliminate uses of some obsolete functions. 1994-09-23 14:26:58 +00:00
mycroft b0ed579ed2 Merge with 4.4-Lite version. 1994-09-17 00:10:08 +00:00
mycroft 08f161b7f9 Don't remove /etc/nologin if `-k' was used. 1994-09-17 00:02:23 +00:00
cgd 644f391c80 when warning, actually warn about the correct thing! 1994-02-16 02:56:04 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft dfb9caab49 Add RCS indentifiers. 1993-08-01 07:32:48 +00:00
mycroft 5b11c06adf Add RCS indentifiers. 1993-07-31 15:27:53 +00:00
cgd 06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd 346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00