aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/dmesg.c2
-rw-r--r--util-linux/fbset.c2
-rw-r--r--util-linux/fdflush.c2
-rw-r--r--util-linux/fsck_minix.c2
-rw-r--r--util-linux/mkfs_minix.c2
-rw-r--r--util-linux/mkswap.c2
-rw-r--r--util-linux/more.c2
-rw-r--r--util-linux/mount.c2
-rw-r--r--util-linux/nfsmount.c16
-rw-r--r--util-linux/pivot_root.c2
-rw-r--r--util-linux/rdate.c6
-rw-r--r--util-linux/swaponoff.c2
-rw-r--r--util-linux/umount.c2
13 files changed, 22 insertions, 22 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c
index 47f9f4474..2c85ed3e9 100644
--- a/util-linux/dmesg.c
+++ b/util-linux/dmesg.c
@@ -15,7 +15,6 @@
15 * Support, replaced getopt, added some gotos for redundant stuff. 15 * Support, replaced getopt, added some gotos for redundant stuff.
16 */ 16 */
17 17
18#include "busybox.h"
19#include <stdio.h> 18#include <stdio.h>
20#include <stdlib.h> 19#include <stdlib.h>
21#include <getopt.h> 20#include <getopt.h>
@@ -33,6 +32,7 @@ static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
33#else 32#else
34# include <sys/klog.h> 33# include <sys/klog.h>
35#endif 34#endif
35#include "busybox.h"
36 36
37int dmesg_main(int argc, char **argv) 37int dmesg_main(int argc, char **argv)
38{ 38{
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index 9acabbecb..72284a6c5 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -24,7 +24,6 @@
24 * Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be) 24 * Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be)
25 */ 25 */
26 26
27#include "busybox.h"
28#include <stdio.h> 27#include <stdio.h>
29#include <stdlib.h> 28#include <stdlib.h>
30#include <unistd.h> 29#include <unistd.h>
@@ -33,6 +32,7 @@
33#include <ctype.h> 32#include <ctype.h>
34#include <string.h> 33#include <string.h>
35#include <sys/ioctl.h> 34#include <sys/ioctl.h>
35#include "busybox.h"
36 36
37#define DEFAULTFBDEV "/dev/fb0" 37#define DEFAULTFBDEV "/dev/fb0"
38#define DEFAULTFBMODE "/etc/fb.modes" 38#define DEFAULTFBMODE "/etc/fb.modes"
diff --git a/util-linux/fdflush.c b/util-linux/fdflush.c
index f10cceae0..28f5cb68a 100644
--- a/util-linux/fdflush.c
+++ b/util-linux/fdflush.c
@@ -21,11 +21,11 @@
21 * 21 *
22 */ 22 */
23 23
24#include "busybox.h"
25#include <stdio.h> 24#include <stdio.h>
26#include <sys/ioctl.h> 25#include <sys/ioctl.h>
27#include <fcntl.h> 26#include <fcntl.h>
28#include <stdlib.h> 27#include <stdlib.h>
28#include "busybox.h"
29 29
30/* From <linux/fd.h> */ 30/* From <linux/fd.h> */
31#define FDFLUSH _IO(2,0x4b) 31#define FDFLUSH _IO(2,0x4b)
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index 2b4c65144..9a53a705e 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -86,7 +86,6 @@
86 * enforced (but it's not much fun on a character device :-). 86 * enforced (but it's not much fun on a character device :-).
87 */ 87 */
88 88
89#include "busybox.h"
90#include <stdio.h> 89#include <stdio.h>
91#include <errno.h> 90#include <errno.h>
92#include <unistd.h> 91#include <unistd.h>
@@ -97,6 +96,7 @@
97#include <termios.h> 96#include <termios.h>
98#include <mntent.h> 97#include <mntent.h>
99#include <sys/param.h> 98#include <sys/param.h>
99#include "busybox.h"
100 100
101 101
102 typedef unsigned char u8; 102 typedef unsigned char u8;
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c
index 6b4a3e2d1..b666338dc 100644
--- a/util-linux/mkfs_minix.c
+++ b/util-linux/mkfs_minix.c
@@ -62,7 +62,6 @@
62 * removed getopt based parser and added a hand rolled one. 62 * removed getopt based parser and added a hand rolled one.
63 */ 63 */
64 64
65#include "busybox.h"
66#include <stdio.h> 65#include <stdio.h>
67#include <time.h> 66#include <time.h>
68#include <unistd.h> 67#include <unistd.h>
@@ -75,6 +74,7 @@
75#include <sys/ioctl.h> 74#include <sys/ioctl.h>
76#include <sys/param.h> 75#include <sys/param.h>
77#include <mntent.h> 76#include <mntent.h>
77#include "busybox.h"
78 78
79 79
80typedef unsigned char u8; 80typedef unsigned char u8;
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index 48637e889..b5153f623 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -35,7 +35,6 @@
35 * 35 *
36 */ 36 */
37 37
38#include "busybox.h"
39#include <stdio.h> 38#include <stdio.h>
40#include <unistd.h> 39#include <unistd.h>
41#include <string.h> 40#include <string.h>
@@ -45,6 +44,7 @@
45#include <sys/utsname.h> 44#include <sys/utsname.h>
46#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */ 45#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */
47 /* we also get PAGE_SIZE via getpagesize() */ 46 /* we also get PAGE_SIZE via getpagesize() */
47#include "busybox.h"
48 48
49#ifndef _IO 49#ifndef _IO
50/* pre-1.3.45 */ 50/* pre-1.3.45 */
diff --git a/util-linux/more.c b/util-linux/more.c
index c4c74fe4a..298e1cfb1 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -25,12 +25,12 @@
25 * 25 *
26 */ 26 */
27 27
28#include "busybox.h"
29#include <stdio.h> 28#include <stdio.h>
30#include <fcntl.h> 29#include <fcntl.h>
31#include <signal.h> 30#include <signal.h>
32#include <stdlib.h> 31#include <stdlib.h>
33#include <sys/ioctl.h> 32#include <sys/ioctl.h>
33#include "busybox.h"
34#define BB_DECLARE_EXTERN 34#define BB_DECLARE_EXTERN
35#define bb_need_help 35#define bb_need_help
36#include "messages.c" 36#include "messages.c"
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 2f5bba59d..7b0bf3e21 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -43,7 +43,6 @@
43 * 43 *
44 */ 44 */
45 45
46#include "busybox.h"
47#include <stdlib.h> 46#include <stdlib.h>
48#include <unistd.h> 47#include <unistd.h>
49#include <errno.h> 48#include <errno.h>
@@ -54,6 +53,7 @@
54#if defined BB_FEATURE_USE_DEVPS_PATCH 53#if defined BB_FEATURE_USE_DEVPS_PATCH
55#include <linux/devmtab.h> /* For Erik's nifty devmtab device driver */ 54#include <linux/devmtab.h> /* For Erik's nifty devmtab device driver */
56#endif 55#endif
56#include "busybox.h"
57 57
58enum { 58enum {
59 MS_MGC_VAL = 0xc0ed0000, /* Magic number indicatng "new" flags */ 59 MS_MGC_VAL = 0xc0ed0000, /* Magic number indicatng "new" flags */
diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c
index ae44f3207..aee496980 100644
--- a/util-linux/nfsmount.c
+++ b/util-linux/nfsmount.c
@@ -33,25 +33,25 @@
33 * nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp 33 * nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp
34 */ 34 */
35 35
36#include "busybox.h"
37#undef FALSE
38#undef TRUE
39#include <unistd.h> 36#include <unistd.h>
40#include <stdio.h> 37#include <stdio.h>
41#include <string.h> 38#include <string.h>
42#include <errno.h> 39#include <errno.h>
43#include <netdb.h> 40#include <netdb.h>
44#include <rpc/rpc.h>
45#include <rpc/pmap_prot.h>
46#include <rpc/pmap_clnt.h>
47#include <sys/socket.h> 41#include <sys/socket.h>
48#include <time.h> 42#include <time.h>
49#include <sys/utsname.h> 43#include <sys/utsname.h>
50#include <netinet/in.h> 44#include <netinet/in.h>
51#include <arpa/inet.h> 45#include <arpa/inet.h>
52 46#include <stdlib.h>
53#include "nfsmount.h" 47#include "busybox.h"
48#undef TRUE
49#undef FALSE
50#include <rpc/rpc.h>
51#include <rpc/pmap_prot.h>
52#include <rpc/pmap_clnt.h>
54#include <linux/nfs.h> /* For the kernels nfs stuff */ 53#include <linux/nfs.h> /* For the kernels nfs stuff */
54#include "nfsmount.h"
55 55
56#ifndef NFS_FHSIZE 56#ifndef NFS_FHSIZE
57static const int NFS_FHSIZE = 32; 57static const int NFS_FHSIZE = 32;
diff --git a/util-linux/pivot_root.c b/util-linux/pivot_root.c
index e00710148..d7b80d749 100644
--- a/util-linux/pivot_root.c
+++ b/util-linux/pivot_root.c
@@ -4,11 +4,11 @@
4 * 4 *
5 * busyboxed by Evin Robertson 5 * busyboxed by Evin Robertson
6 */ 6 */
7#include "busybox.h"
8#include <stdlib.h> 7#include <stdlib.h>
9#include <stdio.h> 8#include <stdio.h>
10#include <sys/syscall.h> 9#include <sys/syscall.h>
11#include <linux/unistd.h> 10#include <linux/unistd.h>
11#include "busybox.h"
12 12
13#ifndef __NR_pivot_root 13#ifndef __NR_pivot_root
14#error Sorry, but this kernel does not support the pivot_root syscall 14#error Sorry, but this kernel does not support the pivot_root syscall
diff --git a/util-linux/rdate.c b/util-linux/rdate.c
index 38a7689e9..a3ea3a85b 100644
--- a/util-linux/rdate.c
+++ b/util-linux/rdate.c
@@ -21,9 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#include "busybox.h"
25#define BB_DECLARE_EXTERN
26#include "messages.c"
27#include <sys/time.h> 24#include <sys/time.h>
28#include <sys/types.h> 25#include <sys/types.h>
29#include <sys/socket.h> 26#include <sys/socket.h>
@@ -33,6 +30,9 @@
33#include <getopt.h> 30#include <getopt.h>
34#include <stdlib.h> 31#include <stdlib.h>
35#include <unistd.h> 32#include <unistd.h>
33#include "busybox.h"
34#define BB_DECLARE_EXTERN
35#include "messages.c"
36 36
37 37
38static const int RFC_868_BIAS = 2208988800UL; 38static const int RFC_868_BIAS = 2208988800UL;
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 8dda0972a..0613fa1e9 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -22,7 +22,6 @@
22 * 22 *
23 */ 23 */
24 24
25#include "busybox.h"
26#include <stdio.h> 25#include <stdio.h>
27#include <mntent.h> 26#include <mntent.h>
28#include <dirent.h> 27#include <dirent.h>
@@ -31,6 +30,7 @@
31#include <sys/mount.h> 30#include <sys/mount.h>
32#include <sys/syscall.h> 31#include <sys/syscall.h>
33#include <linux/unistd.h> 32#include <linux/unistd.h>
33#include "busybox.h"
34 34
35_syscall2(int, swapon, const char *, path, int, flags); 35_syscall2(int, swapon, const char *, path, int, flags);
36_syscall1(int, swapoff, const char *, path); 36_syscall1(int, swapoff, const char *, path);
diff --git a/util-linux/umount.c b/util-linux/umount.c
index c160ec284..2868a1bc3 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -22,12 +22,12 @@
22 * 22 *
23 */ 23 */
24 24
25#include "busybox.h"
26#include <stdio.h> 25#include <stdio.h>
27#include <mntent.h> 26#include <mntent.h>
28#include <errno.h> 27#include <errno.h>
29#include <string.h> 28#include <string.h>
30#include <stdlib.h> 29#include <stdlib.h>
30#include "busybox.h"
31 31
32 32
33static const int MNT_FORCE = 1; 33static const int MNT_FORCE = 1;