Home | History | Annotate | Download | only in posix

Lines Matching refs:toys

211 #include "toys.h"
391 if ((toys.optflags&(FLAG_a|FLAG_d)) && slot[SLOT_sid]==*slot) return 0;
392 if ((toys.optflags&FLAG_a) && !slot[SLOT_ttynr]) return 0;
393 if (!(toys.optflags&(FLAG_a|FLAG_d|FLAG_A|FLAG_e))
990 TT.width = (toys.which->name[1] == 's') ? 99999 : 80;
1013 if (toys.optflags&FLAG_w) TT.width = 99999;
1029 if (toys.optflags&FLAG_Z) default_ko("LABEL", &TT.fields, 0, 0);
1030 if (toys.optflags&FLAG_f) s = "USER:8=UID,PID,PPID,C,STIME,TTY,TIME,CMD";
1031 else if (toys.optflags&FLAG_l)
1045 if (toys.optflags&(FLAG_f|FLAG_n)) {
1049 if ((toys.optflags&FLAG_f) && ever->which==PS_CMD) ever->which = PS_ARGS;
1050 if ((toys.optflags&FLAG_n) && ever->which>=PS_UID
1059 if (!(toys.optflags&FLAG_M)) printf("%.*s\n", TT.width, toybuf);
1060 if (!(toys.optflags&(FLAG_k|FLAG_M))) TT.show_process = (void *)show_ps;
1064 if (toys.optflags&(FLAG_k|FLAG_M)) {
1067 if (toys.optflags&FLAG_M) {
1083 if (toys.optflags&FLAG_k)
1147 (toys.optflags&FLAG_b) ? 0 : -TT.width, TT.width, toybuf,
1178 toys.signal = SIGWINCH;
1246 if (!(toys.optflags&FLAG_b)) {
1248 if (toys.signal) {
1249 toys.signal = 0;
1255 if (recalc && !(toys.optflags&FLAG_q)) {
1256 if (*toys.which->name == 't') {
1397 if (!(toys.optflags&FLAG_b)) tty_reset();
1406 if (toys.optflags&FLAG_b) TT.width = TT.height = 99999;
1447 if (!(toys.optflags&FLAG_a)) merge_deltas(oslot, nslot, milis);
1450 return !(toys.optflags&FLAG_o)||oslot[SLOT_iobytes+!(toys.optflags&FLAG_A)];
1455 char *s1 = 0, *s2 = 0, *d = "D"+!!(toys.optflags&FLAG_A);
1457 if (toys.optflags&FLAG_K) TT.forcek++;
1489 if (!(toys.optflags&FLAG_c) && (!TT.pgrep.signal || TT.tty)) {
1491 if (toys.optflags&FLAG_l)
1492 printf(" %s", tb->str+tb->offset[4]*!!(toys.optflags&FLAG_f));
1502 char *name = tb->str+tb->offset[4]*!!(toys.optflags&FLAG_f);;
1510 if (toys.optflags&FLAG_x)
1514 if ((toys.optflags&FLAG_v) ? !!reg : !reg) return;
1519 if (toys.optflags&(FLAG_n|FLAG_o)) {
1522 if (toys.optflags&FLAG_o) ll *= -1;
1534 return (toys.optflags&FLAG_v) ? !match : match;
1556 if ((toys.optflags&(FLAG_x|FLAG_f)) ||
1557 !(toys.optflags&(FLAG_G|FLAG_g|FLAG_P|FLAG_s|FLAG_t|FLAG_U|FLAG_u)))
1558 if (!toys.optc) help_exit("No PATTERN");
1560 if (toys.optflags&FLAG_f) TT.bits |= _PS_CMDLINE;
1561 for (arg = toys.optargs; *arg; arg++) {
1571 if (toys.optflags&FLAG_c) printf("%d\n", TT.sortpos);
1586 if (toys.optflags & FLAG_V) TT.tty = 1;