diff options
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/dmesg.c | 1 | ||||
-rw-r--r-- | util-linux/fbset.c | 1 | ||||
-rw-r--r-- | util-linux/fdformat.c | 1 | ||||
-rw-r--r-- | util-linux/fdisk.c | 1 | ||||
-rw-r--r-- | util-linux/freeramdisk.c | 1 | ||||
-rw-r--r-- | util-linux/fsck_minix.c | 1 | ||||
-rw-r--r-- | util-linux/getopt.c | 1 | ||||
-rw-r--r-- | util-linux/hexdump.c | 1 | ||||
-rw-r--r-- | util-linux/hwclock.c | 1 | ||||
-rw-r--r-- | util-linux/ipcrm.c | 1 | ||||
-rw-r--r-- | util-linux/ipcs.c | 1 | ||||
-rw-r--r-- | util-linux/losetup.c | 1 | ||||
-rw-r--r-- | util-linux/mdev.c | 1 | ||||
-rw-r--r-- | util-linux/mkfs_minix.c | 1 | ||||
-rw-r--r-- | util-linux/mkswap.c | 1 | ||||
-rw-r--r-- | util-linux/more.c | 1 | ||||
-rw-r--r-- | util-linux/mount.c | 1 | ||||
-rw-r--r-- | util-linux/pivot_root.c | 1 | ||||
-rw-r--r-- | util-linux/rdate.c | 1 | ||||
-rw-r--r-- | util-linux/readprofile.c | 1 | ||||
-rw-r--r-- | util-linux/setarch.c | 1 | ||||
-rw-r--r-- | util-linux/swaponoff.c | 1 | ||||
-rw-r--r-- | util-linux/switch_root.c | 1 | ||||
-rw-r--r-- | util-linux/umount.c | 1 |
24 files changed, 24 insertions, 0 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c index 658cddc38..0bbc306fc 100644 --- a/util-linux/dmesg.c +++ b/util-linux/dmesg.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <unistd.h> | 13 | #include <unistd.h> |
14 | #include <sys/klog.h> | 14 | #include <sys/klog.h> |
15 | 15 | ||
16 | int dmesg_main(int argc, char *argv[]); | ||
16 | int dmesg_main(int argc, char *argv[]) | 17 | int dmesg_main(int argc, char *argv[]) |
17 | { | 18 | { |
18 | char *size, *level; | 19 | char *size, *level; |
diff --git a/util-linux/fbset.c b/util-linux/fbset.c index 94d04b12a..bd584e460 100644 --- a/util-linux/fbset.c +++ b/util-linux/fbset.c | |||
@@ -309,6 +309,7 @@ static inline void showmode(struct fb_var_screeninfo *v) | |||
309 | #ifdef STANDALONE | 309 | #ifdef STANDALONE |
310 | int main(int argc, char **argv) | 310 | int main(int argc, char **argv) |
311 | #else | 311 | #else |
312 | int fbset_main(int argc, char **argv); | ||
312 | int fbset_main(int argc, char **argv) | 313 | int fbset_main(int argc, char **argv) |
313 | #endif | 314 | #endif |
314 | { | 315 | { |
diff --git a/util-linux/fdformat.c b/util-linux/fdformat.c index 0242d8d3a..d694bd631 100644 --- a/util-linux/fdformat.c +++ b/util-linux/fdformat.c | |||
@@ -52,6 +52,7 @@ static void xioctl(int fd, int request, void *argp, const char *string) | |||
52 | } | 52 | } |
53 | } | 53 | } |
54 | 54 | ||
55 | int fdformat_main(int argc,char **argv); | ||
55 | int fdformat_main(int argc,char **argv) | 56 | int fdformat_main(int argc,char **argv) |
56 | { | 57 | { |
57 | int fd, n, cyl, read_bytes, verify; | 58 | int fd, n, cyl, read_bytes, verify; |
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 6d827105e..66acb088f 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c | |||
@@ -2784,6 +2784,7 @@ unknown_command(int c) | |||
2784 | } | 2784 | } |
2785 | #endif | 2785 | #endif |
2786 | 2786 | ||
2787 | int fdisk_main(int argc, char **argv); | ||
2787 | int fdisk_main(int argc, char **argv) | 2788 | int fdisk_main(int argc, char **argv) |
2788 | { | 2789 | { |
2789 | char *str_b, *str_C, *str_H, *str_S; | 2790 | char *str_b, *str_C, *str_H, *str_S; |
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c index 2293d3ee6..ae341b066 100644 --- a/util-linux/freeramdisk.c +++ b/util-linux/freeramdisk.c | |||
@@ -14,6 +14,7 @@ | |||
14 | /* From <linux/fd.h> */ | 14 | /* From <linux/fd.h> */ |
15 | #define FDFLUSH _IO(2,0x4b) | 15 | #define FDFLUSH _IO(2,0x4b) |
16 | 16 | ||
17 | int freeramdisk_main(int argc, char **argv); | ||
17 | int freeramdisk_main(int argc, char **argv) | 18 | int freeramdisk_main(int argc, char **argv) |
18 | { | 19 | { |
19 | int result; | 20 | int result; |
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c index 4e9365116..049bda4cc 100644 --- a/util-linux/fsck_minix.c +++ b/util-linux/fsck_minix.c | |||
@@ -1207,6 +1207,7 @@ static void check2(void) | |||
1207 | void check2(void); | 1207 | void check2(void); |
1208 | #endif | 1208 | #endif |
1209 | 1209 | ||
1210 | int fsck_minix_main(int argc, char **argv); | ||
1210 | int fsck_minix_main(int argc, char **argv) | 1211 | int fsck_minix_main(int argc, char **argv) |
1211 | { | 1212 | { |
1212 | struct termios tmp; | 1213 | struct termios tmp; |
diff --git a/util-linux/getopt.c b/util-linux/getopt.c index 64f568aa9..4861990dd 100644 --- a/util-linux/getopt.c +++ b/util-linux/getopt.c | |||
@@ -288,6 +288,7 @@ static const struct option longopts[]= | |||
288 | static const char shortopts[]="+ao:l:n:qQs:Tu"; | 288 | static const char shortopts[]="+ao:l:n:qQs:Tu"; |
289 | 289 | ||
290 | 290 | ||
291 | int getopt_main(int argc, char *argv[]); | ||
291 | int getopt_main(int argc, char *argv[]) | 292 | int getopt_main(int argc, char *argv[]) |
292 | { | 293 | { |
293 | const char *optstr = NULL; | 294 | const char *optstr = NULL; |
diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c index 5cb245feb..cddd185e2 100644 --- a/util-linux/hexdump.c +++ b/util-linux/hexdump.c | |||
@@ -51,6 +51,7 @@ static const struct suffix_mult suffixes[] = { | |||
51 | {NULL, 0 } | 51 | {NULL, 0 } |
52 | }; | 52 | }; |
53 | 53 | ||
54 | int hexdump_main(int argc, char **argv); | ||
54 | int hexdump_main(int argc, char **argv) | 55 | int hexdump_main(int argc, char **argv) |
55 | { | 56 | { |
56 | const char *p; | 57 | const char *p; |
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index 8fcd8c99c..ca4238f9e 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c | |||
@@ -176,6 +176,7 @@ static int check_utc(void) | |||
176 | #define HWCLOCK_OPT_HCTOSYS 0x08 | 176 | #define HWCLOCK_OPT_HCTOSYS 0x08 |
177 | #define HWCLOCK_OPT_SYSTOHC 0x10 | 177 | #define HWCLOCK_OPT_SYSTOHC 0x10 |
178 | 178 | ||
179 | int hwclock_main(int argc, char **argv ); | ||
179 | int hwclock_main(int argc, char **argv ) | 180 | int hwclock_main(int argc, char **argv ) |
180 | { | 181 | { |
181 | unsigned opt; | 182 | unsigned opt; |
diff --git a/util-linux/ipcrm.c b/util-linux/ipcrm.c index 886c2efbd..9240e2c4b 100644 --- a/util-linux/ipcrm.c +++ b/util-linux/ipcrm.c | |||
@@ -73,6 +73,7 @@ static int remove_ids(type_id type, int argc, char **argv) | |||
73 | #endif /* #ifndef CONFIG_IPCRM_DROP_LEGACY */ | 73 | #endif /* #ifndef CONFIG_IPCRM_DROP_LEGACY */ |
74 | 74 | ||
75 | 75 | ||
76 | int ipcrm_main(int argc, char **argv); | ||
76 | int ipcrm_main(int argc, char **argv) | 77 | int ipcrm_main(int argc, char **argv) |
77 | { | 78 | { |
78 | int c; | 79 | int c; |
diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c index b81d07d6d..5a7b22434 100644 --- a/util-linux/ipcs.c +++ b/util-linux/ipcs.c | |||
@@ -568,6 +568,7 @@ static void print_sem(int semid) | |||
568 | puts(""); | 568 | puts(""); |
569 | } | 569 | } |
570 | 570 | ||
571 | int ipcs_main(int argc, char **argv); | ||
571 | int ipcs_main(int argc, char **argv) | 572 | int ipcs_main(int argc, char **argv) |
572 | { | 573 | { |
573 | int id = 0; | 574 | int id = 0; |
diff --git a/util-linux/losetup.c b/util-linux/losetup.c index c7eb85a91..b220c9878 100644 --- a/util-linux/losetup.c +++ b/util-linux/losetup.c | |||
@@ -12,6 +12,7 @@ | |||
12 | 12 | ||
13 | #include "busybox.h" | 13 | #include "busybox.h" |
14 | 14 | ||
15 | int losetup_main(int argc, char **argv); | ||
15 | int losetup_main(int argc, char **argv) | 16 | int losetup_main(int argc, char **argv) |
16 | { | 17 | { |
17 | unsigned opt; | 18 | unsigned opt; |
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index 4a0e9f9fd..f9f067dfe 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c | |||
@@ -230,6 +230,7 @@ static void find_dev(char *path) | |||
230 | closedir(dir); | 230 | closedir(dir); |
231 | } | 231 | } |
232 | 232 | ||
233 | int mdev_main(int argc, char *argv[]); | ||
233 | int mdev_main(int argc, char *argv[]) | 234 | int mdev_main(int argc, char *argv[]) |
234 | { | 235 | { |
235 | char *action; | 236 | char *action; |
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c index e66ef7e17..7257ddb87 100644 --- a/util-linux/mkfs_minix.c +++ b/util-linux/mkfs_minix.c | |||
@@ -587,6 +587,7 @@ static void get_list_blocks(char *filename) | |||
587 | printf("%d bad block(s)\n", badblocks); | 587 | printf("%d bad block(s)\n", badblocks); |
588 | } | 588 | } |
589 | 589 | ||
590 | int mkfs_minix_main(int argc, char **argv); | ||
590 | int mkfs_minix_main(int argc, char **argv) | 591 | int mkfs_minix_main(int argc, char **argv) |
591 | { | 592 | { |
592 | struct mntent *mp; | 593 | struct mntent *mp; |
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c index 7baa3ecfb..ac894d50a 100644 --- a/util-linux/mkswap.c +++ b/util-linux/mkswap.c | |||
@@ -8,6 +8,7 @@ | |||
8 | 8 | ||
9 | #include "busybox.h" | 9 | #include "busybox.h" |
10 | 10 | ||
11 | int mkswap_main(int argc, char *argv[]); | ||
11 | int mkswap_main(int argc, char *argv[]) | 12 | int mkswap_main(int argc, char *argv[]) |
12 | { | 13 | { |
13 | int fd, pagesize; | 14 | int fd, pagesize; |
diff --git a/util-linux/more.c b/util-linux/more.c index d048ace92..d00cb40b8 100644 --- a/util-linux/more.c +++ b/util-linux/more.c | |||
@@ -38,6 +38,7 @@ static void gotsig(int sig) | |||
38 | #endif /* FEATURE_USE_TERMIOS */ | 38 | #endif /* FEATURE_USE_TERMIOS */ |
39 | 39 | ||
40 | 40 | ||
41 | int more_main(int argc, char **argv); | ||
41 | int more_main(int argc, char **argv) | 42 | int more_main(int argc, char **argv) |
42 | { | 43 | { |
43 | int c, lines, input = 0; | 44 | int c, lines, input = 0; |
diff --git a/util-linux/mount.c b/util-linux/mount.c index ba98519b6..702c0338a 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -1524,6 +1524,7 @@ report_error: | |||
1524 | 1524 | ||
1525 | const char must_be_root[] = "you must be root"; | 1525 | const char must_be_root[] = "you must be root"; |
1526 | 1526 | ||
1527 | int mount_main(int argc, char **argv); | ||
1527 | int mount_main(int argc, char **argv) | 1528 | int mount_main(int argc, char **argv) |
1528 | { | 1529 | { |
1529 | enum { OPT_ALL = 0x10 }; | 1530 | enum { OPT_ALL = 0x10 }; |
diff --git a/util-linux/pivot_root.c b/util-linux/pivot_root.c index bd02302c7..97c7fa85e 100644 --- a/util-linux/pivot_root.c +++ b/util-linux/pivot_root.c | |||
@@ -12,6 +12,7 @@ | |||
12 | 12 | ||
13 | extern int pivot_root(const char * new_root,const char * put_old); | 13 | extern int pivot_root(const char * new_root,const char * put_old); |
14 | 14 | ||
15 | int pivot_root_main(int argc, char **argv); | ||
15 | int pivot_root_main(int argc, char **argv) | 16 | int pivot_root_main(int argc, char **argv) |
16 | { | 17 | { |
17 | if (argc != 3) | 18 | if (argc != 3) |
diff --git a/util-linux/rdate.c b/util-linux/rdate.c index d6d1384f7..33cf64efb 100644 --- a/util-linux/rdate.c +++ b/util-linux/rdate.c | |||
@@ -42,6 +42,7 @@ static time_t askremotedate(const char *host) | |||
42 | return ntohl(nett) - RFC_868_BIAS; | 42 | return ntohl(nett) - RFC_868_BIAS; |
43 | } | 43 | } |
44 | 44 | ||
45 | int rdate_main(int argc, char **argv); | ||
45 | int rdate_main(int argc, char **argv) | 46 | int rdate_main(int argc, char **argv) |
46 | { | 47 | { |
47 | time_t remote_time; | 48 | time_t remote_time; |
diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c index dd810f021..a17b9c880 100644 --- a/util-linux/readprofile.c +++ b/util-linux/readprofile.c | |||
@@ -41,6 +41,7 @@ | |||
41 | static const char defaultmap[] = "/boot/System.map"; | 41 | static const char defaultmap[] = "/boot/System.map"; |
42 | static const char defaultpro[] = "/proc/profile"; | 42 | static const char defaultpro[] = "/proc/profile"; |
43 | 43 | ||
44 | int readprofile_main(int argc, char **argv); | ||
44 | int readprofile_main(int argc, char **argv) | 45 | int readprofile_main(int argc, char **argv) |
45 | { | 46 | { |
46 | FILE *map; | 47 | FILE *map; |
diff --git a/util-linux/setarch.c b/util-linux/setarch.c index d7e1c0917..8f4e308d4 100644 --- a/util-linux/setarch.c +++ b/util-linux/setarch.c | |||
@@ -16,6 +16,7 @@ | |||
16 | 16 | ||
17 | #include "busybox.h" | 17 | #include "busybox.h" |
18 | 18 | ||
19 | int setarch_main(int ATTRIBUTE_UNUSED argc, char **argv); | ||
19 | int setarch_main(int ATTRIBUTE_UNUSED argc, char **argv) | 20 | int setarch_main(int ATTRIBUTE_UNUSED argc, char **argv) |
20 | { | 21 | { |
21 | int pers = -1; | 22 | int pers = -1; |
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index 8434d121c..e1de4eb0c 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c | |||
@@ -59,6 +59,7 @@ static int do_em_all(void) | |||
59 | 59 | ||
60 | #define DO_ALL 0x01 | 60 | #define DO_ALL 0x01 |
61 | 61 | ||
62 | int swap_on_off_main(int argc, char **argv); | ||
62 | int swap_on_off_main(int argc, char **argv) | 63 | int swap_on_off_main(int argc, char **argv) |
63 | { | 64 | { |
64 | int ret; | 65 | int ret; |
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c index 007083bef..5a01fd6f7 100644 --- a/util-linux/switch_root.c +++ b/util-linux/switch_root.c | |||
@@ -63,6 +63,7 @@ static void delete_contents(const char *directory) | |||
63 | } else unlink(directory); | 63 | } else unlink(directory); |
64 | } | 64 | } |
65 | 65 | ||
66 | int switch_root_main(int argc, char *argv[]); | ||
66 | int switch_root_main(int argc, char *argv[]) | 67 | int switch_root_main(int argc, char *argv[]) |
67 | { | 68 | { |
68 | char *newroot, *console=NULL; | 69 | char *newroot, *console=NULL; |
diff --git a/util-linux/umount.c b/util-linux/umount.c index 6ba72aed1..4ea15d91b 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #define OPT_REMOUNT 16 | 20 | #define OPT_REMOUNT 16 |
21 | #define OPT_ALL (ENABLE_FEATURE_UMOUNT_ALL ? 32 : 0) | 21 | #define OPT_ALL (ENABLE_FEATURE_UMOUNT_ALL ? 32 : 0) |
22 | 22 | ||
23 | int umount_main(int argc, char **argv); | ||
23 | int umount_main(int argc, char **argv) | 24 | int umount_main(int argc, char **argv) |
24 | { | 25 | { |
25 | int doForce; | 26 | int doForce; |