suppress warnings about easch <applet>_main() having
no preceding prototype
This commit is contained in:
parent
c7ba8b9d6c
commit
06af216528
@ -18,5 +18,5 @@ HOSTCFLAGS_usage.o = -I$(srctree)/include
|
||||
|
||||
quiet_cmd_gen_usage_compressed = GEN include/usage_compressed.h
|
||||
cmd_gen_usage_compressed = $(srctree)/applets/usage_compressed include/usage_compressed.h applets
|
||||
include/usage_compressed.h: $(srctree)/include/usage.h applets/usage
|
||||
include/usage_compressed.h: .config $(srctree)/include/usage.h applets/usage
|
||||
$(call cmd,gen_usage_compressed)
|
||||
|
@ -73,6 +73,7 @@ int main(int argc, char **argv)
|
||||
bb_error_msg_and_die("applet not found");
|
||||
}
|
||||
|
||||
int busybox_main(int argc, char **argv);
|
||||
int busybox_main(int argc, char **argv)
|
||||
{
|
||||
/*
|
||||
|
@ -38,6 +38,7 @@ static void header_verbose_list_ar(const file_header_t *file_header)
|
||||
#define AR_OPT_CREATE 0x20
|
||||
#define AR_OPT_INSERT 0x40
|
||||
|
||||
int ar_main(int argc, char **argv);
|
||||
int ar_main(int argc, char **argv)
|
||||
{
|
||||
archive_handle_t *archive_handle;
|
||||
|
@ -12,6 +12,7 @@
|
||||
#define BUNZIP2_OPT_STDOUT 1
|
||||
#define BUNZIP2_OPT_FORCE 2
|
||||
|
||||
int bunzip2_main(int argc, char **argv);
|
||||
int bunzip2_main(int argc, char **argv)
|
||||
{
|
||||
USE_DESKTOP(long long) int status;
|
||||
|
@ -26,6 +26,7 @@
|
||||
#define CPIO_OPT_CREATE_LEADING_DIR 0x20
|
||||
#define CPIO_OPT_PRESERVE_MTIME 0x40
|
||||
|
||||
int cpio_main(int argc, char **argv);
|
||||
int cpio_main(int argc, char **argv)
|
||||
{
|
||||
archive_handle_t *archive_handle;
|
||||
|
@ -1566,6 +1566,7 @@ static void configure_package(deb_file_t *deb_file)
|
||||
set_status(status_num, "installed", 3);
|
||||
}
|
||||
|
||||
int dpkg_main(int argc, char **argv);
|
||||
int dpkg_main(int argc, char **argv)
|
||||
{
|
||||
deb_file_t **deb_file = NULL;
|
||||
|
@ -13,6 +13,7 @@
|
||||
#define DPKG_DEB_OPT_EXTRACT 8
|
||||
#define DPKG_DEB_OPT_EXTRACT_VERBOSE 16
|
||||
|
||||
int dpkg_deb_main(int argc, char **argv);
|
||||
int dpkg_deb_main(int argc, char **argv)
|
||||
{
|
||||
archive_handle_t *ar_archive;
|
||||
|
@ -36,6 +36,7 @@
|
||||
#define GUNZIP_OPT_DECOMPRESS 8
|
||||
#define GUNZIP_OPT_VERBOSE 0x10
|
||||
|
||||
int gunzip_main(int argc, char **argv);
|
||||
int gunzip_main(int argc, char **argv)
|
||||
{
|
||||
USE_DESKTOP(long long) int status;
|
||||
|
@ -2086,6 +2086,7 @@ static void abort_gzip(int ATTRIBUTE_UNUSED ignored)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
int gzip_main(int argc, char **argv);
|
||||
int gzip_main(int argc, char **argv)
|
||||
{
|
||||
enum {
|
||||
|
@ -80,6 +80,7 @@ static void fileaction_dobackup(char *filename, int fileref);
|
||||
static void fileaction_setowngrp(char *filename, int fileref);
|
||||
static void loop_through_files(int filetag, void (*fileaction)(char *filename, int fileref));
|
||||
|
||||
int rpm_main(int argc, char **argv);
|
||||
int rpm_main(int argc, char **argv)
|
||||
{
|
||||
int opt = 0, func = 0, rpm_fd, offset;
|
||||
|
@ -49,6 +49,7 @@ static void skip_header(int rpm_fd)
|
||||
}
|
||||
|
||||
/* No getopt required */
|
||||
int rpm2cpio_main(int argc, char **argv);
|
||||
int rpm2cpio_main(int argc, char **argv)
|
||||
{
|
||||
struct rpm_lead lead;
|
||||
|
@ -752,6 +752,7 @@ static const struct option tar_long_options[] = {
|
||||
};
|
||||
#endif
|
||||
|
||||
int tar_main(int argc, char **argv);
|
||||
int tar_main(int argc, char **argv)
|
||||
{
|
||||
char (*get_header_ptr)(archive_handle_t *) = get_header_tar;
|
||||
|
@ -11,6 +11,7 @@
|
||||
#define GUNZIP_TO_STDOUT 1
|
||||
#define GUNZIP_FORCE 2
|
||||
|
||||
int uncompress_main(int argc, char **argv);
|
||||
int uncompress_main(int argc, char **argv)
|
||||
{
|
||||
int status = EXIT_SUCCESS;
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
#define UNLZMA_OPT_STDOUT 1
|
||||
|
||||
int unlzma_main(int argc, char **argv);
|
||||
int unlzma_main(int argc, char **argv)
|
||||
{
|
||||
USE_DESKTOP(long long) int status;
|
||||
|
@ -93,6 +93,7 @@ static int unzip_extract(zip_header_t *zip_header, int src_fd, int dst_fd)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int unzip_main(int argc, char **argv);
|
||||
int unzip_main(int argc, char **argv)
|
||||
{
|
||||
zip_header_t zip_header;
|
||||
|
@ -15,6 +15,7 @@ enum {
|
||||
VT_WAITACTIVE = 0x5607 /* wait for vt active */
|
||||
};
|
||||
|
||||
int chvt_main(int argc, char **argv);
|
||||
int chvt_main(int argc, char **argv)
|
||||
{
|
||||
int fd, num;
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include "busybox.h"
|
||||
|
||||
|
||||
int clear_main(int argc, char **argv);
|
||||
int clear_main(int argc, char **argv)
|
||||
{
|
||||
return printf("\033[H\033[J") != 6;
|
||||
|
@ -15,6 +15,7 @@
|
||||
/* From <linux/vt.h> */
|
||||
enum { VT_DISALLOCATE = 0x5608 }; /* free memory associated to vt */
|
||||
|
||||
int deallocvt_main(int argc, char *argv[]);
|
||||
int deallocvt_main(int argc, char *argv[])
|
||||
{
|
||||
/* num = 0 deallocate all unused consoles */
|
||||
|
@ -22,18 +22,19 @@ struct kbentry {
|
||||
#define NR_KEYS 128
|
||||
#define MAX_NR_KEYMAPS 256
|
||||
|
||||
int dumpkmap_main(int argc, char **argv);
|
||||
int dumpkmap_main(int argc, char **argv)
|
||||
{
|
||||
struct kbentry ke;
|
||||
int i, j, fd;
|
||||
char flags[MAX_NR_KEYMAPS], magic[] = "bkeymap";
|
||||
char flags[MAX_NR_KEYMAPS];
|
||||
|
||||
if (argc >= 2 && *argv[1] == '-')
|
||||
if (argc >= 2 && argv[1][0] == '-')
|
||||
bb_show_usage();
|
||||
|
||||
fd = xopen(CURRENT_VC, O_RDWR);
|
||||
|
||||
write(1, magic, 7);
|
||||
write(1, "bkeymap", 7);
|
||||
|
||||
/* Here we want to set everything to 0 except for indexes:
|
||||
* [0-2] [4-6] [8-10] [12] */
|
||||
|
@ -30,6 +30,7 @@ struct psf_header {
|
||||
|
||||
static void loadnewfont(int fd);
|
||||
|
||||
int loadfont_main(int argc, char **argv);
|
||||
int loadfont_main(int argc, char **argv)
|
||||
{
|
||||
int fd;
|
||||
|
@ -25,6 +25,7 @@ struct kbentry {
|
||||
#define NR_KEYS 128
|
||||
#define MAX_NR_KEYMAPS 256
|
||||
|
||||
int loadkmap_main(int argc, char **argv);
|
||||
int loadkmap_main(int argc, char **argv)
|
||||
{
|
||||
struct kbentry ke;
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
#include "busybox.h"
|
||||
|
||||
int openvt_main(int argc, char **argv);
|
||||
int openvt_main(int argc, char **argv)
|
||||
{
|
||||
int fd;
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include <unistd.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int reset_main(int argc, char **argv);
|
||||
int reset_main(int argc, char **argv)
|
||||
{
|
||||
if (isatty(1)) {
|
||||
|
@ -9,6 +9,7 @@
|
||||
/* no options, no getopt */
|
||||
#include "busybox.h"
|
||||
|
||||
int resize_main(int argc, char **argv);
|
||||
int resize_main(int argc, char **argv)
|
||||
{
|
||||
struct termios old, new;
|
||||
|
@ -18,6 +18,7 @@ static const struct option setconsole_long_options[] = {
|
||||
|
||||
#define OPT_SETCONS_RESET 1
|
||||
|
||||
int setconsole_main(int argc, char **argv);
|
||||
int setconsole_main(int argc, char **argv)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
@ -9,9 +9,6 @@
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include "busybox.h"
|
||||
|
||||
@ -24,8 +21,8 @@ enum {
|
||||
KDSETKEYCODE = 0x4B4D /* write kernel keycode table entry */
|
||||
};
|
||||
|
||||
extern int
|
||||
setkeycodes_main(int argc, char** argv)
|
||||
int setkeycodes_main(int argc, char** argv);
|
||||
int setkeycodes_main(int argc, char** argv)
|
||||
{
|
||||
int fd, sc;
|
||||
struct kbkeycode a;
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include <string.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int basename_main(int argc, char **argv);
|
||||
int basename_main(int argc, char **argv)
|
||||
{
|
||||
size_t m, n;
|
||||
|
@ -77,6 +77,7 @@ static char *build_row(char *p, int *dp);
|
||||
#define J_WEEK_LEN (WEEK_LEN + 7)
|
||||
#define HEAD_SEP 2 /* spaces between day headings */
|
||||
|
||||
int cal_main(int argc, char **argv);
|
||||
int cal_main(int argc, char **argv)
|
||||
{
|
||||
struct tm *local_time;
|
||||
|
@ -34,6 +34,7 @@ int bb_cat(char **argv)
|
||||
return retval;
|
||||
}
|
||||
|
||||
int cat_main(int argc, char **argv);
|
||||
int cat_main(int argc, char **argv)
|
||||
{
|
||||
getopt32(argc, argv, "u");
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
#include "busybox.h"
|
||||
|
||||
int catv_main(int argc, char **argv);
|
||||
int catv_main(int argc, char **argv)
|
||||
{
|
||||
int retval = EXIT_SUCCESS, fd;
|
||||
|
@ -16,6 +16,7 @@
|
||||
/* FIXME - move to .h */
|
||||
extern int chown_main(int argc, char **argv);
|
||||
|
||||
int chgrp_main(int argc, char **argv);
|
||||
int chgrp_main(int argc, char **argv)
|
||||
{
|
||||
/* "chgrp [opts] abc file(s)" == "chown [opts] :abc file(s)" */
|
||||
|
@ -64,6 +64,7 @@ static int fileAction(const char *fileName, struct stat *statbuf, void* param, i
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
int chmod_main(int argc, char **argv);
|
||||
int chmod_main(int argc, char **argv)
|
||||
{
|
||||
int retval = EXIT_SUCCESS;
|
||||
|
@ -53,6 +53,7 @@ static int fileAction(const char *fileName, struct stat *statbuf,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
int chown_main(int argc, char **argv);
|
||||
int chown_main(int argc, char **argv)
|
||||
{
|
||||
char *groupName;
|
||||
|
@ -11,6 +11,7 @@
|
||||
|
||||
#include "busybox.h"
|
||||
|
||||
int chroot_main(int argc, char **argv);
|
||||
int chroot_main(int argc, char **argv)
|
||||
{
|
||||
if (argc < 2) {
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
#include "busybox.h"
|
||||
|
||||
int cksum_main(int argc, char **argv);
|
||||
int cksum_main(int argc, char **argv)
|
||||
{
|
||||
|
||||
|
@ -42,6 +42,7 @@ static const char opt_chars[] = "sl";
|
||||
#define CMP_OPT_s (1<<0)
|
||||
#define CMP_OPT_l (1<<1)
|
||||
|
||||
int cmp_main(int argc, char **argv);
|
||||
int cmp_main(int argc, char **argv)
|
||||
{
|
||||
FILE *fp1, *fp2, *outfile = stdout;
|
||||
|
@ -108,6 +108,7 @@ static void cmp_files(char **infiles)
|
||||
fclose(streams[1]);
|
||||
}
|
||||
|
||||
int comm_main(int argc, char **argv);
|
||||
int comm_main(int argc, char **argv)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include "busybox.h"
|
||||
#include "libcoreutils/coreutils.h"
|
||||
|
||||
int cp_main(int argc, char **argv);
|
||||
int cp_main(int argc, char **argv)
|
||||
{
|
||||
struct stat source_stat;
|
||||
|
@ -162,6 +162,7 @@ static void cut_file(FILE * file)
|
||||
|
||||
static const char _op_on_field[] = " only when operating on fields";
|
||||
|
||||
int cut_main(int argc, char **argv);
|
||||
int cut_main(int argc, char **argv)
|
||||
{
|
||||
char *sopt, *ltok;
|
||||
|
@ -44,6 +44,7 @@ static void maybe_set_utc(int opt)
|
||||
xputenv((char*)"TZ=UTC0");
|
||||
}
|
||||
|
||||
int date_main(int argc, char **argv);
|
||||
int date_main(int argc, char **argv)
|
||||
{
|
||||
time_t tm;
|
||||
|
@ -50,6 +50,7 @@ static ssize_t full_write_or_warn(int fd, const void *buf, size_t len,
|
||||
#define XATOU_SFX xatoul_sfx
|
||||
#endif
|
||||
|
||||
int dd_main(int argc, char **argv);
|
||||
int dd_main(int argc, char **argv)
|
||||
{
|
||||
enum {
|
||||
|
@ -33,6 +33,7 @@ static long kscale(long b, long bs)
|
||||
}
|
||||
#endif
|
||||
|
||||
int df_main(int argc, char **argv);
|
||||
int df_main(int argc, char **argv)
|
||||
{
|
||||
long blocks_used;
|
||||
|
@ -1170,6 +1170,7 @@ static void diffdir(char *p1, char *p2)
|
||||
#endif
|
||||
|
||||
|
||||
int diff_main(int argc, char **argv);
|
||||
int diff_main(int argc, char **argv)
|
||||
{
|
||||
bool gotstdin = 0;
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <stdlib.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int dirname_main(int argc, char **argv);
|
||||
int dirname_main(int argc, char **argv)
|
||||
{
|
||||
if (argc != 2) {
|
||||
|
@ -82,6 +82,7 @@ static int convert(char *fn)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int dos2unix_main(int argc, char *argv[]);
|
||||
int dos2unix_main(int argc, char *argv[])
|
||||
{
|
||||
int o;
|
||||
|
@ -143,6 +143,7 @@ static long du(const char * const filename)
|
||||
return sum;
|
||||
}
|
||||
|
||||
int du_main(int argc, char **argv);
|
||||
int du_main(int argc, char **argv)
|
||||
{
|
||||
long total;
|
||||
|
@ -112,6 +112,7 @@ just_echo:
|
||||
return 0;
|
||||
}
|
||||
|
||||
int echo_main(int argc, char** argv);
|
||||
int echo_main(int argc, char** argv)
|
||||
{
|
||||
(void)bb_echo(argv);
|
||||
|
@ -41,6 +41,7 @@ static const struct option env_long_options[] = {
|
||||
};
|
||||
#endif
|
||||
|
||||
int env_main(int argc, char** argv);
|
||||
int env_main(int argc, char** argv)
|
||||
{
|
||||
static char *cleanenv[1] = { NULL };
|
||||
|
@ -74,6 +74,7 @@ static int toarith(VALUE * v);
|
||||
static void freev(VALUE * v);
|
||||
static void tostring(VALUE * v);
|
||||
|
||||
int expr_main(int argc, char **argv);
|
||||
int expr_main(int argc, char **argv)
|
||||
{
|
||||
VALUE *v;
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include <stdlib.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int false_main(int ATTRIBUTE_UNUSED argc, char ATTRIBUTE_UNUSED **argv);
|
||||
int false_main(int ATTRIBUTE_UNUSED argc, char ATTRIBUTE_UNUSED **argv)
|
||||
{
|
||||
return EXIT_FAILURE;
|
||||
|
@ -38,6 +38,7 @@ static int adjust_column(int column, char c)
|
||||
return column;
|
||||
}
|
||||
|
||||
int fold_main(int argc, char **argv);
|
||||
int fold_main(int argc, char **argv)
|
||||
{
|
||||
char *w_opt;
|
||||
|
@ -31,6 +31,7 @@ static const struct suffix_mult head_suffixes[] = {
|
||||
|
||||
static const char header_fmt_str[] = "\n==> %s <==\n";
|
||||
|
||||
int head_main(int argc, char **argv);
|
||||
int head_main(int argc, char **argv)
|
||||
{
|
||||
unsigned long count = 10;
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include <unistd.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv);
|
||||
int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv)
|
||||
{
|
||||
if (argc > 1) {
|
||||
|
@ -39,6 +39,7 @@ static short printf_full(unsigned int id, const char *arg, const char prefix)
|
||||
return status;
|
||||
}
|
||||
|
||||
int id_main(int argc, char **argv);
|
||||
int id_main(int argc, char **argv)
|
||||
{
|
||||
struct passwd *p;
|
||||
|
@ -25,6 +25,7 @@ static const struct option install_long_options[] = {
|
||||
};
|
||||
#endif
|
||||
|
||||
int install_main(int argc, char **argv);
|
||||
int install_main(int argc, char **argv)
|
||||
{
|
||||
struct stat statbuf;
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include <stdio.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int length_main(int argc, char **argv);
|
||||
int length_main(int argc, char **argv)
|
||||
{
|
||||
if ((argc != 2) || (**(++argv) == '-')) {
|
||||
|
@ -19,6 +19,7 @@
|
||||
#define LN_BACKUP 8
|
||||
#define LN_SUFFIX 16
|
||||
|
||||
int ln_main(int argc, char **argv);
|
||||
int ln_main(int argc, char **argv)
|
||||
{
|
||||
int status = EXIT_SUCCESS;
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include <unistd.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int logname_main(int argc, char ATTRIBUTE_UNUSED **argv);
|
||||
int logname_main(int argc, char ATTRIBUTE_UNUSED **argv)
|
||||
{
|
||||
const char *p;
|
||||
|
@ -773,6 +773,7 @@ static const unsigned opt_flags[] = {
|
||||
};
|
||||
|
||||
|
||||
int ls_main(int argc, char **argv);
|
||||
int ls_main(int argc, char **argv)
|
||||
{
|
||||
struct dnode **dnd;
|
||||
|
@ -78,6 +78,7 @@ static uint8_t *hash_file(const char *filename, hash_algo_t hash_algo)
|
||||
return hash_value;
|
||||
}
|
||||
|
||||
int md5_sha1_sum_main(int argc, char **argv);
|
||||
int md5_sha1_sum_main(int argc, char **argv)
|
||||
{
|
||||
int return_value = EXIT_SUCCESS;
|
||||
|
@ -29,6 +29,7 @@ static const struct option mkdir_long_options[] = {
|
||||
};
|
||||
#endif
|
||||
|
||||
int mkdir_main(int argc, char **argv);
|
||||
int mkdir_main(int argc, char **argv)
|
||||
{
|
||||
mode_t mode = (mode_t)(-1);
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include "busybox.h"
|
||||
#include "libcoreutils/coreutils.h"
|
||||
|
||||
int mkfifo_main(int argc, char **argv);
|
||||
int mkfifo_main(int argc, char **argv)
|
||||
{
|
||||
mode_t mode;
|
||||
|
@ -17,6 +17,7 @@
|
||||
static const char modes_chars[] = { 'p', 'c', 'u', 'b', 0, 1, 1, 2 };
|
||||
static const mode_t modes_cubp[] = { S_IFIFO, S_IFCHR, S_IFBLK };
|
||||
|
||||
int mknod_main(int argc, char **argv);
|
||||
int mknod_main(int argc, char **argv)
|
||||
{
|
||||
mode_t mode;
|
||||
|
@ -35,6 +35,7 @@ static const struct option mv_long_options[] = {
|
||||
|
||||
static const char fmt[] = "cannot overwrite %sdirectory with %sdirectory";
|
||||
|
||||
int mv_main(int argc, char **argv);
|
||||
int mv_main(int argc, char **argv)
|
||||
{
|
||||
struct stat dest_stat;
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include <sys/resource.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int nice_main(int argc, char **argv);
|
||||
int nice_main(int argc, char **argv)
|
||||
{
|
||||
int old_priority, adjustment;
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
#include "busybox.h"
|
||||
|
||||
int nohup_main(int argc, char **argv);
|
||||
int nohup_main(int argc, char **argv)
|
||||
{
|
||||
int nullfd;
|
||||
|
@ -156,6 +156,7 @@ static const char od_o2si[] = {
|
||||
0xb, 1, 8, 9,
|
||||
};
|
||||
|
||||
int od_main(int argc, char **argv);
|
||||
int od_main(int argc, char **argv)
|
||||
{
|
||||
int ch;
|
||||
|
@ -1207,8 +1207,8 @@ dump_strings(void)
|
||||
check_and_close();
|
||||
}
|
||||
|
||||
int
|
||||
od_main(int argc, char **argv)
|
||||
int od_main(int argc, char **argv);
|
||||
int od_main(int argc, char **argv)
|
||||
{
|
||||
static const struct suffix_mult bkm[] = {
|
||||
{ "b", 512 },
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include <stdlib.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int printenv_main(int argc, char **argv);
|
||||
int printenv_main(int argc, char **argv)
|
||||
{
|
||||
extern char **environ;
|
||||
|
@ -109,6 +109,7 @@ static void print_esc_string(char *str)
|
||||
}
|
||||
}
|
||||
|
||||
int printf_main(int argc, char **argv);
|
||||
int printf_main(int argc, char **argv)
|
||||
{
|
||||
char *format;
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include <stdlib.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int pwd_main(int argc, char **argv);
|
||||
int pwd_main(int argc, char **argv)
|
||||
{
|
||||
char *buf;
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
#include "busybox.h"
|
||||
|
||||
int realpath_main(int argc, char **argv);
|
||||
int realpath_main(int argc, char **argv)
|
||||
{
|
||||
int retval = EXIT_SUCCESS;
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include <unistd.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int rm_main(int argc, char **argv);
|
||||
int rm_main(int argc, char **argv)
|
||||
{
|
||||
int status = 0;
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include <libgen.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int rmdir_main(int argc, char **argv);
|
||||
int rmdir_main(int argc, char **argv)
|
||||
{
|
||||
int status = EXIT_SUCCESS;
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include <stdlib.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int seq_main(int argc, char **argv);
|
||||
int seq_main(int argc, char **argv)
|
||||
{
|
||||
double last, first, increment, i;
|
||||
|
@ -33,6 +33,7 @@ static const struct suffix_mult sfx[] = {
|
||||
};
|
||||
#endif
|
||||
|
||||
int sleep_main(int argc, char **argv);
|
||||
int sleep_main(int argc, char **argv)
|
||||
{
|
||||
unsigned int duration;
|
||||
|
@ -271,6 +271,7 @@ static unsigned str2u(char **str)
|
||||
}
|
||||
#endif
|
||||
|
||||
int sort_main(int argc, char **argv);
|
||||
int sort_main(int argc, char **argv)
|
||||
{
|
||||
FILE *fp, *outfile = stdout;
|
||||
|
@ -515,6 +515,7 @@ static int do_stat(char const *filename, char const *format)
|
||||
return 1;
|
||||
}
|
||||
|
||||
int stat_main(int argc, char **argv);
|
||||
int stat_main(int argc, char **argv)
|
||||
{
|
||||
int i;
|
||||
|
@ -907,6 +907,7 @@ static void set_control_char_or_die(const struct control_info *info,
|
||||
#define STTY_verbose_output (1<<2)
|
||||
#define STTY_recoverable_output (1<<3)
|
||||
#define STTY_noargs (1<<4)
|
||||
int stty_main(int argc, char **argv);
|
||||
int stty_main(int argc, char **argv)
|
||||
{
|
||||
struct termios mode;
|
||||
|
@ -74,6 +74,7 @@ static unsigned sum_file(const char *file, const unsigned type)
|
||||
#undef buf
|
||||
}
|
||||
|
||||
int sum_main(int argc, char **argv);
|
||||
int sum_main(int argc, char **argv)
|
||||
{
|
||||
unsigned n;
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include <unistd.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int sync_main(int argc, char **argv);
|
||||
int sync_main(int argc, char **argv)
|
||||
{
|
||||
bb_warn_ignoring_args(argc - 1);
|
||||
|
@ -68,6 +68,7 @@ static unsigned eat_num(const char *p) {
|
||||
return xatou_sfx(p, tail_suffixes);
|
||||
}
|
||||
|
||||
int tail_main(int argc, char **argv);
|
||||
int tail_main(int argc, char **argv)
|
||||
{
|
||||
unsigned count = 10;
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include "busybox.h"
|
||||
#include <signal.h>
|
||||
|
||||
int tee_main(int argc, char **argv);
|
||||
int tee_main(int argc, char **argv)
|
||||
{
|
||||
const char *mode = "w\0a";
|
||||
|
@ -578,6 +578,7 @@ static int is_a_group_member(gid_t gid)
|
||||
|
||||
/* applet entry point */
|
||||
|
||||
int test_main(int argc, char **argv);
|
||||
int test_main(int argc, char **argv)
|
||||
{
|
||||
return bb_test(argc, argv);
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include <stdlib.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int touch_main(int argc, char **argv);
|
||||
int touch_main(int argc, char **argv)
|
||||
{
|
||||
int fd;
|
||||
|
@ -193,6 +193,7 @@ static int complement(char *buffer, int buffer_len)
|
||||
return ix;
|
||||
}
|
||||
|
||||
int tr_main(int argc, char **argv);
|
||||
int tr_main(int argc, char **argv)
|
||||
{
|
||||
unsigned char *ptr;
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include <stdlib.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int true_main(int argc, char **argv);
|
||||
int true_main(int argc, char **argv)
|
||||
{
|
||||
return EXIT_SUCCESS;
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include <unistd.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int tty_main(int argc, char **argv);
|
||||
int tty_main(int argc, char **argv)
|
||||
{
|
||||
const char *s;
|
||||
|
@ -54,6 +54,7 @@ static const unsigned short int utsname_offset[] = {
|
||||
offsetof(uname_info_t,processor)
|
||||
};
|
||||
|
||||
int uname_main(int argc, char **argv);
|
||||
int uname_main(int argc, char **argv)
|
||||
{
|
||||
uname_info_t uname_info;
|
||||
|
@ -26,6 +26,7 @@ static FILE *xgetoptfile_uniq_s(char **argv, int read0write2)
|
||||
return (read0write2) ? stdout : stdin;
|
||||
}
|
||||
|
||||
int uniq_main(int argc, char **argv);
|
||||
int uniq_main(int argc, char **argv)
|
||||
{
|
||||
FILE *in, *out;
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <unistd.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int usleep_main(int argc, char **argv);
|
||||
int usleep_main(int argc, char **argv)
|
||||
{
|
||||
if (argc != 2) {
|
||||
|
@ -123,6 +123,7 @@ static void read_base64(FILE *src_stream, FILE *dst_stream)
|
||||
}
|
||||
}
|
||||
|
||||
int uudecode_main(int argc, char **argv);
|
||||
int uudecode_main(int argc, char **argv)
|
||||
{
|
||||
FILE *src_stream;
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
#define SRC_BUF_SIZE 45 // This *MUST* be a multiple of 3
|
||||
#define DST_BUF_SIZE 4 * ((SRC_BUF_SIZE + 2) / 3)
|
||||
int uuencode_main(int argc, char **argv);
|
||||
int uuencode_main(int argc, char **argv)
|
||||
{
|
||||
const size_t src_buf_size = SRC_BUF_SIZE;
|
||||
|
@ -23,6 +23,7 @@
|
||||
//
|
||||
// (procps 3.x and procps 2.x are forks, not newer/older versions of the same)
|
||||
|
||||
int watch_main(int argc, char **argv);
|
||||
int watch_main(int argc, char **argv)
|
||||
{
|
||||
unsigned opt;
|
||||
|
@ -68,6 +68,7 @@ enum {
|
||||
WC_LENGTH = 3
|
||||
};
|
||||
|
||||
int wc_main(int argc, char **argv);
|
||||
int wc_main(int argc, char **argv)
|
||||
{
|
||||
FILE *fp;
|
||||
|
@ -38,6 +38,7 @@ static const char * idle_string (time_t t)
|
||||
return "old";
|
||||
}
|
||||
|
||||
int who_main(int argc, char **argv);
|
||||
int who_main(int argc, char **argv)
|
||||
{
|
||||
struct utmp *ut;
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <unistd.h>
|
||||
#include "busybox.h"
|
||||
|
||||
int whoami_main(int argc, char **argv);
|
||||
int whoami_main(int argc, char **argv)
|
||||
{
|
||||
if (argc > 1)
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
#include "busybox.h"
|
||||
|
||||
int yes_main(int argc, char **argv);
|
||||
int yes_main(int argc, char **argv)
|
||||
{
|
||||
static const char fmt_str[] = " %s";
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int mktemp_main(int argc, char **argv);
|
||||
int mktemp_main(int argc, char **argv)
|
||||
{
|
||||
unsigned long flags = getopt32(argc, argv, "dqt");
|
||||
|
@ -18,6 +18,7 @@
|
||||
/* Read a block of data from stdin, write it to stdout.
|
||||
* Activity is indicated by a '.' to stderr
|
||||
*/
|
||||
int pipe_progress_main(int argc, char **argv);
|
||||
int pipe_progress_main(int argc, char **argv)
|
||||
{
|
||||
RESERVE_CONFIG_BUFFER(buf, PIPE_PROGRESS_SIZE);
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user