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