summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/misc.c
AgeCommit message (Expand)Author
2022-05-21repair a few more backwards compares that create headachesTheo de Raadt
2015-11-14Remove log_it() and call syslog(3) directly using the same format:Todd C. Miller
2015-11-09Remove unused xpid argument to log_it().Todd C. Miller
2015-11-06Use __progname instead of the homegrown ProgramName.Todd C. Miller
2015-11-04Change cron from including all headers in every file to only includingTodd C. Miller
2015-11-04Remove unused LogFD variableTodd C. Miller
2015-10-31Split client-only (at, crontab) functions out of misc.c and intoTodd C. Miller
2015-10-31open_socket() is only used by cron proper so move to cron.cTodd C. Miller
2015-10-31swap_gids and swap_gids_back are only used by crontab.c soTodd C. Miller
2015-10-29Use stravis(3) instead of a homegrown vis-like function.Todd C. Miller
2015-10-29Convert env_get() into env_find() similar to __findenv() in libc.Todd C. Miller
2015-10-29Remove useless FACILITY define and use LOG_CRON directly.Todd C. Miller
2015-10-26Use SOCK_NONBLOCK and SOCK_CLOEXEC instead of fcntl() calls.Todd C. Miller
2015-10-26Remove some useless defines and the set_cron_uid() function.Todd C. Miller
2015-10-25Remove cron.pid support. We still want to avoid multiple cronsTodd C. Miller
2015-10-23remove some more ifdef mazinessTed Unangst
2015-10-06clear out some more legacy code and whatnotTed Unangst
2015-02-09correct copyright, upon approval from paul vixie via todd miller. theTheo de Raadt
2015-01-23braces to open a function go on their own line like god intendedTed Unangst
2015-01-23Remove the OK and ERR macros. They obfuscate the code and don'tTed Unangst
2015-01-23remove debug code.Ted Unangst
2015-01-22delete useless casts. ok deraadt guenther millertTed Unangst
2015-01-14Use standard types for wait, readdir, signals and pids.Todd C. Miller
2015-01-14Remove compatibility defines for ancient systems. We assume aTodd C. Miller
2014-10-26Use socket(SOCK_CLOEXEC), open(O_CLOEXEC), and fcntl(F_DUPFD_CLOEXEC)Philip Guenther
2014-08-15Use O_CLOEXEC wherever we open a file and then call fcntl(F_SETFD, FD_CLOEXEC)Philip Guenther
2013-04-21cleaner and easier to use signed long long. ok deraadtTed Unangst
2013-04-17Adapt cron and at for future large time_t and tv_sec types. These were someTheo de Raadt
2011-08-22Use standard EXIT_SUCCESS/EXIT_FAILURE and STD{IN,OUT,ERR}_FILENOTodd C. Miller
2011-07-09use FD_CLOEXEC instead of 1.David Hill
2010-04-10Fix bug in GMT calculation for systems without tm_gmtoff.Todd C. Miller
2010-03-30Log non-informational messages at LOG_WARNING priority instead of LOG_INFO.Jacek Masiulaniec
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2008-01-05remove unused functionCharles Longeau
2007-06-02safer snprintf construct with more paranoid length calculationPeter Valchev
2005-06-08Force pid file fd to be > 2 so we don't clobber it when dup'ingTodd C. Miller
2005-03-10put umask restores in right place; millert okTheo de Raadt
2005-01-30bzero s_un before use; Andrey MatveevTodd C. Miller
2004-09-16nice off_t castTheo de Raadt
2004-07-22Fix incorrect snprintf return value check noticed by Jarno Huuskonen.Todd C. Miller
2004-07-09ansiTheo de Raadt
2004-06-22use snprintf(3) instead of home-grown glue_strings() functionAnil Madhavapeddy
2004-06-17UUpdate ISC copyright year to 2004Todd C. Miller
2004-05-13Set close on exec flag for cron's socket. Jarno HuuskonenTodd C. Miller
2004-05-10Make the accept socket non-blocking. Should not matter since weTodd C. Miller
2003-04-15nasty lies from hobbits, clean them out of commentsTheo de Raadt
2003-02-20Sync with ISC cron-current + my at(1) integration.Todd C. Miller
2003-02-20If there is no cron.allow or cron.deny file, only the superuser may runTodd C. Miller
2003-02-18Use the SUN_LEN macro to set sun_len correctlyTodd C. Miller
2002-08-08Move closelog() into log_close() function and call that insteadTodd C. Miller