summaryrefslogtreecommitdiffstats
path: root/sbin/init
AgeCommit message (Expand)AuthorFilesLines
2020-03-25init(8): use err(3) instead of hand-rolled fprintf(3) messagescheloha1-9/+5
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-4/+4
2018-08-24Drop special handling of SIGSYS.cheloha1-20/+2
2018-01-31Check GETTY_SPACING against the monotonic clock.cheloha1-10/+14
2018-01-16GETTY_SLEEP is 30 seconds, not 10cheloha1-3/+3
2018-01-06unifdef LOGIN_CAP, we always want to use login.confmillert2-15/+5
2017-06-16s/CPU_LIDSUSPEND/CPU_LIDACTION/natano1-2/+2
2017-05-03Use the safe idiom of cleaning sensitive data from memory with explicit_bzero,mestre1-3/+4
2017-03-02Add a new sysctl machdep.lidaction. The sysctl works as follows:natano1-6/+6
2016-10-06fix HISTORY;schwarze1-3/+3
2016-09-05for consistency, hyphenate "single-user";jmc1-4/+4
2016-09-05replace obsolete getpass() by readpassphrase()gsoares1-2/+4
2016-09-04Use an RB tree instead of BDB to map process->session, ok tedu millertnicm1-41/+20
2016-08-27Pull in <sys/time.h> for struct timespecguenther1-2/+3
2016-05-10Do not close the stdio file desciptors in init(8), but dup2(2) thembluhm1-9/+13
2016-02-01Remove variable unneeded since introduction of crypt_checkpassjca1-2/+2
2015-12-23Use NULL rather than 0 for pointers. No binary change.mmcc1-9/+9
2015-12-10Remove NULL-checks before free(). ok tb@mmcc1-3/+2
2015-11-18use _shadow getpwnam (and crypt_checkpass)tedu1-6/+8
2015-09-25there's no need to keep init secret these days, and the (unused)tedu1-3/+1
2015-08-20<stdlib.h> is included, so do not need to cast result fromderaadt1-3/+2
2015-07-14Use volatile sig_atomic_t for requested_transition since it ismillert1-61/+82
2015-03-18Make init(8) static PIE.pascal1-3/+1
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt1-4/+4
2014-12-06Do not define the variable pid twice to avoid a compiler warning.bluhm1-2/+1
2014-04-22malloc/memset->calloc. with bonus null check. from peter malone.tedu1-3/+4
2014-01-03Do not raise the securelevel when transitioning from catatonia tomillert1-5/+7
2013-02-11Ignore sysctl failure for CPU_LIDSUSPEND when errno is EOPNOTSUPP.millert1-2/+2
2012-10-11fix "disable lidsuspend on shutdown":halex1-3/+3
2012-04-06no need to (unsigned) a small constantderaadt1-2/+2
2011-09-04knock out useless Pp;jmc1-3/+2
2011-05-10Some cleanup and simplifications:schwarze1-24/+32
2010-10-15tweak previous;jmc1-3/+3
2010-10-15freebsd uses SIGINT to request a reboot, we may as well be consistent.dlg2-8/+8
2010-10-14add a SIGQUIT handler that does the same as USR1 and USR2, except itdlg2-16/+37
2010-09-29Add missing err.h includedcoppa1-1/+2
2010-09-19more wacky macro fixing;jmc1-3/+3
2010-08-07disable lidsuspend when we are powering downphessler1-1/+12
2010-03-14.Pd -> .Pqjmc1-3/+3
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-15/+1
2007-09-03malloc(n * m) -> calloc(n, m); ok espiederaadt1-3/+3
2007-05-31convert to new .Dd format;jmc1-2/+2
2007-01-29sort FILES;jmc1-7/+7
2007-01-29add /fastboot to FILES, since these pages discuss that file;jmc1-1/+7
2006-07-25correct .Xr; from marcus poppjmc1-2/+2
2006-06-22let's just use "getty" as the plural of `getty', because "getty's" isjmc1-3/+3
2006-06-22accept SIGUSR2. Like SIGUSR1, except it makes RB_POWERDOWN mandatory.deraadt2-8/+33
2006-03-19Fix mem leaks in error path. From NetBSD's coverity analysis. ok pat@otto1-3/+8
2005-12-10better wording, helped by krw and roughly ok deraadt;jmc1-3/+3
2005-11-12use snprintf; dhill@mindcry.orgderaadt1-11/+6