OSDN Git Service

Merge remote-tracking branch 'toybox/master' into HEAD
[android-x86/external-toybox.git] / generated / globals.h
index 145467a..5e4f8ce 100644 (file)
@@ -44,6 +44,9 @@ struct skeleton_data {
 struct dmesg_data {
   long level;
   long size;
+
+  int use_color;
+  time_t tea;
 };
 
 // toys/lsb/hostname.c
@@ -66,6 +69,11 @@ struct killall_data {
 // toys/lsb/md5sum.c
 
 struct md5sum_data {
+  struct arg_list *c;
+
+  int sawline;
+
+  // Crypto variables blanked after summing
   unsigned state[5];
   unsigned oldstate[5];
   uint64_t count;
@@ -134,6 +142,55 @@ struct umount_data {
   char *types;
 };
 
+// toys/net/ftpget.c
+
+struct ftpget_data {
+  char *user;
+  char *port;
+  char *password;
+
+  int fd;
+};
+
+// toys/net/ifconfig.c
+
+struct ifconfig_data {
+  int sockfd;
+};
+
+// toys/net/microcom.c
+
+struct microcom_data {
+  char *s;
+
+  int fd;
+  struct termios original_stdin_state, original_fd_state;
+};
+
+// toys/net/netcat.c
+
+struct netcat_data {
+  char *filename;        // -f read from filename instead of network
+  long quit_delay;       // -q Exit after EOF from stdin after # seconds.
+  char *source_address;  // -s Bind to a specific source address.
+  long port;             // -p Bind to a specific source port.
+  long idle;             // -W Wait # seconds for more data
+  long wait;             // -w Wait # seconds for a connection.
+};
+
+// toys/net/netstat.c
+
+struct netstat_data {
+  struct num_cache *inodes;
+  int wpad;
+};;
+
+// toys/net/tunctl.c
+
+struct tunctl_data {
+  char *user;
+};
+
 // toys/other/acpi.c
 
 struct acpi_data {
@@ -155,6 +212,12 @@ struct blockdev_data {
   long bsz;
 };
 
+// toys/other/chrt.c
+
+struct chrt_data {
+  long pid;
+};
+
 // toys/other/dos2unix.c
 
 struct dos2unix_data {
@@ -164,6 +227,7 @@ struct dos2unix_data {
 // toys/other/fallocate.c
 
 struct fallocate_data {
+  long offset;
   long size;
 };
 
@@ -192,12 +256,6 @@ struct hwclock_data {
   int utc;
 };
 
-// toys/other/ifconfig.c
-
-struct ifconfig_data {
-  int sockfd;
-};
-
 // toys/other/ionice.c
 
 struct ionice_data {
@@ -275,16 +333,6 @@ struct modinfo_data {
   long mod;
 };
 
-// toys/other/netcat.c
-
-struct netcat_data {
-  char *filename;        // -f read from filename instead of network
-  long quit_delay;       // -q Exit after EOF from stdin after # seconds.
-  char *source_address;  // -s Bind to a specific source address.
-  long port;             // -p Bind to a specific source port.
-  long wait;             // -w Wait # seconds for a connection.
-};
-
 // toys/other/nsenter.c
 
 struct nsenter_data {
@@ -317,9 +365,8 @@ struct stat_data {
     struct stat st;
     struct statfs sf;
   } stat;
-  struct passwd *user_name;
-  struct group *group_name;
-  char *file;
+  char *file, *pattern;
+  int patlen;
 };
 
 // toys/other/swapon.c
@@ -360,6 +407,7 @@ struct truncate_data {
 // toys/other/xxd.c
 
 struct xxd_data {
+  long s;
   long g;
   long l;
   long c;
@@ -451,8 +499,18 @@ struct crontab_data {
 // toys/pending/dd.c
 
 struct dd_data {
-  int sig;
-};
+  int show_xfer;
+  int show_records;
+  unsigned long long bytes, c_count, in_full, in_part, out_full, out_part;
+  struct timeval start;
+  struct {
+    char *name;
+    int fd;
+    unsigned char *buff, *bp;
+    long sz, count;
+    unsigned long long offset;
+  } in, out;
+};;
 
 // toys/pending/dhcp.c
 
@@ -524,12 +582,6 @@ struct fdisk_data {
   long cylinders;
 };
 
-// toys/pending/file.c
-
-struct file_data {
-  int max_name_len;
-};
-
 // toys/pending/fold.c
 
 struct fold_data {
@@ -552,17 +604,10 @@ struct fsck_data {
   long max_nr_run;
 };
 
-// toys/pending/ftpget.c
+// toys/pending/getfattr.c
 
-struct ftpget_data {
-  long port; //  char *port;
-  char *password;
-  char *username;
-
-  FILE *sockfp;
-  int c;
-  int isget;
-  char buf[sizeof(struct sockaddr_storage)];
+struct getfattr_data {
+  char *n;
 };
 
 // toys/pending/getty.c
@@ -587,6 +632,12 @@ struct groupadd_data {
   long gid;
 };
 
+// toys/pending/gzip.c
+
+struct gzip_data {
+  int level;
+};
+
 // toys/pending/host.c
 
 struct host_data {
@@ -695,12 +746,13 @@ struct mke2fs_data {
 // toys/pending/modprobe.c
 
 struct modprobe_data {
+  struct arg_list *dirs;
+
   struct arg_list *probes;
   struct arg_list *dbase[256];
   char *cmdopts;
   int nudeps;
   uint8_t symreq;
-  void (*dbg)(char *format, ...);
 };
 
 // toys/pending/more.c
@@ -710,13 +762,6 @@ struct more_data {
   int cin_fd;
 };
 
-// toys/pending/netstat.c
-
-struct netstat_data {
-  struct num_cache *inodes;
-  int some_process_unidentified;
-};;
-
 // toys/pending/openvt.c
 
 struct openvt_data {
@@ -742,6 +787,12 @@ struct route_data {
   char *family;
 };
 
+// toys/pending/setfattr.c
+
+struct setfattr_data {
+  char *x, *v, *n;
+};
+
 // toys/pending/sh.c
 
 struct sh_data {
@@ -995,7 +1046,6 @@ struct date_data {
   char *setfmt;
   char *showdate;
 
-  char *tz;
   unsigned nano;
 };
 
@@ -1014,7 +1064,7 @@ struct df_data {
 struct du_data {
   long maxdepth;
 
-  long depth, total;
+  unsigned long depth, total;
   dev_t st_dev;
   void *inodes;
 };
@@ -1033,6 +1083,12 @@ struct expand_data {
   unsigned tabcount, *tab;
 };
 
+// toys/posix/file.c
+
+struct file_data {
+  int max_name_len;
+};
+
 // toys/posix/find.c
 
 struct find_data {
@@ -1051,13 +1107,17 @@ struct grep_data {
   long a;
   long b;
   long c;
+  struct arg_list *M;
+  struct arg_list *S;
 
   char indelim, outdelim;
+  int found;
 };
 
 // toys/posix/head.c
 
 struct head_data {
+  long bytes;
   long lines;
   int file_no;
 };
@@ -1078,13 +1138,14 @@ struct kill_data {
 // toys/posix/ls.c
 
 struct ls_data {
+  long ll;
   char *color;
 
   struct dirtree *files, *singledir;
 
   unsigned screen_width;
   int nl_title;
-  char uid_buf[12], gid_buf[12], *escmore;
+  char *escmore;
 };
 
 // toys/posix/mkdir.c
@@ -1142,7 +1203,9 @@ struct od_data {
 // toys/posix/paste.c
 
 struct paste_data {
-  char *delim;
+  char *d;
+
+  int files;
 };
 
 // toys/posix/patch.c
@@ -1150,6 +1213,7 @@ struct paste_data {
 struct patch_data {
   char *infile;
   long prefix;
+  char *dir;
 
   struct double_list *current_hunk;
   long oldline, oldlen, newline, newlen;
@@ -1263,6 +1327,7 @@ struct split_data {
 
 struct strings_data {
   long num;
+  char *t;
 };
 
 // toys/posix/tail.c
@@ -1312,7 +1377,7 @@ struct uudecode_data {
 // toys/posix/wc.c
 
 struct wc_data {
-  unsigned long totals[3];
+  unsigned long totals[4];
 };
 
 // toys/posix/xargs.c
@@ -1345,15 +1410,21 @@ extern union global_union {
        struct seq_data seq;
        struct su_data su;
        struct umount_data umount;
+       struct ftpget_data ftpget;
+       struct ifconfig_data ifconfig;
+       struct microcom_data microcom;
+       struct netcat_data netcat;
+       struct netstat_data netstat;
+       struct tunctl_data tunctl;
        struct acpi_data acpi;
        struct base64_data base64;
        struct blockdev_data blockdev;
+       struct chrt_data chrt;
        struct dos2unix_data dos2unix;
        struct fallocate_data fallocate;
        struct free_data free;
        struct hexedit_data hexedit;
        struct hwclock_data hwclock;
-       struct ifconfig_data ifconfig;
        struct ionice_data ionice;
        struct login_data login;
        struct losetup_data losetup;
@@ -1363,7 +1434,6 @@ extern union global_union {
        struct mkpasswd_data mkpasswd;
        struct mkswap_data mkswap;
        struct modinfo_data modinfo;
-       struct netcat_data netcat;
        struct nsenter_data nsenter;
        struct oneit_data oneit;
        struct shred_data shred;
@@ -1388,12 +1458,12 @@ extern union global_union {
        struct dumpleases_data dumpleases;
        struct expr_data expr;
        struct fdisk_data fdisk;
-       struct file_data file;
        struct fold_data fold;
        struct fsck_data fsck;
-       struct ftpget_data ftpget;
+       struct getfattr_data getfattr;
        struct getty_data getty;
        struct groupadd_data groupadd;
+       struct gzip_data gzip;
        struct host_data host;
        struct iconv_data iconv;
        struct ip_data ip;
@@ -1406,10 +1476,10 @@ extern union global_union {
        struct mke2fs_data mke2fs;
        struct modprobe_data modprobe;
        struct more_data more;
-       struct netstat_data netstat;
        struct openvt_data openvt;
        struct ping_data ping;
        struct route_data route;
+       struct setfattr_data setfattr;
        struct sh_data sh;
        struct sulogin_data sulogin;
        struct syslogd_data syslogd;
@@ -1437,6 +1507,7 @@ extern union global_union {
        struct du_data du;
        struct env_data env;
        struct expand_data expand;
+       struct file_data file;
        struct find_data find;
        struct grep_data grep;
        struct head_data head;