| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
PR: 169127
Submitted by: Ruben de Groot <ruben@hacktor.com>
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
While there, rename die_you_gravy_sucking_pig_dog() to something that's
less moronic.
|
| |
|
| |
|
|
|
|
|
|
| |
declaration to global section.
Bump WARNS?= to 6
|
|
|
|
|
|
| |
per letter dated July 22, 1999.
Approved by: core, imp
|
|
|
|
| |
Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me)
|
| |
|
|
|
|
| |
o remove main prototype
|
|
|
|
| |
Submitted by: Mike Barcroft <mike@q9media.com>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
|
|
|
|
| |
don't unlink _PATH_NOLOGIN for the -k case even if shutdown terminates
abnormally. NetBSD already has this change).
|
|
|
|
| |
Fixed some style bugs.
|
|
|
|
| |
requesting a system power-off after shutdown.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Obtained from: NetBSD PR2737 (augustss@cs.chalmers.se) via OpenBSD
|
| |
|
|
|
|
|
| |
in the 22nd century and beyond even though it's irrelevant with a 32-bit
time_t which expires in the year 2038.
|
|
|
|
|
| |
PR: bin/3202
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
|
| |
|
|
|
|
| |
posix standard on the topic.
|
|
|
|
| |
2.2 candidate (probably)
|
|
|
|
| |
which is no longer bogusly installed in /usr/include.
|
| |
|
|
|
|
|
| |
Obtained from:
Don't throw away the /etc/nologin file in the -k case.
|
|
Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
|