summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/dmesg.c1
-rw-r--r--util-linux/fbset.c1
-rw-r--r--util-linux/fdformat.c1
-rw-r--r--util-linux/fdisk.c1
-rw-r--r--util-linux/freeramdisk.c1
-rw-r--r--util-linux/fsck_minix.c1
-rw-r--r--util-linux/getopt.c1
-rw-r--r--util-linux/hexdump.c1
-rw-r--r--util-linux/hwclock.c1
-rw-r--r--util-linux/ipcrm.c1
-rw-r--r--util-linux/ipcs.c1
-rw-r--r--util-linux/losetup.c1
-rw-r--r--util-linux/mdev.c1
-rw-r--r--util-linux/mkfs_minix.c1
-rw-r--r--util-linux/mkswap.c1
-rw-r--r--util-linux/more.c1
-rw-r--r--util-linux/mount.c1
-rw-r--r--util-linux/pivot_root.c1
-rw-r--r--util-linux/rdate.c1
-rw-r--r--util-linux/readprofile.c1
-rw-r--r--util-linux/setarch.c1
-rw-r--r--util-linux/swaponoff.c1
-rw-r--r--util-linux/switch_root.c1
-rw-r--r--util-linux/umount.c1
24 files changed, 24 insertions, 0 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c
index 658cddc..0bbc306 100644
--- a/util-linux/dmesg.c
+++ b/util-linux/dmesg.c
@@ -13,6 +13,7 @@
#include <unistd.h>
#include <sys/klog.h>
+int dmesg_main(int argc, char *argv[]);
int dmesg_main(int argc, char *argv[])
{
char *size, *level;
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index 94d04b1..bd584e4 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -309,6 +309,7 @@ static inline void showmode(struct fb_var_screeninfo *v)
#ifdef STANDALONE
int main(int argc, char **argv)
#else
+int fbset_main(int argc, char **argv);
int fbset_main(int argc, char **argv)
#endif
{
diff --git a/util-linux/fdformat.c b/util-linux/fdformat.c
index 0242d8d..d694bd6 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)
}
}
+int fdformat_main(int argc,char **argv);
int fdformat_main(int argc,char **argv)
{
int fd, n, cyl, read_bytes, verify;
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 6d82710..66acb08 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -2784,6 +2784,7 @@ unknown_command(int c)
}
#endif
+int fdisk_main(int argc, char **argv);
int fdisk_main(int argc, char **argv)
{
char *str_b, *str_C, *str_H, *str_S;
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c
index 2293d3e..ae341b0 100644
--- a/util-linux/freeramdisk.c
+++ b/util-linux/freeramdisk.c
@@ -14,6 +14,7 @@
/* From <linux/fd.h> */
#define FDFLUSH _IO(2,0x4b)
+int freeramdisk_main(int argc, char **argv);
int freeramdisk_main(int argc, char **argv)
{
int result;
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index 4e93651..049bda4 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -1207,6 +1207,7 @@ static void check2(void)
void check2(void);
#endif
+int fsck_minix_main(int argc, char **argv);
int fsck_minix_main(int argc, char **argv)
{
struct termios tmp;
diff --git a/util-linux/getopt.c b/util-linux/getopt.c
index 64f568a..4861990 100644
--- a/util-linux/getopt.c
+++ b/util-linux/getopt.c
@@ -288,6 +288,7 @@ static const struct option longopts[]=
static const char shortopts[]="+ao:l:n:qQs:Tu";
+int getopt_main(int argc, char *argv[]);
int getopt_main(int argc, char *argv[])
{
const char *optstr = NULL;
diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c
index 5cb245f..cddd185 100644
--- a/util-linux/hexdump.c
+++ b/util-linux/hexdump.c
@@ -51,6 +51,7 @@ static const struct suffix_mult suffixes[] = {
{NULL, 0 }
};
+int hexdump_main(int argc, char **argv);
int hexdump_main(int argc, char **argv)
{
const char *p;
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index 8fcd8c9..ca4238f 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -176,6 +176,7 @@ static int check_utc(void)
#define HWCLOCK_OPT_HCTOSYS 0x08
#define HWCLOCK_OPT_SYSTOHC 0x10
+int hwclock_main(int argc, char **argv );
int hwclock_main(int argc, char **argv )
{
unsigned opt;
diff --git a/util-linux/ipcrm.c b/util-linux/ipcrm.c
index 886c2ef..9240e2c 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)
#endif /* #ifndef CONFIG_IPCRM_DROP_LEGACY */
+int ipcrm_main(int argc, char **argv);
int ipcrm_main(int argc, char **argv)
{
int c;
diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c
index b81d07d..5a7b224 100644
--- a/util-linux/ipcs.c
+++ b/util-linux/ipcs.c
@@ -568,6 +568,7 @@ static void print_sem(int semid)
puts("");
}
+int ipcs_main(int argc, char **argv);
int ipcs_main(int argc, char **argv)
{
int id = 0;
diff --git a/util-linux/losetup.c b/util-linux/losetup.c
index c7eb85a..b220c98 100644
--- a/util-linux/losetup.c
+++ b/util-linux/losetup.c
@@ -12,6 +12,7 @@
#include "busybox.h"
+int losetup_main(int argc, char **argv);
int losetup_main(int argc, char **argv)
{
unsigned opt;
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 4a0e9f9..f9f067d 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -230,6 +230,7 @@ static void find_dev(char *path)
closedir(dir);
}
+int mdev_main(int argc, char *argv[]);
int mdev_main(int argc, char *argv[])
{
char *action;
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c
index e66ef7e..7257ddb 100644
--- a/util-linux/mkfs_minix.c
+++ b/util-linux/mkfs_minix.c
@@ -587,6 +587,7 @@ static void get_list_blocks(char *filename)
printf("%d bad block(s)\n", badblocks);
}
+int mkfs_minix_main(int argc, char **argv);
int mkfs_minix_main(int argc, char **argv)
{
struct mntent *mp;
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index 7baa3ec..ac894d5 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -8,6 +8,7 @@
#include "busybox.h"
+int mkswap_main(int argc, char *argv[]);
int mkswap_main(int argc, char *argv[])
{
int fd, pagesize;
diff --git a/util-linux/more.c b/util-linux/more.c
index d048ace..d00cb40 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -38,6 +38,7 @@ static void gotsig(int sig)
#endif /* FEATURE_USE_TERMIOS */
+int more_main(int argc, char **argv);
int more_main(int argc, char **argv)
{
int c, lines, input = 0;
diff --git a/util-linux/mount.c b/util-linux/mount.c
index ba98519..702c033 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -1524,6 +1524,7 @@ report_error:
const char must_be_root[] = "you must be root";
+int mount_main(int argc, char **argv);
int mount_main(int argc, char **argv)
{
enum { OPT_ALL = 0x10 };
diff --git a/util-linux/pivot_root.c b/util-linux/pivot_root.c
index bd02302..97c7fa8 100644
--- a/util-linux/pivot_root.c
+++ b/util-linux/pivot_root.c
@@ -12,6 +12,7 @@
extern int pivot_root(const char * new_root,const char * put_old);
+int pivot_root_main(int argc, char **argv);
int pivot_root_main(int argc, char **argv)
{
if (argc != 3)
diff --git a/util-linux/rdate.c b/util-linux/rdate.c
index d6d1384..33cf64e 100644
--- a/util-linux/rdate.c
+++ b/util-linux/rdate.c
@@ -42,6 +42,7 @@ static time_t askremotedate(const char *host)
return ntohl(nett) - RFC_868_BIAS;
}
+int rdate_main(int argc, char **argv);
int rdate_main(int argc, char **argv)
{
time_t remote_time;
diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c
index dd810f0..a17b9c8 100644
--- a/util-linux/readprofile.c
+++ b/util-linux/readprofile.c
@@ -41,6 +41,7 @@
static const char defaultmap[] = "/boot/System.map";
static const char defaultpro[] = "/proc/profile";
+int readprofile_main(int argc, char **argv);
int readprofile_main(int argc, char **argv)
{
FILE *map;
diff --git a/util-linux/setarch.c b/util-linux/setarch.c
index d7e1c09..8f4e308 100644
--- a/util-linux/setarch.c
+++ b/util-linux/setarch.c
@@ -16,6 +16,7 @@
#include "busybox.h"
+int setarch_main(int ATTRIBUTE_UNUSED argc, char **argv);
int setarch_main(int ATTRIBUTE_UNUSED argc, char **argv)
{
int pers = -1;
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 8434d12..e1de4eb 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -59,6 +59,7 @@ static int do_em_all(void)
#define DO_ALL 0x01
+int swap_on_off_main(int argc, char **argv);
int swap_on_off_main(int argc, char **argv)
{
int ret;
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c
index 007083b..5a01fd6 100644
--- a/util-linux/switch_root.c
+++ b/util-linux/switch_root.c
@@ -63,6 +63,7 @@ static void delete_contents(const char *directory)
} else unlink(directory);
}
+int switch_root_main(int argc, char *argv[]);
int switch_root_main(int argc, char *argv[])
{
char *newroot, *console=NULL;
diff --git a/util-linux/umount.c b/util-linux/umount.c
index 6ba72ae..4ea15d9 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -20,6 +20,7 @@
#define OPT_REMOUNT 16
#define OPT_ALL (ENABLE_FEATURE_UMOUNT_ALL ? 32 : 0)
+int umount_main(int argc, char **argv);
int umount_main(int argc, char **argv)
{
int doForce;