aboutsummaryrefslogtreecommitdiff
path: root/miscutils/crond.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* - fix conflicting decls of syslog related facilitynames and prioritynames tablesBernhard Reutner-Fischer2008-01-271-1/+1
|
* crond: small code shrink and readability enhancementsDenis Vlasenko2008-01-241-15/+15
|
* libbb: introduce and use safe_waitpid (loops in EINTR)Denis Vlasenko2008-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | *: use more approproate (shorter) versions of wait() function old new delta safe_waitpid - 48 +48 wait_any_nohang - 17 +17 send_tree 365 369 +4 processorstop 432 435 +3 text_yank 110 108 -2 make_human_readable_str 202 200 -2 crond_main 1368 1366 -2 handle_sigchld 49 43 -6 reapchild 166 159 -7 custom 260 250 -10 checkscript 191 177 -14 wait_nohang 17 - -17 wait_pid 43 - -43 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 2/7 up/down: 72/-103) Total: -31 bytes
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* crond: code shrinkDenis Vlasenko2007-08-191-59/+21
|
* libbb,crond,lash: fix getopt32 (don't know how it managed to slip through)Denis Vlasenko2007-08-191-1/+1
| | | | | *: fcntl(fd, F_GETFL) doesn't require third parameter at all.
* crond: don't start sendmail with absolute pathDenis Vlasenko2007-08-181-8/+8
| | | | | crond: don't report obsolete version, report true bbox version
* Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms ↵Denis Vlasenko2007-06-251-3/+2
| | | | <wharms@bfs.de>)
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* bb_full_fd_action: remove potential xmalloc from NOFORK pathDenis Vlasenko2007-04-111-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cat: stop using stdio.h opens libbb: introduce & use open[3]_or_warn function old new delta open3_or_warn - 54 +54 bb_cat 115 144 +29 open_or_warn - 25 +25 unlzma 2404 2412 +8 chattr_main 334 339 +5 xstrtoul_range_sfx 251 255 +4 telnet_main 1514 1510 -4 static.opt 4 - -4 qgravechar 122 118 -4 fuser_add_pid 61 54 -7 fuser_add_inode 154 147 -7 writeFileToTarball 1542 1534 -8 refresh 1156 1148 -8 do_show 856 846 -10 read_leases 212 200 -12 setup_redirects 236 222 -14 iproute_list_or_flush 1582 1568 -14 read_config 427 411 -16 write_leases 284 264 -20 hash_file 338 318 -20 copy_file 1760 1740 -20 do_iproute 2610 2588 -22 bb_full_fd_action 320 269 -51 open_to_or_warn 103 49 -54 fuser_main 1660 1596 -64 .rodata 131160 131096 -64 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 4/19 up/down: 125/-423) Total: -298 bytes
* make pidfile writing configurable.Denis Vlasenko2007-03-271-0/+1
| | | | [ui]toa_to_buf: change API. No users yet.
* move everything to new NOMMU helpers, except udhcpDenis Vlasenko2007-03-261-48/+16
|
* NOMMU re-exec trick shuld not depend on existence of "don't daemonize"Denis Vlasenko2007-03-241-2/+2
| | | | | option for every affected applet (and dnsd, for example, don't have one). Thus rework re-exec support to not require it. Code got smaller too.
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* convert calloc to xzallocDenis Vlasenko2007-01-031-2/+2
| | | | fix sleep-on-die option
* rodata cleanup. "unable to" == "cannot". -300 bytesDenis Vlasenko2006-11-181-5/+5
|
* remove bb_printf and the likeDenis Vlasenko2006-10-261-12/+12
|
* message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko2006-10-201-3/+3
|
* add open_read_close() and similar stuffDenis Vlasenko2006-10-141-2/+2
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-4/+4
|
* bb_applet_name -> applet_nameDenis Vlasenko2006-10-031-2/+2
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-4/+4
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-18/+3
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* - move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer2006-06-031-2/+1
| | | | and eventual platform specific includes in early.
* - s/defined(__uClinux__)/BB_NOMMU/Bernhard Reutner-Fischer2006-05-311-3/+3
| | | | | | | This needs a second pass to: + add bb_daemon(unsigned char no_chdir, unsigned char no_close, const char*flag) + eventually globally export argc and argv, so we don't need to pass it to bb_daemon().
* New version of nohup that's much smaller, less paranoid, consistent,Rob Landley2006-05-211-15/+0
| | | | vaguely portable, and licensed GPLv2 "or later".
* - silence warning about no return in function returning non-voidBernhard Reutner-Fischer2006-05-201-25/+22
| | | | | - put CONFIG_DEBUG_CROND_OPTION into config no changes in size when debugging is disabled.
* use more boiler plate GPL noticesMike Frysinger2006-04-161-2/+2
|
* - patch from Denis Vlasenko to add and use bb_xchdir()Bernhard Reutner-Fischer2006-04-121-3/+1
|
* - patch from Denis Vlasenko to add and use bb_xdaemon()Bernhard Reutner-Fischer2006-04-121-3/+2
|
* removed warning "comparison between signed and unsigned". Change very very ↵"Vladimir N. Oleynik"2006-01-301-7/+7
| | | | old code: use int instead short
* destroy bug [0000381]"Vladimir N. Oleynik"2005-09-051-2/+2
|
* 1) bb_opt_complementaly -> bb_opt_complementally"Vladimir N. Oleynik"2005-09-051-2/+2
| | | | | 2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
* According to bug #63, crond is unhappy with crontab lines that don't end in aRob Landley2005-09-011-4/+2
| | | | newline, or lines that have trailing spaces.
* Larry Doolittle writes:Eric Andersen2004-04-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
* Fixup braces (patch from Thomas Geulig), run through indent and manuallyGlenn L McGrath2004-02-221-778/+744
| | | | adjust.
* Fix compile error, the indenting really needs to be fixed hereGlenn L McGrath2003-12-231-1/+1
|
* Get vfork_daemon_rexec working under uclinuxRuss Dill2003-12-151-6/+4
|
* last_patch116 from vodz:Eric Andersen2003-10-221-3/+5
| | | | | | | | | | | | | | | | | | | | | | | Stephane, >Using busybox+uclibc, crond syslog messages look like: > >Oct 9 09:04:46 soekris cron.notice crond[347]: ^Icrond 2.3.2 dillon, >started, log level 8 Thanks for testing. >The attached patch corrects the problem. Your patch is not correct. Correct patch attached. Also. Last patch have - add "Broken pipe" message to ash.c - busybox ash synced with dash_0.4.18 --w vodz
* more crond+crontab integrating with loginutil libbb functions and deletedGlenn L McGrath2003-09-031-12/+4
| | | | | patch from Thomas Gleixner to init. Viodz last_patch_108
* move all "-/bin/sh" "/bin/sh" and "sh" to libbb/messages.c file as oneGlenn L McGrath2003-09-021-8/+5
| | | | | constant. Vodz last_patch_107
* Avoid shadowing built-in function `log'Eric Andersen2003-07-281-33/+33
|
* Fixup bugs in last patchEric Andersen2003-07-281-1/+2
|
* last_patch95 from vodz:Eric Andersen2003-07-281-225/+186
| | | | | | | | | | | | | | | | | Hi. Last patch have new libbb function vfork_rexec() for can use daemon() to uClinux system. This patched daemons: syslog, klogd, inetd, crond. This not tested! I havn`t this systems. Also. Previous patch for feature request MD5 crypt password for httpd don`t sended to this mailist on 07/15/03 (mailist have Pytom module problem?). The previous patch included, and have testing. --w vodz
* last_patch89 from vodz:Eric Andersen2003-06-201-34/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manuel, I rewrite bb_getopt_ulflags() function for more universal usage. My version support now: - options with arguments (optional arg as GNU extension also) - complementaly and/or incomplementaly and/or incongruously and/or list options - long_opt (all applets may have long option, add supporting is trivial) This realisation full compatibile from your version. Code size grow 480 bytes, but only coreutils/* over compensate this size after using new function. Last patch reduced over 800 bytes and not full applied to all. "mkdir" and "mv" applets have long_opt now for demonstrate trivial addition support long_opt with usage new bb_getopt_ulflags(). Complementaly and/or incomplementaly and/or incongruously and/or list options logic is not trivial, but new "cut" and "grep" applets using this logic for examples with full demostrating. New "grep" applet reduced over 300 bytes. Mark, Also. I removed bug from "grep" applet. $ echo a b | busybox grep -e a b a b a b But right is printing one only. --w vodz
* Major coreutils update.Manuel Novoa III2003-03-191-5/+5
|
* mjn3 noticed that crond and crontab had #include <pwd.h> and #include <grp.h>Eric Andersen2002-10-221-2/+0
| | | | | | | but this conflicted with the internal pwd_.h and grp_.h. Removing these headers is correct, since the correct pwd/grp headers will be included via busybox.h -Erik
* last_patch63 from vodz: add in crond and crontab appletsEric Andersen2002-10-221-0/+1146