OSDN Git Service

Regenerate generated files.
authorElliott Hughes <enh@google.com>
Tue, 1 Mar 2016 00:14:51 +0000 (16:14 -0800)
committerElliott Hughes <enh@google.com>
Tue, 1 Mar 2016 00:14:51 +0000 (16:14 -0800)
Change-Id: I8a889ae35d7846555c3807c4179579e4c7286ac2

.config
generated/config.h
generated/flags.h
generated/globals.h
generated/help.h
generated/newtoys.h

diff --git a/.config b/.config
index 43760de..df41b91 100644 (file)
--- a/.config
+++ b/.config
@@ -188,6 +188,7 @@ CONFIG_TR=y
 # CONFIG_USERADD is not set
 # CONFIG_USERDEL is not set
 # CONFIG_WATCH is not set
+# CONFIG_WGET is not set
 # CONFIG_XZCAT is not set
 
 #
index 5a8de80..a19012b 100644 (file)
 #define USE_USERDEL(...)
 #define CFG_WATCH 0
 #define USE_WATCH(...)
+#define CFG_WGET 0
+#define USE_WGET(...)
 #define CFG_XZCAT 0
 #define USE_XZCAT(...)
 #define CFG_ACPI 1
index a5e8659..4a8fde6 100644 (file)
 #undef FOR_lsmod
 #endif
 
-// lsof lp:t lp:t
+// lsof lp*t lp*t
 #undef OPTSTR_lsof
-#define OPTSTR_lsof "lp:t"
+#define OPTSTR_lsof "lp*t"
 #ifdef CLEANUP_lsof
 #undef CLEANUP_lsof
 #undef FOR_lsof
 #undef FLAG_m
 #endif
 
+// wget   f:
+#undef OPTSTR_wget
+#define OPTSTR_wget  0 
+#ifdef CLEANUP_wget
+#undef CLEANUP_wget
+#undef FOR_wget
+#undef FLAG_f
+#endif
+
 // which <1a <1a
 #undef OPTSTR_which
 #define OPTSTR_which "<1a"
 #define FLAG_m (1<<3)
 #endif
 
+#ifdef FOR_wget
+#ifndef TT
+#define TT this.wget
+#endif
+#define FLAG_f (FORCED_FLAG<<0)
+#endif
+
 #ifdef FOR_which
 #ifndef TT
 #define TT this.which
