summaryrefslogtreecommitdiffstats
path: root/sbin/init/init.c
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-06unifdef LOGIN_CAP, we always want to use login.confmillert1-13/+3
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-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-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-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
2010-10-15freebsd uses SIGINT to request a reboot, we may as well be consistent.dlg1-4/+4
2010-10-14add a SIGQUIT handler that does the same as USR1 and USR2, except itdlg1-4/+18
2010-09-29Add missing err.h includedcoppa1-1/+2
2010-08-07disable lidsuspend when we are powering downphessler1-1/+12
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
2006-06-22accept SIGUSR2. Like SIGUSR1, except it makes RB_POWERDOWN mandatory.deraadt1-7/+25
2006-03-19Fix mem leaks in error path. From NetBSD's coverity analysis. ok pat@otto1-3/+8
2005-11-12use snprintf; dhill@mindcry.orgderaadt1-11/+6
2005-03-13turn off accounting when switching to single user;markus1-2/+8
2004-03-16errno is not specified to be int, but something from errno.h. ok millert@tedu1-3/+2
2003-10-30malloc failures in init? never. but try to be reasonable for one dumb onederaadt1-4/+8
2003-07-29spacesderaadt1-22/+22
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert1-7/+3
2003-03-30snprintf; millert okderaadt1-6/+10
2002-12-11Minor cosmetic nits picked while reading though init.c:millert1-8/+8
2002-10-10Style nits. Use STDERR_FILENO, not just 2. Also use parens withmillert1-14/+14
2002-07-03ansideraadt1-56/+33
2002-06-09rm trailing whitespacetodd1-7/+7
2002-05-22strcpy, sprintf death; mpech okderaadt1-6/+7
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert1-77/+3
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert1-38/+38
2001-11-05kill more registers;mpech1-20/+20
2001-07-09correct type on last arg to execl(); nordin@cse.ogi.eduderaadt1-3/+3
2001-01-19mark signal races i cannot fix at the momentderaadt1-3/+3