Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
@@ -22,7 +22,6 @@
//usage: "Change scheduling priority, run PROG\n"
//usage: "\n -n ADJUST Adjust priority by ADJUST"
-#include <sys/resource.h>
#include "libbb.h"
int nice_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
@@ -116,8 +116,6 @@ Misc options:
//usage: )
//usage: "\n -q Quiet"
-
/* Override ENABLE_FEATURE_PIDFILE */
#define WANT_PIDFILE 1
@@ -41,6 +41,7 @@
#include <poll.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
+#include <sys/resource.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
@@ -130,7 +130,6 @@
#include "common_bufsiz.h"
#include <syslog.h>
#ifdef __linux__
# include <linux/vt.h>
# include <sys/sysinfo.h>
@@ -64,7 +64,6 @@
#if ENABLE_SELINUX
# include <selinux/selinux.h> /* for is_selinux_enabled() */
@@ -39,7 +39,6 @@
-#include <sys/resource.h> /* setrlimit */
static char* new_password(const struct passwd *pw, uid_t myuid, const char *algo)
{
@@ -32,7 +32,6 @@
//usage: "\n -a Append (else overwrite)"
-#include <sys/resource.h> /* getrusage */
/* Information on the resources used by a child process. */
typedef struct {
@@ -94,7 +94,6 @@
#include <math.h>
#include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */
-#include <sys/resource.h> /* setpriority */
#include <sys/timex.h>
#ifndef IPTOS_LOWDELAY
# define IPTOS_LOWDELAY 0x10
@@ -135,7 +135,6 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//usage: "\n a SIGXCPU after N seconds"
-#include <sys/resource.h> /* getrlimit */
/*
Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit.
@@ -18,7 +18,6 @@
*/
#include "shell_common.h"
const char defifsvar[] ALIGN1 = "IFS= \t\n";
const char defoptindvar[] ALIGN1 = "OPTIND=1";
//usage: "\n -u Process user names"
int renice_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int renice_main(int argc UNUSED_PARAM, char **argv)