index 66be64b..059dd33 100644 (file)
@@ -635,7 +635,7 @@ struct logger_data {
 // toys/pending/lsof.c
 
 struct lsof_data {
-  char *pids;
+  struct arg_list *p;
 
   struct stat *sought_files;
 
@@ -889,6 +889,12 @@ struct watch_data {
   int interval;
 };
 
+// toys/pending/wget.c
+
+struct wget_data {
+  char *filename;
+};
+
 // toys/posix/chgrp.c
 
 struct chgrp_data {
@@ -1392,6 +1398,7 @@ extern union global_union {
        struct useradd_data useradd;
        struct vi_data vi;
        struct watch_data watch;
+       struct wget_data wget;
        struct chgrp_data chgrp;
        struct chmod_data chmod;
        struct cksum_data cksum;
index 46eeed7..bdb0780 100644 (file)
@@ -68,7 +68,7 @@
 
 #define HELP_passwd "usage: passwd [-a ALGO] [-dlu] <account name>\n\nupdate user's authentication tokens. Default : current user\n\n-a ALGO   Encryption method (des, md5, sha256, sha512) default: des\n-d           Set password to ''\n-l          Lock (disable) account\n-u              Unlock (enable) account\n\n"
 
-#define HELP_mount "usage: mount [-afFrsvw] [-t TYPE] [-o OPTIONS...] [[DEVICE] DIR]\n\nMount new filesystem(s) on directories. With no arguments, display existing\nmounts.\n\n-a     mount all entries in /etc/fstab (with -t, only entries of that TYPE)\n-O        only mount -a entries that have this option\n-f fake it (don't actually mount)\n-r      read only (same as -o ro)\n-w   read/write (default, same as -o rw)\n-t specify filesystem type\n-v     verbose\n\nOPTIONS is a comma separated list of options, which can also be supplied\nas --longopts.\n\nThis mount autodetects loopback mounts (a file on a directory) and\nbind mounts (file on file, directory on directory), so you don't need\nto say --bind or --loop. You can also \"mount -a /path\" to mount everything\nin /etc/fstab under /path, even if it's noauto.\n\n\n"
+#define HELP_mount "usage: mount [-afFrsvw] [-t TYPE] [-o OPTION,] [[DEVICE] DIR]\n\nMount new filesystem(s) on directories. With no arguments, display existing\nmounts.\n\n-a        mount all entries in /etc/fstab (with -t, only entries of that TYPE)\n-O        only mount -a entries that have this option\n-f fake it (don't actually mount)\n-r      read only (same as -o ro)\n-w   read/write (default, same as -o rw)\n-t specify filesystem type\n-v     verbose\n\nOPTIONS is a comma separated list of options, which can also be supplied\nas --longopts.\n\nThis mount autodetects loopback mounts (a file on a directory) and\nbind mounts (file on file, directory on directory), so you don't need\nto say --bind or --loop. You can also \"mount -a /path\" to mount everything\nin /etc/fstab under /path, even if it's noauto.\n\n\n"
 
 #define HELP_mktemp "usage: mktemp [-dqu] [-p DIR] [TEMPLATE]\n\nSafely create a new file \"DIR/TEMPLATE\" and print its name.\n\n-d   Create directory instead of file (--directory)\n-p      Put new file in DIR (--tmpdir)\n-q      Quiet, no error messages\n-u    Don't create anything, just print what would be created\n\nEach X in TEMPLATE is replaced with a random printable character. The\ndefault TEMPLATE is tmp.XXXXXX, and the default DIR is $TMPDIR if set,\nelse \"/tmp\".\n\n"
 
 
 #define HELP_xzcat "usage: xzcat [filename...]\n\nDecompress listed files to stdout. Use stdin if no files listed.\n\n\n\n"
 
+#define HELP_wget "usage: wget -f filename URL\n-f filename: specify the filename to be saved\nURL: HTTP uniform resource location and only HTTP, not HTTPS\n\nexamples:\n  wget -f index.html http://www.example.com\n  wget -f sample.jpg http://www.example.com:8080/sample.jpg\n\n"
+
 #define HELP_watch "usage: watch [-n SEC] [-t] PROG ARGS\n\nRun PROG periodically\n\n-n  Loop period in seconds (default 2)\n-t  Don't print header\n-e  Freeze updates on command error, and exit after enter.\n\n"
 
 #define HELP_vi "usage: vi FILE\n\nVisual text editor. Predates the existence of standardized cursor keys,\nso the controls are weird and historical.\n\n"
index 6ad9ea1..1714425 100644 (file)
@@ -127,7 +127,7 @@ USE_LOSETUP(NEWTOY(losetup, ">2S(sizelimit)#s(show)ro#j:fdca[!afj]", TOYFLAG_SBI
 USE_LS(NEWTOY(ls, USE_LS_COLOR("(color):;")"ZgoACFHLRSacdfhiklmnpqrstux1[-Cxm1][-Cxml][-Cxmo][-Cxmg][-cu][-ftS][-HL]", TOYFLAG_BIN|TOYFLAG_LOCALE))
 USE_LSATTR(NEWTOY(lsattr, "vldaR", TOYFLAG_BIN))
 USE_LSMOD(NEWTOY(lsmod, NULL, TOYFLAG_SBIN))
-USE_LSOF(NEWTOY(lsof, "lp:t", TOYFLAG_USR|TOYFLAG_BIN))
+USE_LSOF(NEWTOY(lsof, "lp*t", TOYFLAG_USR|TOYFLAG_BIN))
 USE_LSPCI(NEWTOY(lspci, "emkn"USE_LSPCI_TEXT("@i:"), TOYFLAG_USR|TOYFLAG_BIN))
 USE_LSUSB(NEWTOY(lsusb, NULL, TOYFLAG_USR|TOYFLAG_BIN))
 USE_MAKEDEVS(NEWTOY(makedevs, "<1>1d:", TOYFLAG_USR|TOYFLAG_BIN))
@@ -258,6 +258,7 @@ USE_VMSTAT(NEWTOY(vmstat, ">2n", TOYFLAG_BIN))
 USE_W(NEWTOY(w, NULL, TOYFLAG_USR|TOYFLAG_BIN))
 USE_WATCH(NEWTOY(watch, "^<1n#<0=2te", TOYFLAG_USR|TOYFLAG_BIN))
 USE_WC(NEWTOY(wc, USE_TOYBOX_I18N("m")"cwl[!cm]", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_LOCALE))
+USE_WGET(NEWTOY(wget, "f:", TOYFLAG_USR|TOYFLAG_BIN))
 USE_WHICH(NEWTOY(which, "<1a", TOYFLAG_USR|TOYFLAG_BIN))
 USE_WHO(NEWTOY(who, "a", TOYFLAG_USR|TOYFLAG_BIN))
 USE_WHOAMI(OLDTOY(whoami, logname, TOYFLAG_USR|TOYFLAG_BIN))