Elliott Hughes | 85cda1a | 2015-04-08 10:53:59 -0700 | [diff] [blame] | 1 | // toys/android/getprop.c |
| 2 | |
| 3 | struct getprop_data { |
| 4 | size_t size; |
Elliott Hughes | 10a5d41 | 2015-05-03 18:48:57 -0700 | [diff] [blame] | 5 | char **nv; // name/value pairs: even=name, odd=value |
Elliott Hughes | bae185a | 2016-02-19 21:37:17 -0800 | [diff] [blame] | 6 | struct selabel_handle *handle; |
Elliott Hughes | 85cda1a | 2015-04-08 10:53:59 -0700 | [diff] [blame] | 7 | }; |
| 8 | |
Elliott Hughes | 0803f53 | 2016-06-22 10:26:11 -0700 | [diff] [blame] | 9 | // toys/android/log.c |
| 10 | |
| 11 | struct log_data { |
| 12 | char *tag; |
| 13 | char *pri; |
| 14 | }; |
| 15 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 16 | // toys/example/hello.c |
| 17 | |
| 18 | struct hello_data { |
| 19 | int unused; |
| 20 | }; |
| 21 | |
| 22 | // toys/example/skeleton.c |
| 23 | |
| 24 | struct skeleton_data { |
| 25 | union { |
| 26 | struct { |
| 27 | char *b_string; |
| 28 | long c_number; |
| 29 | struct arg_list *d_list; |
| 30 | long e_count; |
| 31 | char *also_string; |
| 32 | char *blubber_string; |
| 33 | } s; |
| 34 | struct { |
| 35 | long b_number; |
| 36 | } a; |
| 37 | }; |
| 38 | |
| 39 | int more_globals; |
| 40 | }; |
| 41 | |
Elliott Hughes | 2737fdf | 2016-05-04 13:42:18 -0700 | [diff] [blame] | 42 | // toys/lsb/hostname.c |
| 43 | |
| 44 | struct hostname_data { |
| 45 | char *fname; |
| 46 | }; |
| 47 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 48 | // toys/lsb/killall.c |
| 49 | |
| 50 | struct killall_data { |
| 51 | char *sig; |
| 52 | |
| 53 | int signum; |
| 54 | pid_t cur_pid; |
| 55 | char **names; |
| 56 | short *err; |
| 57 | }; |
| 58 | |
| 59 | // toys/lsb/md5sum.c |
| 60 | |
| 61 | struct md5sum_data { |
Elliott Hughes | a126e5f | 2016-07-15 10:14:33 -0700 | [diff] [blame] | 62 | struct arg_list *c; |
| 63 | |
| 64 | int sawline; |
| 65 | |
| 66 | // Crypto variables blanked after summing |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 67 | unsigned state[5]; |
| 68 | unsigned oldstate[5]; |
| 69 | uint64_t count; |
| 70 | union { |
| 71 | char c[64]; |
| 72 | unsigned i[16]; |
| 73 | } buffer; |
| 74 | }; |
| 75 | |
Elliott Hughes | 40d36f2 | 2015-03-11 13:37:18 -0700 | [diff] [blame] | 76 | // toys/lsb/mknod.c |
| 77 | |
| 78 | struct mknod_data { |
Elliott Hughes | e3764cc | 2015-07-06 18:09:49 -0700 | [diff] [blame] | 79 | char *arg_context; |
Elliott Hughes | 40d36f2 | 2015-03-11 13:37:18 -0700 | [diff] [blame] | 80 | char *m; |
| 81 | }; |
| 82 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 83 | // toys/lsb/mktemp.c |
| 84 | |
| 85 | struct mktemp_data { |
Elliott Hughes | bf65a2e | 2015-02-09 12:14:46 -0800 | [diff] [blame] | 86 | char *tmpdir; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 87 | }; |
| 88 | |
| 89 | // toys/lsb/mount.c |
| 90 | |
| 91 | struct mount_data { |
| 92 | struct arg_list *optlist; |
| 93 | char *type; |
| 94 | char *bigO; |
| 95 | |
| 96 | unsigned long flags; |
| 97 | char *opts; |
| 98 | int okuser; |
| 99 | }; |
| 100 | |
| 101 | // toys/lsb/passwd.c |
| 102 | |
| 103 | struct passwd_data { |
| 104 | char *algo; |
| 105 | }; |
| 106 | |
| 107 | // toys/lsb/pidof.c |
| 108 | |
| 109 | struct pidof_data { |
| 110 | char *omit; |
| 111 | }; |
| 112 | |
| 113 | // toys/lsb/seq.c |
| 114 | |
| 115 | struct seq_data { |
| 116 | char *sep; |
| 117 | char *fmt; |
| 118 | }; |
| 119 | |
| 120 | // toys/lsb/su.c |
| 121 | |
| 122 | struct su_data { |
| 123 | char *s; |
| 124 | char *c; |
| 125 | }; |
| 126 | |
| 127 | // toys/lsb/umount.c |
| 128 | |
| 129 | struct umount_data { |
| 130 | struct arg_list *t; |
| 131 | |
| 132 | char *types; |
| 133 | }; |
| 134 | |
Elliott Hughes | 7a49753 | 2017-01-15 11:24:30 -0800 | [diff] [blame] | 135 | // toys/net/ftpget.c |
| 136 | |
| 137 | struct ftpget_data { |
| 138 | char *user; |
| 139 | char *port; |
| 140 | char *password; |
| 141 | |
| 142 | int fd; |
| 143 | }; |
| 144 | |
Elliott Hughes | e7b74ae | 2016-07-07 17:02:37 -0700 | [diff] [blame] | 145 | // toys/net/ifconfig.c |
| 146 | |
| 147 | struct ifconfig_data { |
| 148 | int sockfd; |
| 149 | }; |
| 150 | |
Elliott Hughes | cae4495 | 2017-01-25 20:07:12 -0800 | [diff] [blame] | 151 | // toys/net/microcom.c |
| 152 | |
| 153 | struct microcom_data { |
| 154 | char *s; |
| 155 | |
| 156 | int fd; |
| 157 | struct termios original_stdin_state, original_fd_state; |
| 158 | }; |
| 159 | |
Elliott Hughes | e7b74ae | 2016-07-07 17:02:37 -0700 | [diff] [blame] | 160 | // toys/net/netcat.c |
| 161 | |
| 162 | struct netcat_data { |
| 163 | char *filename; // -f read from filename instead of network |
| 164 | long quit_delay; // -q Exit after EOF from stdin after # seconds. |
| 165 | char *source_address; // -s Bind to a specific source address. |
| 166 | long port; // -p Bind to a specific source port. |
Elliott Hughes | 5e9108a | 2016-10-19 17:03:06 -0700 | [diff] [blame] | 167 | long idle; // -W Wait # seconds for more data |
Elliott Hughes | e7b74ae | 2016-07-07 17:02:37 -0700 | [diff] [blame] | 168 | long wait; // -w Wait # seconds for a connection. |
| 169 | }; |
| 170 | |
| 171 | // toys/net/netstat.c |
| 172 | |
| 173 | struct netstat_data { |
| 174 | struct num_cache *inodes; |
| 175 | int wpad; |
| 176 | };; |
| 177 | |
Elliott Hughes | 5d83f7a | 2016-08-29 08:26:36 -0700 | [diff] [blame] | 178 | // toys/net/tunctl.c |
| 179 | |
| 180 | struct tunctl_data { |
| 181 | char *user; |
| 182 | }; |
| 183 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 184 | // toys/other/acpi.c |
| 185 | |
| 186 | struct acpi_data { |
Elliott Hughes | 97809c2 | 2015-08-07 13:57:10 -0700 | [diff] [blame] | 187 | int ac, bat, therm, cool; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 188 | char *cpath; |
| 189 | }; |
| 190 | |
Elliott Hughes | 1486223 | 2014-12-18 17:55:47 -0800 | [diff] [blame] | 191 | // toys/other/base64.c |
| 192 | |
| 193 | struct base64_data { |
| 194 | long columns; |
Elliott Hughes | 06108e6 | 2016-03-07 14:00:54 -0800 | [diff] [blame] | 195 | |
| 196 | unsigned total; |
Elliott Hughes | 1486223 | 2014-12-18 17:55:47 -0800 | [diff] [blame] | 197 | }; |
| 198 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 199 | // toys/other/blockdev.c |
| 200 | |
| 201 | struct blockdev_data { |
| 202 | long bsz; |
| 203 | }; |
| 204 | |
Elliott Hughes | 3233e2f | 2017-05-25 14:16:21 -0700 | [diff] [blame] | 205 | // toys/other/chrt.c |
| 206 | |
| 207 | struct chrt_data { |
| 208 | long pid; |
| 209 | }; |
| 210 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 211 | // toys/other/dos2unix.c |
| 212 | |
| 213 | struct dos2unix_data { |
| 214 | char *tempfile; |
| 215 | }; |
| 216 | |
| 217 | // toys/other/fallocate.c |
| 218 | |
| 219 | struct fallocate_data { |
Elliott Hughes | 991623d | 2016-10-26 09:51:00 -0700 | [diff] [blame] | 220 | long offset; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 221 | long size; |
| 222 | }; |
| 223 | |
| 224 | // toys/other/free.c |
| 225 | |
| 226 | struct free_data { |
| 227 | unsigned bits; |
| 228 | unsigned long long units; |
Elliott Hughes | fc9e18a | 2015-12-11 17:31:26 -0800 | [diff] [blame] | 229 | char *buf; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 230 | }; |
| 231 | |
Elliott Hughes | 584c654 | 2015-05-15 16:26:09 -0700 | [diff] [blame] | 232 | // toys/other/hexedit.c |
| 233 | |
| 234 | struct hexedit_data { |
| 235 | char *data; |
| 236 | long long len, base; |
Elliott Hughes | e3764cc | 2015-07-06 18:09:49 -0700 | [diff] [blame] | 237 | int numlen, undo, undolen; |
Elliott Hughes | 584c654 | 2015-05-15 16:26:09 -0700 | [diff] [blame] | 238 | unsigned height; |
| 239 | }; |
| 240 | |
Elliott Hughes | 718f34d | 2015-07-10 18:02:00 -0700 | [diff] [blame] | 241 | // toys/other/hwclock.c |
| 242 | |
| 243 | struct hwclock_data { |
| 244 | char *fname; |
| 245 | |
| 246 | int utc; |
| 247 | }; |
| 248 | |
Elliott Hughes | e3764cc | 2015-07-06 18:09:49 -0700 | [diff] [blame] | 249 | // toys/other/ionice.c |
| 250 | |
| 251 | struct ionice_data { |
| 252 | long pid; |
| 253 | long level; |
| 254 | long class; |
| 255 | }; |
| 256 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 257 | // toys/other/login.c |
| 258 | |
| 259 | struct login_data { |
| 260 | char *hostname; |
Elliott Hughes | 97809c2 | 2015-08-07 13:57:10 -0700 | [diff] [blame] | 261 | char *username; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 262 | |
| 263 | int login_timeout, login_fail_timeout; |
| 264 | }; |
| 265 | |
| 266 | // toys/other/losetup.c |
| 267 | |
| 268 | struct losetup_data { |
| 269 | char *jfile; |
| 270 | long offset; |
| 271 | long size; |
| 272 | |
| 273 | int openflags; |
| 274 | dev_t jdev; |
| 275 | ino_t jino; |
| 276 | }; |
| 277 | |
| 278 | // toys/other/lspci.c |
| 279 | |
| 280 | struct lspci_data { |
| 281 | char *ids; |
| 282 | long numeric; |
| 283 | |
| 284 | FILE *db; |
| 285 | }; |
| 286 | |
| 287 | // toys/other/makedevs.c |
| 288 | |
| 289 | struct makedevs_data { |
| 290 | char *fname; |
| 291 | }; |
| 292 | |
Elliott Hughes | 4ac9dd6 | 2015-01-14 17:00:35 -0800 | [diff] [blame] | 293 | // toys/other/mix.c |
| 294 | |
| 295 | struct mix_data { |
| 296 | long right; |
| 297 | long level; |
| 298 | char *dev; |
| 299 | char *chan; |
| 300 | }; |
| 301 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 302 | // toys/other/mkpasswd.c |
| 303 | |
| 304 | struct mkpasswd_data { |
| 305 | long pfd; |
| 306 | char *method; |
| 307 | char *salt; |
| 308 | }; |
| 309 | |
Elliott Hughes | a729fc8 | 2016-01-20 20:41:02 -0800 | [diff] [blame] | 310 | // toys/other/mkswap.c |
| 311 | |
| 312 | struct mkswap_data { |
| 313 | char *L; |
| 314 | }; |
| 315 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 316 | // toys/other/modinfo.c |
| 317 | |
| 318 | struct modinfo_data { |
| 319 | char *field; |
| 320 | char *knam; |
| 321 | char *base; |
| 322 | |
| 323 | long mod; |
| 324 | }; |
| 325 | |
Elliott Hughes | bf65a2e | 2015-02-09 12:14:46 -0800 | [diff] [blame] | 326 | // toys/other/nsenter.c |
| 327 | |
| 328 | struct nsenter_data { |
| 329 | char *nsnames[6]; |
| 330 | long targetpid; |
| 331 | }; |
| 332 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 333 | // toys/other/oneit.c |
| 334 | |
| 335 | struct oneit_data { |
| 336 | char *console; |
| 337 | }; |
| 338 | |
Elliott Hughes | 53a43da | 2014-12-11 17:05:54 -0800 | [diff] [blame] | 339 | // toys/other/shred.c |
| 340 | |
| 341 | struct shred_data { |
| 342 | long offset; |
| 343 | long iterations; |
| 344 | long size; |
| 345 | |
| 346 | int ufd; |
| 347 | }; |
| 348 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 349 | // toys/other/stat.c |
| 350 | |
| 351 | struct stat_data { |
| 352 | char *fmt; |
| 353 | |
| 354 | union { |
| 355 | struct stat st; |
| 356 | struct statfs sf; |
| 357 | } stat; |
Elliott Hughes | a0637ce | 2016-08-22 13:45:55 -0700 | [diff] [blame] | 358 | char *file, *pattern; |
| 359 | int patlen; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 360 | }; |
| 361 | |
| 362 | // toys/other/swapon.c |
| 363 | |
| 364 | struct swapon_data { |
| 365 | long priority; |
| 366 | }; |
| 367 | |
| 368 | // toys/other/switch_root.c |
| 369 | |
| 370 | struct switch_root_data { |
| 371 | char *console; |
| 372 | |
| 373 | dev_t rootdev; |
| 374 | }; |
| 375 | |
| 376 | // toys/other/timeout.c |
| 377 | |
| 378 | struct timeout_data { |
| 379 | char *s_signal; |
| 380 | char *k_timeout; |
| 381 | |
| 382 | int nextsig; |
| 383 | pid_t pid; |
| 384 | struct timeval ktv; |
| 385 | struct itimerval itv; |
| 386 | }; |
| 387 | |
| 388 | // toys/other/truncate.c |
| 389 | |
| 390 | struct truncate_data { |
Elliott Hughes | 10a5d41 | 2015-05-03 18:48:57 -0700 | [diff] [blame] | 391 | char *s; |
| 392 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 393 | long size; |
Elliott Hughes | 10a5d41 | 2015-05-03 18:48:57 -0700 | [diff] [blame] | 394 | int type; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 395 | }; |
| 396 | |
Elliott Hughes | e3764cc | 2015-07-06 18:09:49 -0700 | [diff] [blame] | 397 | // toys/other/xxd.c |
| 398 | |
| 399 | struct xxd_data { |
Elliott Hughes | e7b74ae | 2016-07-07 17:02:37 -0700 | [diff] [blame] | 400 | long s; |
Elliott Hughes | e3764cc | 2015-07-06 18:09:49 -0700 | [diff] [blame] | 401 | long g; |
| 402 | long l; |
| 403 | long c; |
| 404 | }; |
| 405 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 406 | // toys/pending/arp.c |
| 407 | |
| 408 | struct arp_data { |
| 409 | char *hw_type; |
| 410 | char *af_type_A; |
| 411 | char *af_type_p; |
| 412 | char *interface; |
| 413 | |
| 414 | int sockfd; |
| 415 | char *device; |
| 416 | }; |
| 417 | |
| 418 | // toys/pending/arping.c |
| 419 | |
| 420 | struct arping_data { |
| 421 | long count; |
| 422 | unsigned long time_out; |
| 423 | char *iface; |
| 424 | char *src_ip; |
| 425 | |
| 426 | int sockfd; |
Elliott Hughes | 0cad3b1 | 2015-10-06 14:31:35 -0700 | [diff] [blame] | 427 | unsigned long start, end; |
| 428 | unsigned sent_at, sent_nr, rcvd_nr, brd_sent, rcvd_req, brd_rcv, |
| 429 | unicast_flag; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 430 | }; |
| 431 | |
| 432 | // toys/pending/bootchartd.c |
| 433 | |
| 434 | struct bootchartd_data { |
| 435 | char buf[32]; |
| 436 | long smpl_period_usec; |
| 437 | int proc_accounting; |
| 438 | int is_login; |
| 439 | |
| 440 | void *head; |
| 441 | }; |
| 442 | |
| 443 | // toys/pending/brctl.c |
| 444 | |
| 445 | struct brctl_data { |
| 446 | int sockfd; |
| 447 | }; |
| 448 | |
| 449 | // toys/pending/compress.c |
| 450 | |
| 451 | struct compress_data { |
Elliott Hughes | 7fcfbe7 | 2014-12-02 19:07:14 -0800 | [diff] [blame] | 452 | // Huffman codes: base offset and extra bits tables (length and distance) |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 453 | char lenbits[29], distbits[30]; |
| 454 | unsigned short lenbase[29], distbase[30]; |
| 455 | void *fixdisthuff, *fixlithuff; |
| 456 | |
Elliott Hughes | 7fcfbe7 | 2014-12-02 19:07:14 -0800 | [diff] [blame] | 457 | // CRC |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 458 | void (*crcfunc)(char *data, int len); |
Elliott Hughes | 7fcfbe7 | 2014-12-02 19:07:14 -0800 | [diff] [blame] | 459 | unsigned crc; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 460 | |
Elliott Hughes | 7fcfbe7 | 2014-12-02 19:07:14 -0800 | [diff] [blame] | 461 | // Compressed data buffer |
| 462 | char *data; |
| 463 | unsigned pos, len; |
Elliott Hughes | 53a43da | 2014-12-11 17:05:54 -0800 | [diff] [blame] | 464 | int infd, outfd; |
Elliott Hughes | 7fcfbe7 | 2014-12-02 19:07:14 -0800 | [diff] [blame] | 465 | |
| 466 | // Tables only used for deflation |
Elliott Hughes | 53a43da | 2014-12-11 17:05:54 -0800 | [diff] [blame] | 467 | unsigned short *hashhead, *hashchain; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 468 | }; |
| 469 | |
| 470 | // toys/pending/crond.c |
| 471 | |
| 472 | struct crond_data { |
| 473 | char *crontabs_dir; |
| 474 | char *logfile; |
| 475 | int loglevel_d; |
| 476 | int loglevel; |
| 477 | |
| 478 | time_t crontabs_dir_mtime; |
| 479 | uint8_t flagd; |
| 480 | }; |
| 481 | |
| 482 | // toys/pending/crontab.c |
| 483 | |
| 484 | struct crontab_data { |
| 485 | char *user; |
| 486 | char *cdir; |
| 487 | }; |
| 488 | |
| 489 | // toys/pending/dd.c |
| 490 | |
| 491 | struct dd_data { |
Elliott Hughes | 5bb7e25 | 2016-07-11 11:44:51 -0700 | [diff] [blame] | 492 | int show_xfer; |
| 493 | int show_records; |
| 494 | unsigned long long bytes, c_count, in_full, in_part, out_full, out_part; |
| 495 | struct timeval start; |
| 496 | struct { |
| 497 | char *name; |
| 498 | int fd; |
| 499 | unsigned char *buff, *bp; |
| 500 | long sz, count; |
| 501 | unsigned long long offset; |
| 502 | } in, out; |
| 503 | };; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 504 | |
| 505 | // toys/pending/dhcp.c |
| 506 | |
| 507 | struct dhcp_data { |
| 508 | char *iface; |
| 509 | char *pidfile; |
| 510 | char *script; |
| 511 | long retries; |
| 512 | long timeout; |
| 513 | long tryagain; |
| 514 | struct arg_list *req_opt; |
| 515 | char *req_ip; |
| 516 | struct arg_list *pkt_opt; |
| 517 | char *fdn_name; |
| 518 | char *hostname; |
| 519 | char *vendor_cls; |
| 520 | }; |
| 521 | |
Elliott Hughes | e39ad55 | 2015-11-12 20:22:57 -0800 | [diff] [blame] | 522 | // toys/pending/dhcp6.c |
| 523 | |
| 524 | struct dhcp6_data { |
| 525 | char *interface_name, *pidfile, *script; |
| 526 | long retry, timeout, errortimeout; |
| 527 | char *req_ip; |
| 528 | int length, state, request_length, sock, sock1, status, retval, retries; |
| 529 | struct timeval tv; |
| 530 | uint8_t transction_id[3]; |
| 531 | struct sockaddr_in6 input_socket6; |
| 532 | }; |
| 533 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 534 | // toys/pending/dhcpd.c |
| 535 | |
| 536 | struct dhcpd_data { |
Elliott Hughes | e3764cc | 2015-07-06 18:09:49 -0700 | [diff] [blame] | 537 | char *iface; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 538 | long port; |
| 539 | };; |
| 540 | |
| 541 | // toys/pending/diff.c |
| 542 | |
| 543 | struct diff_data { |
| 544 | long ct; |
| 545 | char *start; |
| 546 | struct arg_list *L_list; |
| 547 | |
| 548 | int dir_num, size, is_binary, status, change, len[2]; |
| 549 | int *offset[2]; |
| 550 | }; |
| 551 | |
Elliott Hughes | 7c3d7b1 | 2017-02-20 20:29:13 -0800 | [diff] [blame] | 552 | // toys/pending/dmesg.c |
| 553 | |
| 554 | struct dmesg_data { |
| 555 | long level; |
| 556 | long size; |
| 557 | |
Elliott Hughes | bd30a7b | 2017-04-04 10:47:54 -0700 | [diff] [blame] | 558 | int use_color; |
| 559 | struct sysinfo info; |
Elliott Hughes | 7c3d7b1 | 2017-02-20 20:29:13 -0800 | [diff] [blame] | 560 | }; |
| 561 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 562 | // toys/pending/dumpleases.c |
| 563 | |
| 564 | struct dumpleases_data { |
| 565 | char *file; |
| 566 | }; |
| 567 | |
| 568 | // toys/pending/expr.c |
| 569 | |
| 570 | struct expr_data { |
Elliott Hughes | fafe427 | 2016-03-30 10:20:45 -0700 | [diff] [blame] | 571 | char **tok; // current token, not on the stack since recursive calls mutate it |
| 572 | |
| 573 | char *refree; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 574 | }; |
| 575 | |
| 576 | // toys/pending/fdisk.c |
| 577 | |
| 578 | struct fdisk_data { |
| 579 | long sect_sz; |
| 580 | long sectors; |
| 581 | long heads; |
| 582 | long cylinders; |
| 583 | }; |
| 584 | |
| 585 | // toys/pending/fold.c |
| 586 | |
| 587 | struct fold_data { |
| 588 | int width; |
| 589 | }; |
| 590 | |
| 591 | // toys/pending/fsck.c |
| 592 | |
| 593 | struct fsck_data { |
| 594 | int fd_num; |
| 595 | char *t_list; |
| 596 | |
| 597 | struct double_list *devices; |
| 598 | char *arr_flag; |
| 599 | char **arr_type; |
| 600 | int negate; |
| 601 | int sum_status; |
| 602 | int nr_run; |
| 603 | int sig_num; |
| 604 | long max_nr_run; |
| 605 | }; |
| 606 | |
Elliott Hughes | a1ce46b | 2016-08-02 09:08:31 -0700 | [diff] [blame] | 607 | // toys/pending/getfattr.c |
| 608 | |
| 609 | struct getfattr_data { |
| 610 | char *n; |
| 611 | }; |
| 612 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 613 | // toys/pending/getty.c |
| 614 | |
| 615 | struct getty_data { |
| 616 | char *issue_str; |
| 617 | char *login_str; |
| 618 | char *init_str; |
| 619 | char *host_str; |
| 620 | long timeout; |
| 621 | |
| 622 | char *tty_name; |
| 623 | int speeds[20]; |
| 624 | int sc; |
| 625 | struct termios termios; |
| 626 | char buff[128]; |
| 627 | }; |
| 628 | |
| 629 | // toys/pending/groupadd.c |
| 630 | |
| 631 | struct groupadd_data { |
| 632 | long gid; |
| 633 | }; |
| 634 | |
Elliott Hughes | c5a1dd4 | 2017-05-02 11:34:07 -0700 | [diff] [blame] | 635 | // toys/pending/gzip.c |
| 636 | |
| 637 | struct gzip_data { |
| 638 | int level; |
| 639 | }; |
| 640 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 641 | // toys/pending/host.c |
| 642 | |
| 643 | struct host_data { |
| 644 | char *type_str; |
| 645 | }; |
| 646 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 647 | // toys/pending/iconv.c |
| 648 | |
| 649 | struct iconv_data { |
| 650 | char *from; |
| 651 | char *to; |
| 652 | |
| 653 | void *ic; |
| 654 | }; |
| 655 | |
| 656 | // toys/pending/ip.c |
| 657 | |
| 658 | struct ip_data { |
| 659 | char stats, singleline, flush, *filter_dev, gbuf[8192]; |
| 660 | int sockfd, connected, from_ok, route_cmd; |
| 661 | int8_t addressfamily, is_addr; |
| 662 | }; |
| 663 | |
| 664 | // toys/pending/ipcrm.c |
| 665 | |
| 666 | struct ipcrm_data { |
| 667 | struct arg_list *qkey; |
| 668 | struct arg_list *qid; |
| 669 | struct arg_list *skey; |
| 670 | struct arg_list *sid; |
| 671 | struct arg_list *mkey; |
| 672 | struct arg_list *mid; |
| 673 | }; |
| 674 | |
| 675 | // toys/pending/ipcs.c |
| 676 | |
| 677 | struct ipcs_data { |
| 678 | int id; |
| 679 | }; |
| 680 | |
| 681 | // toys/pending/klogd.c |
| 682 | |
| 683 | struct klogd_data { |
| 684 | long level; |
| 685 | |
| 686 | int fd; |
| 687 | }; |
| 688 | |
| 689 | // toys/pending/last.c |
| 690 | |
| 691 | struct last_data { |
| 692 | char *file; |
| 693 | |
| 694 | struct arg_list *list; |
| 695 | }; |
| 696 | |
| 697 | // toys/pending/logger.c |
| 698 | |
| 699 | struct logger_data { |
| 700 | char *priority_arg; |
| 701 | char *ident; |
| 702 | }; |
| 703 | |
Elliott Hughes | ecd3df9 | 2015-09-11 10:50:35 -0700 | [diff] [blame] | 704 | // toys/pending/lsof.c |
| 705 | |
| 706 | struct lsof_data { |
Elliott Hughes | 77e56de | 2016-02-29 16:14:51 -0800 | [diff] [blame] | 707 | struct arg_list *p; |
Elliott Hughes | ecd3df9 | 2015-09-11 10:50:35 -0700 | [diff] [blame] | 708 | |
| 709 | struct stat *sought_files; |
| 710 | |
Elliott Hughes | fafe427 | 2016-03-30 10:20:45 -0700 | [diff] [blame] | 711 | struct double_list *all_sockets; |
Elliott Hughes | ecd3df9 | 2015-09-11 10:50:35 -0700 | [diff] [blame] | 712 | struct double_list *files; |
| 713 | int last_shown_pid; |
| 714 | int shown_header; |
| 715 | }; |
| 716 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 717 | // toys/pending/mke2fs.c |
| 718 | |
| 719 | struct mke2fs_data { |
| 720 | // Command line arguments. |
| 721 | long blocksize; |
| 722 | long bytes_per_inode; |
| 723 | long inodes; // Total inodes in filesystem. |
| 724 | long reserved_percent; // Integer precent of space to reserve for root. |
| 725 | char *gendir; // Where to read dirtree from. |
| 726 | |
| 727 | // Internal data. |
| 728 | struct dirtree *dt; // Tree of files to copy into the new filesystem. |
| 729 | unsigned treeblocks; // Blocks used by dt |
| 730 | unsigned treeinodes; // Inodes used by dt |
| 731 | |
| 732 | unsigned blocks; // Total blocks in the filesystem. |
| 733 | unsigned freeblocks; // Free blocks in the filesystem. |
| 734 | unsigned inodespg; // Inodes per group |
| 735 | unsigned groups; // Total number of block groups. |
| 736 | unsigned blockbits; // Bits per block. (Also blocks per group.) |
| 737 | |
| 738 | // For gene2fs |
| 739 | unsigned nextblock; // Next data block to allocate |
| 740 | unsigned nextgroup; // Next group we'll be allocating from |
| 741 | int fsfd; // File descriptor of filesystem (to output to). |
| 742 | |
| 743 | struct ext2_superblock sb; |
| 744 | }; |
| 745 | |
| 746 | // toys/pending/modprobe.c |
| 747 | |
| 748 | struct modprobe_data { |
Elliott Hughes | 7cfb1c6 | 2017-01-29 12:50:42 -0800 | [diff] [blame] | 749 | struct arg_list *dirs; |
| 750 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 751 | struct arg_list *probes; |
| 752 | struct arg_list *dbase[256]; |
| 753 | char *cmdopts; |
| 754 | int nudeps; |
| 755 | uint8_t symreq; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 756 | }; |
| 757 | |
| 758 | // toys/pending/more.c |
| 759 | |
| 760 | struct more_data { |
| 761 | struct termios inf; |
| 762 | int cin_fd; |
| 763 | }; |
| 764 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 765 | // toys/pending/openvt.c |
| 766 | |
| 767 | struct openvt_data { |
| 768 | unsigned long vt_num; |
| 769 | }; |
| 770 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 771 | // toys/pending/ping.c |
| 772 | |
| 773 | struct ping_data { |
| 774 | long wait_exit; |
| 775 | long wait_resp; |
| 776 | char *iface; |
| 777 | long size; |
| 778 | long count; |
| 779 | long ttl; |
| 780 | |
| 781 | int sock; |
| 782 | }; |
| 783 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 784 | // toys/pending/route.c |
| 785 | |
| 786 | struct route_data { |
| 787 | char *family; |
| 788 | }; |
| 789 | |
Elliott Hughes | fb3ebf8 | 2016-10-22 09:12:59 -0700 | [diff] [blame] | 790 | // toys/pending/setfattr.c |
| 791 | |
| 792 | struct setfattr_data { |
| 793 | char *x, *v, *n; |
| 794 | }; |
| 795 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 796 | // toys/pending/sh.c |
| 797 | |
| 798 | struct sh_data { |
| 799 | char *command; |
Elliott Hughes | bba047d | 2016-04-22 08:34:27 -0700 | [diff] [blame] | 800 | |
| 801 | long lineno; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 802 | }; |
| 803 | |
| 804 | // toys/pending/sulogin.c |
| 805 | |
| 806 | struct sulogin_data { |
| 807 | long timeout; |
| 808 | struct termios crntio; |
| 809 | }; |
| 810 | |
| 811 | // toys/pending/syslogd.c |
| 812 | |
| 813 | struct syslogd_data { |
| 814 | char *socket; |
| 815 | char *config_file; |
| 816 | char *unix_socket; |
| 817 | char *logfile; |
| 818 | long interval; |
| 819 | long rot_size; |
| 820 | long rot_count; |
| 821 | char *remote_log; |
| 822 | long log_prio; |
| 823 | |
| 824 | struct unsocks *lsocks; // list of listen sockets |
| 825 | struct logfile *lfiles; // list of write logfiles |
| 826 | int sigfd[2]; |
| 827 | }; |
| 828 | |
| 829 | // toys/pending/tar.c |
| 830 | |
| 831 | struct tar_data { |
| 832 | char *fname; |
| 833 | char *dir; |
| 834 | struct arg_list *inc_file; |
| 835 | struct arg_list *exc_file; |
| 836 | char *tocmd; |
| 837 | struct arg_list *exc; |
| 838 | |
| 839 | struct arg_list *inc, *pass; |
| 840 | void *inodes, *handle; |
| 841 | }; |
| 842 | |
| 843 | // toys/pending/tcpsvd.c |
| 844 | |
| 845 | struct tcpsvd_data { |
| 846 | char *name; |
| 847 | char *user; |
| 848 | long bn; |
| 849 | char *nmsg; |
| 850 | long cn; |
| 851 | |
| 852 | int maxc; |
| 853 | int count_all; |
| 854 | int udp; |
| 855 | }; |
| 856 | |
| 857 | // toys/pending/telnet.c |
| 858 | |
| 859 | struct telnet_data { |
| 860 | int port; |
| 861 | int sfd; |
| 862 | char buff[128]; |
| 863 | int pbuff; |
| 864 | char iac[256]; |
| 865 | int piac; |
| 866 | char *ttype; |
| 867 | struct termios def_term; |
| 868 | struct termios raw_term; |
| 869 | uint8_t term_ok; |
| 870 | uint8_t term_mode; |
| 871 | uint8_t flags; |
| 872 | unsigned win_width; |
| 873 | unsigned win_height; |
| 874 | }; |
| 875 | |
| 876 | // toys/pending/telnetd.c |
| 877 | |
| 878 | struct telnetd_data { |
| 879 | char *login_path; |
| 880 | char *issue_path; |
| 881 | int port; |
| 882 | char *host_addr; |
| 883 | long w_sec; |
| 884 | |
| 885 | int gmax_fd; |
| 886 | pid_t fork_pid; |
| 887 | }; |
| 888 | |
Elliott Hughes | 97809c2 | 2015-08-07 13:57:10 -0700 | [diff] [blame] | 889 | // toys/pending/tftp.c |
| 890 | |
| 891 | struct tftp_data { |
| 892 | char *local_file; |
| 893 | char *remote_file; |
| 894 | long block_size; |
| 895 | |
| 896 | struct sockaddr_storage inaddr; |
| 897 | int af; |
| 898 | }; |
| 899 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 900 | // toys/pending/tftpd.c |
| 901 | |
| 902 | struct tftpd_data { |
| 903 | char *user; |
| 904 | |
| 905 | long sfd; |
| 906 | struct passwd *pw; |
| 907 | }; |
| 908 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 909 | // toys/pending/tr.c |
| 910 | |
| 911 | struct tr_data { |
| 912 | short map[256]; //map of chars |
| 913 | int len1, len2; |
| 914 | }; |
| 915 | |
| 916 | // toys/pending/traceroute.c |
| 917 | |
| 918 | struct traceroute_data { |
| 919 | long max_ttl; |
| 920 | long port; |
| 921 | long ttl_probes; |
| 922 | char *src_ip; |
| 923 | long tos; |
| 924 | long wait_time; |
| 925 | struct arg_list *loose_source; |
| 926 | long pause_time; |
| 927 | long first_ttl; |
| 928 | char *iface; |
| 929 | |
| 930 | uint32_t gw_list[9]; |
| 931 | int recv_sock; |
| 932 | int snd_sock; |
| 933 | unsigned msg_len; |
| 934 | char *packet; |
| 935 | uint32_t ident; |
| 936 | int istraceroute6; |
| 937 | }; |
| 938 | |
| 939 | // toys/pending/useradd.c |
| 940 | |
| 941 | struct useradd_data { |
| 942 | char *dir; |
| 943 | char *gecos; |
| 944 | char *shell; |
| 945 | char *u_grp; |
| 946 | long uid; |
| 947 | |
| 948 | long gid; |
| 949 | }; |
| 950 | |
Elliott Hughes | 3fac1bd | 2016-01-04 12:28:44 -0800 | [diff] [blame] | 951 | // toys/pending/vi.c |
| 952 | |
| 953 | struct vi_data { |
| 954 | struct linestack *ls; |
| 955 | char *statline; |
| 956 | }; |
| 957 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 958 | // toys/pending/watch.c |
| 959 | |
| 960 | struct watch_data { |
| 961 | int interval; |
| 962 | }; |
| 963 | |
Elliott Hughes | 77e56de | 2016-02-29 16:14:51 -0800 | [diff] [blame] | 964 | // toys/pending/wget.c |
| 965 | |
| 966 | struct wget_data { |
| 967 | char *filename; |
| 968 | }; |
| 969 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 970 | // toys/posix/chgrp.c |
| 971 | |
| 972 | struct chgrp_data { |
| 973 | uid_t owner; |
| 974 | gid_t group; |
| 975 | char *owner_name, *group_name; |
| 976 | int symfollow; |
| 977 | }; |
| 978 | |
| 979 | // toys/posix/chmod.c |
| 980 | |
| 981 | struct chmod_data { |
| 982 | char *mode; |
| 983 | }; |
| 984 | |
| 985 | // toys/posix/cksum.c |
| 986 | |
| 987 | struct cksum_data { |
| 988 | unsigned crc_table[256]; |
| 989 | }; |
| 990 | |
| 991 | // toys/posix/cmp.c |
| 992 | |
| 993 | struct cmp_data { |
| 994 | int fd; |
| 995 | char *name; |
| 996 | }; |
| 997 | |
| 998 | // toys/posix/cp.c |
| 999 | |
| 1000 | struct cp_data { |
Elliott Hughes | e3764cc | 2015-07-06 18:09:49 -0700 | [diff] [blame] | 1001 | union { |
| 1002 | struct { |
| 1003 | // install's options |
| 1004 | char *group; |
| 1005 | char *user; |
| 1006 | char *mode; |
| 1007 | } i; |
| 1008 | struct { |
| 1009 | char *preserve; |
| 1010 | } c; |
| 1011 | }; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1012 | |
| 1013 | char *destname; |
| 1014 | struct stat top; |
| 1015 | int (*callback)(struct dirtree *try); |
| 1016 | uid_t uid; |
| 1017 | gid_t gid; |
Elliott Hughes | e3764cc | 2015-07-06 18:09:49 -0700 | [diff] [blame] | 1018 | int pflags; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1019 | }; |
| 1020 | |
| 1021 | // toys/posix/cpio.c |
| 1022 | |
| 1023 | struct cpio_data { |
| 1024 | char *archive; |
| 1025 | char *pass; |
| 1026 | char *fmt; |
| 1027 | }; |
| 1028 | |
| 1029 | // toys/posix/cut.c |
| 1030 | |
| 1031 | struct cut_data { |
| 1032 | char *delim; |
| 1033 | char *flist; |
| 1034 | char *clist; |
| 1035 | char *blist; |
| 1036 | |
| 1037 | void *slist_head; |
| 1038 | unsigned nelem; |
| 1039 | void (*do_cut)(int fd); |
| 1040 | }; |
| 1041 | |
| 1042 | // toys/posix/date.c |
| 1043 | |
| 1044 | struct date_data { |
| 1045 | char *file; |
| 1046 | char *setfmt; |
| 1047 | char *showdate; |
Elliott Hughes | ede3a45 | 2015-08-12 16:57:42 -0700 | [diff] [blame] | 1048 | |
Elliott Hughes | ede3a45 | 2015-08-12 16:57:42 -0700 | [diff] [blame] | 1049 | unsigned nano; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1050 | }; |
| 1051 | |
| 1052 | // toys/posix/df.c |
| 1053 | |
| 1054 | struct df_data { |
| 1055 | struct arg_list *fstype; |
| 1056 | |
| 1057 | long units; |
Elliott Hughes | 064520b | 2015-10-23 10:44:33 -0700 | [diff] [blame] | 1058 | int column_widths[5]; |
| 1059 | int header_shown; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1060 | }; |
| 1061 | |
| 1062 | // toys/posix/du.c |
| 1063 | |
| 1064 | struct du_data { |
| 1065 | long maxdepth; |
| 1066 | |
Elliott Hughes | 591e547 | 2016-10-03 19:28:43 -0700 | [diff] [blame] | 1067 | unsigned long depth, total; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1068 | dev_t st_dev; |
| 1069 | void *inodes; |
| 1070 | }; |
| 1071 | |
Elliott Hughes | 59a3610 | 2016-02-11 19:18:13 -0800 | [diff] [blame] | 1072 | // toys/posix/env.c |
| 1073 | |
| 1074 | struct env_data { |
| 1075 | struct arg_list *u; |
| 1076 | };; |
| 1077 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1078 | // toys/posix/expand.c |
| 1079 | |
| 1080 | struct expand_data { |
| 1081 | struct arg_list *tabs; |
| 1082 | |
| 1083 | unsigned tabcount, *tab; |
| 1084 | }; |
| 1085 | |
Elliott Hughes | e7b74ae | 2016-07-07 17:02:37 -0700 | [diff] [blame] | 1086 | // toys/posix/file.c |
| 1087 | |
| 1088 | struct file_data { |
| 1089 | int max_name_len; |
| 1090 | }; |
| 1091 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1092 | // toys/posix/find.c |
| 1093 | |
| 1094 | struct find_data { |
| 1095 | char **filter; |
| 1096 | struct double_list *argdata; |
Elliott Hughes | 2ff26de | 2016-01-09 11:23:51 -0800 | [diff] [blame] | 1097 | int topdir, xdev, depth; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1098 | time_t now; |
| 1099 | }; |
| 1100 | |
| 1101 | // toys/posix/grep.c |
| 1102 | |
| 1103 | struct grep_data { |
| 1104 | long m; |
| 1105 | struct arg_list *f; |
| 1106 | struct arg_list *e; |
Elliott Hughes | 236e745 | 2016-02-02 08:08:46 -0800 | [diff] [blame] | 1107 | long a; |
| 1108 | long b; |
| 1109 | long c; |
Elliott Hughes | afc6671 | 2016-02-05 22:03:49 -0800 | [diff] [blame] | 1110 | |
| 1111 | char indelim, outdelim; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1112 | }; |
| 1113 | |
| 1114 | // toys/posix/head.c |
| 1115 | |
| 1116 | struct head_data { |
| 1117 | long lines; |
| 1118 | int file_no; |
| 1119 | }; |
| 1120 | |
| 1121 | // toys/posix/id.c |
| 1122 | |
| 1123 | struct id_data { |
Elliott Hughes | a0da26d | 2015-05-31 09:51:58 -0700 | [diff] [blame] | 1124 | int is_groups; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1125 | }; |
| 1126 | |
| 1127 | // toys/posix/kill.c |
| 1128 | |
| 1129 | struct kill_data { |
| 1130 | char *signame; |
| 1131 | struct arg_list *olist; |
| 1132 | }; |
| 1133 | |
| 1134 | // toys/posix/ls.c |
| 1135 | |
| 1136 | struct ls_data { |
Elliott Hughes | 52a5544 | 2017-04-24 10:37:49 -0700 | [diff] [blame] | 1137 | long ll; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1138 | char *color; |
| 1139 | |
Elliott Hughes | a0da26d | 2015-05-31 09:51:58 -0700 | [diff] [blame] | 1140 | struct dirtree *files, *singledir; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1141 | |
| 1142 | unsigned screen_width; |
| 1143 | int nl_title; |
Elliott Hughes | a0637ce | 2016-08-22 13:45:55 -0700 | [diff] [blame] | 1144 | char *escmore; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1145 | }; |
| 1146 | |
| 1147 | // toys/posix/mkdir.c |
| 1148 | |
| 1149 | struct mkdir_data { |
| 1150 | char *arg_mode; |
Elliott Hughes | a0da26d | 2015-05-31 09:51:58 -0700 | [diff] [blame] | 1151 | char *arg_context; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1152 | }; |
| 1153 | |
| 1154 | // toys/posix/mkfifo.c |
| 1155 | |
| 1156 | struct mkfifo_data { |
| 1157 | char *m_string; |
Elliott Hughes | e3764cc | 2015-07-06 18:09:49 -0700 | [diff] [blame] | 1158 | char *Z; |
| 1159 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1160 | mode_t mode; |
| 1161 | }; |
| 1162 | |
| 1163 | // toys/posix/nice.c |
| 1164 | |
| 1165 | struct nice_data { |
| 1166 | long priority; |
| 1167 | }; |
| 1168 | |
| 1169 | // toys/posix/nl.c |
| 1170 | |
| 1171 | struct nl_data { |
| 1172 | long w; |
| 1173 | char *s; |
| 1174 | char *n; |
| 1175 | char *b; |
| 1176 | long l; |
| 1177 | long v; |
| 1178 | |
| 1179 | // Count of consecutive blank lines for -l has to persist between files |
| 1180 | long lcount; |
| 1181 | }; |
| 1182 | |
| 1183 | // toys/posix/od.c |
| 1184 | |
| 1185 | struct od_data { |
| 1186 | struct arg_list *output_base; |
| 1187 | char *address_base; |
| 1188 | long max_count; |
Elliott Hughes | fafe427 | 2016-03-30 10:20:45 -0700 | [diff] [blame] | 1189 | long width; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1190 | long jump_bytes; |
| 1191 | |
| 1192 | int address_idx; |
| 1193 | unsigned types, leftover, star; |
Elliott Hughes | fafe427 | 2016-03-30 10:20:45 -0700 | [diff] [blame] | 1194 | char *buf; // Points to buffers[0] or buffers[1]. |
| 1195 | char *bufs[2]; // Used to detect duplicate lines. |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1196 | off_t pos; |
| 1197 | }; |
| 1198 | |
| 1199 | // toys/posix/paste.c |
| 1200 | |
| 1201 | struct paste_data { |
Elliott Hughes | 10d4b07 | 2017-03-22 10:07:35 -0700 | [diff] [blame] | 1202 | char *d; |
| 1203 | |
| 1204 | int files; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1205 | }; |
| 1206 | |
| 1207 | // toys/posix/patch.c |
| 1208 | |
| 1209 | struct patch_data { |
| 1210 | char *infile; |
| 1211 | long prefix; |
Elliott Hughes | e7b74ae | 2016-07-07 17:02:37 -0700 | [diff] [blame] | 1212 | char *dir; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1213 | |
| 1214 | struct double_list *current_hunk; |
| 1215 | long oldline, oldlen, newline, newlen; |
| 1216 | long linenum; |
| 1217 | int context, state, filein, fileout, filepatch, hunknum; |
| 1218 | char *tempname; |
| 1219 | }; |
| 1220 | |
Elliott Hughes | 941d74d | 2015-10-30 13:18:37 -0700 | [diff] [blame] | 1221 | // toys/posix/ps.c |
| 1222 | |
| 1223 | struct ps_data { |
Elliott Hughes | fc9e18a | 2015-12-11 17:31:26 -0800 | [diff] [blame] | 1224 | union { |
| 1225 | struct { |
| 1226 | struct arg_list *G; |
| 1227 | struct arg_list *g; |
| 1228 | struct arg_list *U; |
| 1229 | struct arg_list *u; |
| 1230 | struct arg_list *t; |
| 1231 | struct arg_list *s; |
| 1232 | struct arg_list *p; |
Elliott Hughes | 236e745 | 2016-02-02 08:08:46 -0800 | [diff] [blame] | 1233 | struct arg_list *O; |
Elliott Hughes | fc9e18a | 2015-12-11 17:31:26 -0800 | [diff] [blame] | 1234 | struct arg_list *o; |
| 1235 | struct arg_list *P; |
| 1236 | struct arg_list *k; |
| 1237 | } ps; |
| 1238 | struct { |
| 1239 | long n; |
| 1240 | long d; |
Elliott Hughes | fb4a3e4 | 2016-01-26 10:49:48 -0800 | [diff] [blame] | 1241 | long s; |
Elliott Hughes | 3fac1bd | 2016-01-04 12:28:44 -0800 | [diff] [blame] | 1242 | struct arg_list *u; |
| 1243 | struct arg_list *p; |
Elliott Hughes | fb4a3e4 | 2016-01-26 10:49:48 -0800 | [diff] [blame] | 1244 | struct arg_list *o; |
| 1245 | struct arg_list *k; |
Elliott Hughes | a2ba247 | 2016-05-24 09:12:04 -0700 | [diff] [blame] | 1246 | struct arg_list *O; |
Elliott Hughes | a729fc8 | 2016-01-20 20:41:02 -0800 | [diff] [blame] | 1247 | } top; |
Elliott Hughes | a2ba247 | 2016-05-24 09:12:04 -0700 | [diff] [blame] | 1248 | struct { |
Elliott Hughes | e56796d | 2016-01-15 19:48:59 -0800 | [diff] [blame] | 1249 | char *L; |
| 1250 | struct arg_list *G; |
| 1251 | struct arg_list *g; |
| 1252 | struct arg_list *P; |
| 1253 | struct arg_list *s; |
| 1254 | struct arg_list *t; |
| 1255 | struct arg_list *U; |
| 1256 | struct arg_list *u; |
| 1257 | char *d; |
| 1258 | |
Elliott Hughes | 236e745 | 2016-02-02 08:08:46 -0800 | [diff] [blame] | 1259 | void *regexes, *snapshot; |
Elliott Hughes | e56796d | 2016-01-15 19:48:59 -0800 | [diff] [blame] | 1260 | int signal; |
Elliott Hughes | 236e745 | 2016-02-02 08:08:46 -0800 | [diff] [blame] | 1261 | pid_t self, match; |
Elliott Hughes | e56796d | 2016-01-15 19:48:59 -0800 | [diff] [blame] | 1262 | } pgrep; |
Elliott Hughes | fc9e18a | 2015-12-11 17:31:26 -0800 | [diff] [blame] | 1263 | }; |
Elliott Hughes | 941d74d | 2015-10-30 13:18:37 -0700 | [diff] [blame] | 1264 | |
Elliott Hughes | fc9e18a | 2015-12-11 17:31:26 -0800 | [diff] [blame] | 1265 | struct sysinfo si; |
| 1266 | struct ptr_len gg, GG, pp, PP, ss, tt, uu, UU; |
Elliott Hughes | a2ba247 | 2016-05-24 09:12:04 -0700 | [diff] [blame] | 1267 | struct dirtree *threadparent; |
Elliott Hughes | 3fac1bd | 2016-01-04 12:28:44 -0800 | [diff] [blame] | 1268 | unsigned width, height; |
Elliott Hughes | 941d74d | 2015-10-30 13:18:37 -0700 | [diff] [blame] | 1269 | dev_t tty; |
Elliott Hughes | fc9e18a | 2015-12-11 17:31:26 -0800 | [diff] [blame] | 1270 | void *fields, *kfields; |
Elliott Hughes | 236e745 | 2016-02-02 08:08:46 -0800 | [diff] [blame] | 1271 | long long ticks, bits, time; |
Elliott Hughes | e56796d | 2016-01-15 19:48:59 -0800 | [diff] [blame] | 1272 | int kcount, forcek, sortpos; |
Elliott Hughes | 3fac1bd | 2016-01-04 12:28:44 -0800 | [diff] [blame] | 1273 | int (*match_process)(long long *slot); |
Elliott Hughes | e56796d | 2016-01-15 19:48:59 -0800 | [diff] [blame] | 1274 | void (*show_process)(void *tb); |
Elliott Hughes | 941d74d | 2015-10-30 13:18:37 -0700 | [diff] [blame] | 1275 | }; |
| 1276 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1277 | // toys/posix/renice.c |
| 1278 | |
| 1279 | struct renice_data { |
| 1280 | long nArgu; |
| 1281 | }; |
| 1282 | |
Elliott Hughes | f9551b3 | 2014-12-24 10:59:08 -0800 | [diff] [blame] | 1283 | // toys/posix/sed.c |
| 1284 | |
| 1285 | struct sed_data { |
| 1286 | struct arg_list *f; |
| 1287 | struct arg_list *e; |
| 1288 | |
| 1289 | // processed pattern list |
| 1290 | struct double_list *pattern; |
| 1291 | |
| 1292 | char *nextline, *remember; |
| 1293 | void *restart, *lastregex; |
| 1294 | long nextlen, rememberlen, count; |
| 1295 | int fdout, noeol; |
| 1296 | unsigned xx; |
| 1297 | }; |
| 1298 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1299 | // toys/posix/sort.c |
| 1300 | |
| 1301 | struct sort_data { |
| 1302 | char *key_separator; |
| 1303 | struct arg_list *raw_keys; |
| 1304 | char *outfile; |
| 1305 | char *ignore1, ignore2; // GNU compatability NOPs for -S and -T. |
| 1306 | |
| 1307 | void *key_list; |
| 1308 | int linecount; |
| 1309 | char **lines; |
| 1310 | }; |
| 1311 | |
| 1312 | // toys/posix/split.c |
| 1313 | |
| 1314 | struct split_data { |
| 1315 | long lines; |
| 1316 | long bytes; |
| 1317 | long suflen; |
| 1318 | |
| 1319 | char *outfile; |
| 1320 | }; |
| 1321 | |
| 1322 | // toys/posix/strings.c |
| 1323 | |
| 1324 | struct strings_data { |
| 1325 | long num; |
| 1326 | }; |
| 1327 | |
| 1328 | // toys/posix/tail.c |
| 1329 | |
| 1330 | struct tail_data { |
| 1331 | long lines; |
| 1332 | long bytes; |
| 1333 | |
Elliott Hughes | 3fac1bd | 2016-01-04 12:28:44 -0800 | [diff] [blame] | 1334 | int file_no, ffd, *files; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1335 | }; |
| 1336 | |
| 1337 | // toys/posix/tee.c |
| 1338 | |
| 1339 | struct tee_data { |
| 1340 | void *outputs; |
| 1341 | }; |
| 1342 | |
| 1343 | // toys/posix/touch.c |
| 1344 | |
| 1345 | struct touch_data { |
| 1346 | char *time; |
| 1347 | char *file; |
| 1348 | char *date; |
| 1349 | }; |
| 1350 | |
Elliott Hughes | 59a3610 | 2016-02-11 19:18:13 -0800 | [diff] [blame] | 1351 | // toys/posix/ulimit.c |
| 1352 | |
| 1353 | struct ulimit_data { |
| 1354 | long pid; |
| 1355 | }; |
| 1356 | |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1357 | // toys/posix/uniq.c |
| 1358 | |
| 1359 | struct uniq_data { |
| 1360 | long maxchars; |
| 1361 | long nchars; |
| 1362 | long nfields; |
| 1363 | long repeats; |
| 1364 | }; |
| 1365 | |
| 1366 | // toys/posix/uudecode.c |
| 1367 | |
| 1368 | struct uudecode_data { |
| 1369 | char *o; |
| 1370 | }; |
| 1371 | |
| 1372 | // toys/posix/wc.c |
| 1373 | |
| 1374 | struct wc_data { |
Elliott Hughes | e7b74ae | 2016-07-07 17:02:37 -0700 | [diff] [blame] | 1375 | unsigned long totals[4]; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1376 | }; |
| 1377 | |
| 1378 | // toys/posix/xargs.c |
| 1379 | |
| 1380 | struct xargs_data { |
| 1381 | long max_bytes; |
| 1382 | long max_entries; |
| 1383 | long L; |
| 1384 | char *eofstr; |
| 1385 | char *I; |
| 1386 | |
| 1387 | long entries, bytes; |
| 1388 | char delim; |
| 1389 | }; |
| 1390 | |
| 1391 | extern union global_union { |
Elliott Hughes | 85cda1a | 2015-04-08 10:53:59 -0700 | [diff] [blame] | 1392 | struct getprop_data getprop; |
Elliott Hughes | 0803f53 | 2016-06-22 10:26:11 -0700 | [diff] [blame] | 1393 | struct log_data log; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1394 | struct hello_data hello; |
| 1395 | struct skeleton_data skeleton; |
Elliott Hughes | 2737fdf | 2016-05-04 13:42:18 -0700 | [diff] [blame] | 1396 | struct hostname_data hostname; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1397 | struct killall_data killall; |
| 1398 | struct md5sum_data md5sum; |
Elliott Hughes | 40d36f2 | 2015-03-11 13:37:18 -0700 | [diff] [blame] | 1399 | struct mknod_data mknod; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1400 | struct mktemp_data mktemp; |
| 1401 | struct mount_data mount; |
| 1402 | struct passwd_data passwd; |
| 1403 | struct pidof_data pidof; |
| 1404 | struct seq_data seq; |
| 1405 | struct su_data su; |
| 1406 | struct umount_data umount; |
Elliott Hughes | 7a49753 | 2017-01-15 11:24:30 -0800 | [diff] [blame] | 1407 | struct ftpget_data ftpget; |
Elliott Hughes | e7b74ae | 2016-07-07 17:02:37 -0700 | [diff] [blame] | 1408 | struct ifconfig_data ifconfig; |
Elliott Hughes | cae4495 | 2017-01-25 20:07:12 -0800 | [diff] [blame] | 1409 | struct microcom_data microcom; |
Elliott Hughes | e7b74ae | 2016-07-07 17:02:37 -0700 | [diff] [blame] | 1410 | struct netcat_data netcat; |
| 1411 | struct netstat_data netstat; |
Elliott Hughes | 5d83f7a | 2016-08-29 08:26:36 -0700 | [diff] [blame] | 1412 | struct tunctl_data tunctl; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1413 | struct acpi_data acpi; |
Elliott Hughes | 1486223 | 2014-12-18 17:55:47 -0800 | [diff] [blame] | 1414 | struct base64_data base64; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1415 | struct blockdev_data blockdev; |
Elliott Hughes | 3233e2f | 2017-05-25 14:16:21 -0700 | [diff] [blame] | 1416 | struct chrt_data chrt; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1417 | struct dos2unix_data dos2unix; |
| 1418 | struct fallocate_data fallocate; |
| 1419 | struct free_data free; |
Elliott Hughes | 584c654 | 2015-05-15 16:26:09 -0700 | [diff] [blame] | 1420 | struct hexedit_data hexedit; |
Elliott Hughes | 718f34d | 2015-07-10 18:02:00 -0700 | [diff] [blame] | 1421 | struct hwclock_data hwclock; |
Elliott Hughes | e3764cc | 2015-07-06 18:09:49 -0700 | [diff] [blame] | 1422 | struct ionice_data ionice; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1423 | struct login_data login; |
| 1424 | struct losetup_data losetup; |
| 1425 | struct lspci_data lspci; |
| 1426 | struct makedevs_data makedevs; |
Elliott Hughes | 4ac9dd6 | 2015-01-14 17:00:35 -0800 | [diff] [blame] | 1427 | struct mix_data mix; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1428 | struct mkpasswd_data mkpasswd; |
Elliott Hughes | a729fc8 | 2016-01-20 20:41:02 -0800 | [diff] [blame] | 1429 | struct mkswap_data mkswap; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1430 | struct modinfo_data modinfo; |
Elliott Hughes | bf65a2e | 2015-02-09 12:14:46 -0800 | [diff] [blame] | 1431 | struct nsenter_data nsenter; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1432 | struct oneit_data oneit; |
Elliott Hughes | 53a43da | 2014-12-11 17:05:54 -0800 | [diff] [blame] | 1433 | struct shred_data shred; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1434 | struct stat_data stat; |
| 1435 | struct swapon_data swapon; |
| 1436 | struct switch_root_data switch_root; |
| 1437 | struct timeout_data timeout; |
| 1438 | struct truncate_data truncate; |
Elliott Hughes | e3764cc | 2015-07-06 18:09:49 -0700 | [diff] [blame] | 1439 | struct xxd_data xxd; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1440 | struct arp_data arp; |
| 1441 | struct arping_data arping; |
| 1442 | struct bootchartd_data bootchartd; |
| 1443 | struct brctl_data brctl; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1444 | struct compress_data compress; |
| 1445 | struct crond_data crond; |
| 1446 | struct crontab_data crontab; |
| 1447 | struct dd_data dd; |
| 1448 | struct dhcp_data dhcp; |
Elliott Hughes | e39ad55 | 2015-11-12 20:22:57 -0800 | [diff] [blame] | 1449 | struct dhcp6_data dhcp6; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1450 | struct dhcpd_data dhcpd; |
| 1451 | struct diff_data diff; |
Elliott Hughes | 7c3d7b1 | 2017-02-20 20:29:13 -0800 | [diff] [blame] | 1452 | struct dmesg_data dmesg; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1453 | struct dumpleases_data dumpleases; |
| 1454 | struct expr_data expr; |
| 1455 | struct fdisk_data fdisk; |
| 1456 | struct fold_data fold; |
| 1457 | struct fsck_data fsck; |
Elliott Hughes | a1ce46b | 2016-08-02 09:08:31 -0700 | [diff] [blame] | 1458 | struct getfattr_data getfattr; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1459 | struct getty_data getty; |
| 1460 | struct groupadd_data groupadd; |
Elliott Hughes | c5a1dd4 | 2017-05-02 11:34:07 -0700 | [diff] [blame] | 1461 | struct gzip_data gzip; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1462 | struct host_data host; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1463 | struct iconv_data iconv; |
| 1464 | struct ip_data ip; |
| 1465 | struct ipcrm_data ipcrm; |
| 1466 | struct ipcs_data ipcs; |
| 1467 | struct klogd_data klogd; |
| 1468 | struct last_data last; |
| 1469 | struct logger_data logger; |
Elliott Hughes | ecd3df9 | 2015-09-11 10:50:35 -0700 | [diff] [blame] | 1470 | struct lsof_data lsof; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1471 | struct mke2fs_data mke2fs; |
| 1472 | struct modprobe_data modprobe; |
| 1473 | struct more_data more; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1474 | struct openvt_data openvt; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1475 | struct ping_data ping; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1476 | struct route_data route; |
Elliott Hughes | fb3ebf8 | 2016-10-22 09:12:59 -0700 | [diff] [blame] | 1477 | struct setfattr_data setfattr; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1478 | struct sh_data sh; |
| 1479 | struct sulogin_data sulogin; |
| 1480 | struct syslogd_data syslogd; |
| 1481 | struct tar_data tar; |
| 1482 | struct tcpsvd_data tcpsvd; |
| 1483 | struct telnet_data telnet; |
| 1484 | struct telnetd_data telnetd; |
Elliott Hughes | 97809c2 | 2015-08-07 13:57:10 -0700 | [diff] [blame] | 1485 | struct tftp_data tftp; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1486 | struct tftpd_data tftpd; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1487 | struct tr_data tr; |
| 1488 | struct traceroute_data traceroute; |
| 1489 | struct useradd_data useradd; |
Elliott Hughes | 3fac1bd | 2016-01-04 12:28:44 -0800 | [diff] [blame] | 1490 | struct vi_data vi; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1491 | struct watch_data watch; |
Elliott Hughes | 77e56de | 2016-02-29 16:14:51 -0800 | [diff] [blame] | 1492 | struct wget_data wget; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1493 | struct chgrp_data chgrp; |
| 1494 | struct chmod_data chmod; |
| 1495 | struct cksum_data cksum; |
| 1496 | struct cmp_data cmp; |
| 1497 | struct cp_data cp; |
| 1498 | struct cpio_data cpio; |
| 1499 | struct cut_data cut; |
| 1500 | struct date_data date; |
| 1501 | struct df_data df; |
| 1502 | struct du_data du; |
Elliott Hughes | 59a3610 | 2016-02-11 19:18:13 -0800 | [diff] [blame] | 1503 | struct env_data env; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1504 | struct expand_data expand; |
Elliott Hughes | e7b74ae | 2016-07-07 17:02:37 -0700 | [diff] [blame] | 1505 | struct file_data file; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1506 | struct find_data find; |
| 1507 | struct grep_data grep; |
| 1508 | struct head_data head; |
| 1509 | struct id_data id; |
| 1510 | struct kill_data kill; |
| 1511 | struct ls_data ls; |
| 1512 | struct mkdir_data mkdir; |
| 1513 | struct mkfifo_data mkfifo; |
| 1514 | struct nice_data nice; |
| 1515 | struct nl_data nl; |
| 1516 | struct od_data od; |
| 1517 | struct paste_data paste; |
| 1518 | struct patch_data patch; |
Elliott Hughes | 941d74d | 2015-10-30 13:18:37 -0700 | [diff] [blame] | 1519 | struct ps_data ps; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1520 | struct renice_data renice; |
Elliott Hughes | f9551b3 | 2014-12-24 10:59:08 -0800 | [diff] [blame] | 1521 | struct sed_data sed; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1522 | struct sort_data sort; |
| 1523 | struct split_data split; |
| 1524 | struct strings_data strings; |
| 1525 | struct tail_data tail; |
| 1526 | struct tee_data tee; |
| 1527 | struct touch_data touch; |
Elliott Hughes | 59a3610 | 2016-02-11 19:18:13 -0800 | [diff] [blame] | 1528 | struct ulimit_data ulimit; |
Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1529 | struct uniq_data uniq; |
| 1530 | struct uudecode_data uudecode; |
| 1531 | struct wc_data wc; |
| 1532 | struct xargs_data xargs; |
| 1533 | } this; |