#
272461 |
|
02-Oct-2014 |
gjb |
Copy stable/10@r272459 to releng/10.1 as part of the 10.1-RELEASE process.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
238968 |
|
01-Aug-2012 |
des |
Restore a piece of BSD history.
PR: 169127 Submitted by: Ruben de Groot <ruben@hacktor.com> MFC after: 1 week
|
#
235855 |
|
23-May-2012 |
jilles |
shutdown: Remove unnecessary 2-second delay.
|
#
229403 |
|
03-Jan-2012 |
ed |
Replace index() and rindex() calls with strchr() and strrchr().
The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard.
This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
|
#
227081 |
|
04-Nov-2011 |
ed |
Add missing static keywords for global variables to tools in sbin/.
These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file.
|
#
216823 |
|
30-Dec-2010 |
pjd |
For compatibility with Linux and Solaris add poweroff(8).
It is implemented as a hard link to shutdown(8) and it is equivalent of:
# shutdown -p now
While I'm here put one line of usage into one line of C code so it is easier to grep(1) and separate unrelated code with empty line.
MFC after: 2 weeks
|
#
201180 |
|
29-Dec-2009 |
ed |
Add missing `void' for functions without arguments.
While there, rename die_you_gravy_sucking_pig_dog() to something that's less moronic.
|
#
197560 |
|
28-Sep-2009 |
delphij |
Static'ify internal methods and use prototype.
|
#
140797 |
|
25-Jan-2005 |
delphij |
Use new style declarations instead of K&R ones.
|
#
140796 |
|
25-Jan-2005 |
delphij |
Use modern style defination for main() and move a extern declaration to global section.
Bump WARNS?= to 6
|
#
128073 |
|
09-Apr-2004 |
markm |
Remove advertising clause from University of California Regent's license, per letter dated July 22, 1999.
Approved by: core, imp
|
#
114763 |
|
05-May-2003 |
obrien |
Centralize _PATH_* definitions.
Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me)
|
#
114589 |
|
03-May-2003 |
obrien |
Use __FBSDID() to quiet GCC 3.3 warnings.
|
#
92883 |
|
21-Mar-2002 |
imp |
o remove __P o remove main prototype
|
#
79749 |
|
15-Jul-2001 |
dd |
Constify, de-register-ify, __unused-ify, and set WARNS=2.
Submitted by: Mike Barcroft <mike@q9media.com>
|
#
50476 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
48956 |
|
21-Jul-1999 |
billf |
Avoid ambigious if/else
|
#
48078 |
|
21-Jun-1999 |
ru |
Signal init(8) instead of executing halt(8) or reboot(8) when halting or rebooting the system. It benefits from running /etc/rc.shutdown by init(8).
``-o'' flag is provided for backward compatibility.
PR: 5451 Discussed with: des
|
#
48062 |
|
21-Jun-1999 |
jkoshy |
Minor cleanups to shutdown(8):
- Make the -k "don't actually halt" flag incompatible with the halt/reboot options -h, -p, and -r. - The -n "don't sync" option is ignored if -k is specified. Issue a warning message. - Compute the actual shutdown time written to /var/run/nologin correctly in the case of "now" being specified.
|
#
48004 |
|
18-Jun-1999 |
ru |
Fix a coredump with negative (due to overflow) offset values.
|
#
41684 |
|
11-Dec-1998 |
bde |
Merged from Lite2 (one bcopy -> memmove, one significant change: don't unlink _PATH_NOLOGIN for the -k case even if shutdown terminates abnormally. NetBSD already has this change).
|
#
41683 |
|
11-Dec-1998 |
bde |
Fixed missing 'p' and `-' flags and other defects in the usage message.
Fixed some style bugs.
|
#
41666 |
|
10-Dec-1998 |
msmith |
Add a '-p' flag to shutdown which corresponds to the '-p' flag to halt, requesting a system power-off after shutdown.
|
#
38036 |
|
03-Aug-1998 |
charnier |
Correct use of .Nm. Add rcsid. Do not dot terminate err(3) strings. Spelling.
|
#
32399 |
|
10-Jan-1998 |
alex |
Pass an actual empty environment to execle() as per POSIX rather than rely on undocumented behavior.
The following fixes were obtained from OpenBSD:
o -Wall fixes to tlist array initialization and assignment used as truth value. o Use a restricted environment. o Improved error message when shutdown fails to exec reboot or halt.
|
#
32344 |
|
08-Jan-1998 |
alex |
Added environment parameter to execle calls.
Obtained from: NetBSD PR2737 (augustss@cs.chalmers.se) via OpenBSD
|
#
32329 |
|
08-Jan-1998 |
alex |
Correct a comment from my last commit.
|
#
32328 |
|
08-Jan-1998 |
alex |
Allow 'shutdown datespec' to work into the next century. Handle dates in the 22nd century and beyond even though it's irrelevant with a 32-bit time_t which expires in the year 2038.
|
#
28613 |
|
23-Aug-1997 |
joerg |
Make the daemon process a true daemon by calling setsid().
PR: bin/3202 Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
|
#
26737 |
|
19-Jun-1997 |
charnier |
Use err(3).
|
#
24359 |
|
29-Mar-1997 |
imp |
compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic.
|
#
21931 |
|
21-Jan-1997 |
adam |
-n was broken
2.2 candidate (probably)
|
#
9987 |
|
07-Aug-1995 |
wollman |
Delete bogus referneces to timezone code internal header file `tzfile.h', which is no longer bogusly installed in /usr/include.
|
#
6443 |
|
15-Feb-1995 |
dg |
Yanked out (now obsolete) support for 'fastboot'.
|
#
4844 |
|
27-Nov-1994 |
ats |
Submitted by: M.C. Wong Obtained from: Don't throw away the /etc/nologin file in the -k case.
|
#
1559 |
|
26-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1558, which included commits to RCS files with non-trunk default branches.
|
#
1558 |
|
26-May-1994 |
rgrimes |
BSD 4.4 Lite sbin Sources
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
|