OSDN Git Service

du: 32 bit systems were maxing out at 2GB when they should max out at 2TB
[android-x86/external-toybox.git] / generated / globals.h
index e641695..218792f 100644 (file)
@@ -3,6 +3,7 @@
 struct getprop_data {
   size_t size;
   char **nv; // name/value pairs: even=name, odd=value
+  struct selabel_handle *handle;
 };
 
 // toys/example/hello.c
@@ -156,6 +157,7 @@ struct fallocate_data {
 struct free_data {
   unsigned bits;
   unsigned long long units;
+  char *buf;
 };
 
 // toys/other/hexedit.c
@@ -242,6 +244,12 @@ struct mkpasswd_data {
   char *salt;
 };
 
+// toys/other/mkswap.c
+
+struct mkswap_data {
+  char *L;
+};
+
 // toys/other/modinfo.c
 
 struct modinfo_data {
@@ -312,12 +320,6 @@ struct switch_root_data {
   dev_t rootdev;
 };
 
-// toys/other/taskset.c
-
-struct taskset_data {
-  int nproc;
-};
-
 // toys/other/timeout.c
 
 struct timeout_data {
@@ -368,15 +370,9 @@ struct arping_data {
     char *src_ip;
 
     int sockfd;
-    unsigned start;
-    unsigned end;
-    unsigned sent_at;
-    unsigned sent_nr;
-    unsigned rcvd_nr;
-    unsigned brd_sent;
-    unsigned rcvd_req;
-    unsigned brd_rcv;
-    unsigned unicast_flag;
+    unsigned long start, end;
+    unsigned sent_at, sent_nr, rcvd_nr, brd_sent, rcvd_req, brd_rcv,
+             unicast_flag;
 };
 
 // toys/pending/bootchartd.c
@@ -459,6 +455,18 @@ struct dhcp_data {
     char *vendor_cls;
 };
 
+// toys/pending/dhcp6.c
+
+struct dhcp6_data {
+  char *interface_name, *pidfile, *script;
+  long retry, timeout, errortimeout;
+  char *req_ip;
+  int length, state, request_length, sock, sock1, status, retval, retries;
+  struct timeval tv;
+  uint8_t transction_id[3];
+  struct sockaddr_in6 input_socket6;
+};
+
 // toys/pending/dhcpd.c
 
 struct dhcpd_data {
@@ -498,6 +506,12 @@ struct fdisk_data {
   long cylinders;
 };
 
+// toys/pending/file.c
+
+struct file_data {
+  int max_name_len;
+};
+
 // toys/pending/fold.c
 
 struct fold_data {
@@ -690,14 +704,6 @@ struct openvt_data {
   unsigned long vt_num;
 };
 
-// toys/pending/pgrep.c
-
-struct pgrep_data {
-  long sid;       //-s
-  long ppid;      //-P
-  char *signame;
-};
-
 // toys/pending/ping.c
 
 struct ping_data {
@@ -711,17 +717,6 @@ struct ping_data {
   int sock;
 };
 
-// toys/pending/ps.c
-
-struct ps_data {
-  struct arg_list *o;
-
-  unsigned width;
-  dev_t tty;
-  void *fields;
-  long uptime;
-};
-
 // toys/pending/route.c
 
 struct route_data {
@@ -839,23 +834,6 @@ struct tftpd_data {
   struct passwd *pw;
 };
 
-// toys/pending/top.c
-
-struct top_data {
-  long iterations;
-  long delay;
-
-  long cmp_field;
-  long reverse;
-  long rows;
-  long smp;
-  long threads;
-  long m_flag;
-  long num_new_procs;
-  long scroll_offset;
-  struct termios inf;
-};
-
 // toys/pending/tr.c
 
 struct tr_data {
@@ -898,6 +876,13 @@ struct useradd_data {
   long gid;
 };
 
+// toys/pending/vi.c
+
+struct vi_data {
+  struct linestack *ls;
+  char *statline;
+};
+
 // toys/pending/watch.c
 
 struct watch_data {
@@ -993,6 +978,8 @@ struct df_data {
   struct arg_list *fstype;
 
   long units;
+  int column_widths[5];
+  int header_shown;
 };
 
 // toys/posix/du.c
@@ -1000,11 +987,17 @@ struct df_data {
 struct du_data {
   long maxdepth;
 
-  long depth, total;
+  unsigned long depth, total;
   dev_t st_dev;
   void *inodes;
 };
 
+// toys/posix/env.c
+
+struct env_data {
+  struct arg_list *u;
+};;
+
 // toys/posix/expand.c
 
 struct expand_data {
@@ -1018,7 +1011,7 @@ struct expand_data {
 struct find_data {
   char **filter;
   struct double_list *argdata;
-  int topdir, xdev, depth, envsize;
+  int topdir, xdev, depth;
   time_t now;
 };
 
@@ -1028,8 +1021,11 @@ struct grep_data {
   long m;
   struct arg_list *f;
   struct arg_list *e;
+  long a;
+  long b;
+  long c;
 
-  struct arg_list *regex;
+  char indelim, outdelim;
 };
 
 // toys/posix/head.c
@@ -1134,6 +1130,60 @@ struct patch_data {
   char *tempname;
 };
 
+// toys/posix/ps.c
+
+struct ps_data {
+  union {
+    struct {
+      struct arg_list *G;
+      struct arg_list *g;
+      struct arg_list *U;
+      struct arg_list *u;
+      struct arg_list *t;
+      struct arg_list *s;
+      struct arg_list *p;
+      struct arg_list *O;
+      struct arg_list *o;
+      struct arg_list *P;
+      struct arg_list *k;
+    } ps;
+    struct {
+      long n;
+      long d;
+      long s;
+      struct arg_list *u;
+      struct arg_list *p;
+      struct arg_list *o;
+      struct arg_list *k;
+    } top;
+    struct{
+      char *L;
+      struct arg_list *G;
+      struct arg_list *g;
+      struct arg_list *P;
+      struct arg_list *s;
+      struct arg_list *t;
+      struct arg_list *U;
+      struct arg_list *u;
+      char *d;
+
+      void *regexes, *snapshot;
+      int signal;
+      pid_t self, match;
+    } pgrep;
+  };
+
+  struct sysinfo si;
+  struct ptr_len gg, GG, pp, PP, ss, tt, uu, UU;
+  unsigned width, height;
+  dev_t tty;
+  void *fields, *kfields;
+  long long ticks, bits, time;
+  int kcount, forcek, sortpos;
+  int (*match_process)(long long *slot);
+  void (*show_process)(void *tb);
+};
+
 // toys/posix/renice.c
 
 struct renice_data {
@@ -1191,7 +1241,7 @@ struct tail_data {
   long lines;
   long bytes;
 
-  int file_no;
+  int file_no, ffd, *files;
 };
 
 // toys/posix/tee.c
@@ -1208,6 +1258,12 @@ struct touch_data {
   char *date;
 };
 
+// toys/posix/ulimit.c
+
+struct ulimit_data {
+  long pid;
+};
+
 // toys/posix/uniq.c
 
 struct uniq_data {
@@ -1273,6 +1329,7 @@ extern union global_union {
        struct makedevs_data makedevs;
        struct mix_data mix;
        struct mkpasswd_data mkpasswd;
+       struct mkswap_data mkswap;
        struct modinfo_data modinfo;
        struct netcat_data netcat;
        struct nsenter_data nsenter;
@@ -1281,7 +1338,6 @@ extern union global_union {
        struct stat_data stat;
        struct swapon_data swapon;
        struct switch_root_data switch_root;
-       struct taskset_data taskset;
        struct timeout_data timeout;
        struct truncate_data truncate;
        struct xxd_data xxd;
@@ -1294,11 +1350,13 @@ extern union global_union {
        struct crontab_data crontab;
        struct dd_data dd;
        struct dhcp_data dhcp;
+       struct dhcp6_data dhcp6;
        struct dhcpd_data dhcpd;
        struct diff_data diff;
        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;
@@ -1318,9 +1376,7 @@ extern union global_union {
        struct more_data more;
        struct netstat_data netstat;
        struct openvt_data openvt;
-       struct pgrep_data pgrep;
        struct ping_data ping;
-       struct ps_data ps;
        struct route_data route;
        struct sh_data sh;
        struct sulogin_data sulogin;
@@ -1331,10 +1387,10 @@ extern union global_union {
        struct telnetd_data telnetd;
        struct tftp_data tftp;
        struct tftpd_data tftpd;
-       struct top_data top;
        struct tr_data tr;
        struct traceroute_data traceroute;
        struct useradd_data useradd;
+       struct vi_data vi;
        struct watch_data watch;
        struct chgrp_data chgrp;
        struct chmod_data chmod;
@@ -1346,6 +1402,7 @@ extern union global_union {
        struct date_data date;
        struct df_data df;
        struct du_data du;
+       struct env_data env;
        struct expand_data expand;
        struct find_data find;
        struct grep_data grep;
@@ -1360,6 +1417,7 @@ extern union global_union {
        struct od_data od;
        struct paste_data paste;
        struct patch_data patch;
+       struct ps_data ps;
        struct renice_data renice;
        struct sed_data sed;
        struct sort_data sort;
@@ -1368,6 +1426,7 @@ extern union global_union {
        struct tail_data tail;
        struct tee_data tee;
        struct touch_data touch;
+       struct ulimit_data ulimit;
        struct uniq_data uniq;
        struct uudecode_data uudecode;
        struct wc_data wc;