From ca3c981c07ade7f8fd50ba4bb452a2fadaddc326 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 8 Oct 2006 23:36:17 +0000 Subject: start_stop_daemon: add -N compat [re]nice: add support for -nNNN w/o spaces, -NNN (nice only), simplified code --- include/libbb.h | 1 + include/usage.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index bc86e5faf..7b9b83908 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -346,6 +346,7 @@ long xatol_sfx(const char *numstr, const struct suffix_mult *suffixes); long xatol(const char *numstr); /* Specialized: */ unsigned xatou(const char *numstr); +int xatoi_range(const char *numstr, int lower, int upper); int xatoi(const char *numstr); /* Using xatoi() instead of naive atoi() is not always convenient - * in many places people want *non-negative* values, but store them diff --git a/include/usage.h b/include/usage.h index c9e501903..ef348a2a9 100644 --- a/include/usage.h +++ b/include/usage.h @@ -2691,6 +2691,7 @@ USE_FEATURE_MDEV_CONFIG( \ USE_FEATURE_START_STOP_DAEMON_FANCY( \ "\n\t-o|--oknodo\t\t\texit status 0 if nothing done" \ "\n\t-v|--verbose\t\t\tbe verbose" \ + "\n\t-N|--nicelevel \t\tadd N to process's nice level" \ ) \ "\n\t-s|--signal \t\tsignal to send (default TERM)" \ "\n\t-U|--chuid |\tstart process with this name" -- cgit v1.2.3