summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko2008-03-12 22:10:25 +0000
committerDenis Vlasenko2008-03-12 22:10:25 +0000
commit4e6c8120a53709c4a352db42e997303844c74584 (patch)
tree67494852dbb86ff0c25f161181bca156cd9a612e /include
parent35e9c5d83ada1fea40798365a1b4c728f64ded98 (diff)
downloadbusybox-4e6c8120a53709c4a352db42e997303844c74584.zip
busybox-4e6c8120a53709c4a352db42e997303844c74584.tar.gz
crond: make it NOMMU-capable
function old new delta safe_setenv4 - 62 +62 ForkJob 472 511 +39 change_identity 21 57 +36 ParseField 564 571 +7 SynchronizeDir 178 176 -2 LogLevel 4 - -4 LogFile 4 - -4 FileBase 4 - -4 DebugOpt 4 - -4 CDir 4 - -4 DeleteFile 141 132 -9 packed_usage 24248 24228 -20 crondlog 157 113 -44 change_identity_e2str 54 - -54 SynchronizeFile 729 671 -58 crond_main 1555 1404 -151 ------------------------------------------------------------------------------ (add/remove: 1/6 grow/shrink: 3/6 up/down: 144/-358) Total: -214 bytes
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h1
-rw-r--r--include/usage.h17
2 files changed, 9 insertions, 9 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 9b52dd2..6e10cdc 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -912,7 +912,6 @@ char *bb_simplify_path(const char *path);
#define FAIL_DELAY 3
extern void bb_do_delay(int seconds);
extern void change_identity(const struct passwd *pw);
-extern const char *change_identity_e2str(const struct passwd *pw);
extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) ATTRIBUTE_NORETURN;
extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args);
#if ENABLE_SELINUX
diff --git a/include/usage.h b/include/usage.h
index f575f46..a6d970d 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -507,16 +507,17 @@ USE_FEATURE_BRCTL_FANCY("\n" \
" F Input from file"
#define crond_trivial_usage \
- "-d[#] -c crondir -f -b"
+ "-fbS -l N " USE_DEBUG_CROND_OPTION("-d N ") "-L LOGFILE -c DIR"
#define crond_full_usage \
- " -d [#] -l [#] -S -L logfile -f -b -c dir\n" \
- " -d num Debug level\n" \
- " -l num Log level (8 - default)\n" \
+ " -f Foreground\n" \
+ " -b Background (default)\n" \
" -S Log to syslog (default)\n" \
- " -L file Log to file\n" \
- " -f Run in foreground\n" \
- " -b Run in background (default)\n" \
- " -c dir Working dir"
+ " -l Set log level. 0 is the most verbose, default 8\n" \
+ USE_DEBUG_CROND_OPTION( \
+ " -d Set log level, log to stderr\n" \
+ ) \
+ " -L Log to file\n" \
+ " -c Working dir"
#define crontab_trivial_usage \
"[-c DIR] [-u USER] [-ler]|[FILE]"