libbb.h: always include sys/resource.h
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 8 Apr 2018 15:23:27 +0000 (17:23 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 8 Apr 2018 15:23:27 +0000 (17:23 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/nice.c
debianutils/start_stop_daemon.c
include/libbb.h
init/init.c
loginutils/login.c
loginutils/passwd.c
miscutils/time.c
networking/ntpd.c
runit/chpst.c
shell/shell_common.c
util-linux/renice.c

index aa8b06cce0cb69d4454765066f39f50ccc734419..da1696c4201e41b9e5c2229e752faa9425b9b502 100644 (file)
@@ -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;
index c8b7fa8f21d912b3cfdb0ef735b350cdcb2359da..fa77a7e00bd8b5cc25ae61bdf76dd10c15807033 100644 (file)
@@ -116,8 +116,6 @@ Misc options:
 //usage:       )
 //usage:     "\n       -q              Quiet"
 
-#include <sys/resource.h>
-
 /* Override ENABLE_FEATURE_PIDFILE */
 #define WANT_PIDFILE 1
 #include "libbb.h"
index ed9a562ff44368ebd5219fff53ac6883eacb5c56..c7bf33ef830eeb6461ba592f29847f97fa039c35 100644 (file)
@@ -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>
index cac165fc776bb2d9fafcba49835e2c936a4f91a4..6439e2bcd8627a739bbb4fa0f863716f082763b5 100644 (file)
 #include "libbb.h"
 #include "common_bufsiz.h"
 #include <syslog.h>
-#include <sys/resource.h>
 #ifdef __linux__
 # include <linux/vt.h>
 # include <sys/sysinfo.h>
index fcdb9592c13f1a16f602e6ab177b582aeba67684..25bb5203b4de7752b0ecedc5fb5cf30b57bcefe1 100644 (file)
@@ -64,7 +64,6 @@
 #include "libbb.h"
 #include "common_bufsiz.h"
 #include <syslog.h>
-#include <sys/resource.h>
 
 #if ENABLE_SELINUX
 # include <selinux/selinux.h>  /* for is_selinux_enabled()  */
index d0408d8b4b9de4cebd870801309748ffbbfeea5a..59f47fc7b6b450e3456e84033cd46c3e40962385 100644 (file)
@@ -39,7 +39,6 @@
 
 #include "libbb.h"
 #include <syslog.h>
-#include <sys/resource.h> /* setrlimit */
 
 static char* new_password(const struct passwd *pw, uid_t myuid, const char *algo)
 {
index 61f0787551b2a1eb45d14d9286db6b01a8c3ab47..7d6a7a29fdabb26beb77345ecc11ba848772cfbe 100644 (file)
@@ -32,7 +32,6 @@
 //usage:     "\n       -a      Append (else overwrite)"
 
 #include "libbb.h"
-#include <sys/resource.h> /* getrusage */
 
 /* Information on the resources used by a child process.  */
 typedef struct {
index 8205ab271e25b2d5588aa0bdd760194a2eec6f66..6cd4970909e57d94004325b8a0101175001f22b9 100644 (file)
@@ -94,7 +94,6 @@
 #include "libbb.h"
 #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
index 3ecb85cba1d2b04d300828d7231c92a4e5fd8737..c2641ce8ac9696ec8a78028c28905adefc0034eb 100644 (file)
@@ -135,7 +135,6 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 //usage:     "\n                       a SIGXCPU after N seconds"
 
 #include "libbb.h"
-#include <sys/resource.h> /* getrlimit */
 
 /*
 Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit.
index c978693f95ee67caee42f8793f239cf15c0c7f26..9e58ee4feaceac607a272a2c86eb4834e4c20944 100644 (file)
@@ -18,7 +18,6 @@
  */
 #include "libbb.h"
 #include "shell_common.h"
-#include <sys/resource.h> /* getrlimit */
 
 const char defifsvar[] ALIGN1 = "IFS= \t\n";
 const char defoptindvar[] ALIGN1 = "OPTIND=1";
index 46704591f1a514be42c148d53e72abc7b5404bb9..ee0fb3c8eae0a445e40ab793ed9b4b834dd1dfd6 100644 (file)
@@ -39,7 +39,6 @@
 //usage:     "\n       -u      Process user names"
 
 #include "libbb.h"
-#include <sys/resource.h>
 
 int renice_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int renice_main(int argc UNUSED_PARAM, char **argv)