Home | History | Annotate | Download | only in posix

Lines Matching refs:tty

11  * Posix says default output should have field named "TTY" but if you "-o tty"
60 usage: ps [-AadefLlnwZ] [-gG GROUP,] [-k FIELD,] [-o FIELD,] [-p PID,] [-t TTY,] [-uU USER,]
87 Which FIELDs to show. (Default = -o PID,TTY,TIME,CMD)
89 -f Full listing (-o USER:12=UID,PID,PPID,C,STIME,TTY,TIME,ARGS=CMD)
90 -l Long listing (-o F,S,UID,PID,PPID,C,PRI,NI,ADDR,SZ,WCHAN,TTY,TIME,CMD)
126 TIME CPU time consumed TTY Controlling terminal
144 -b Batch mode (no tty)
173 -b Batch mode (no tty)
281 dev_t tty;
310 SLOT_ttynr, /*tty the process uses*/ SLOT_ttypgrp, // pgrp of the tty
343 command name, tty device, selinux label... They're stored one after the
352 char str[]; // CMD, TTY, WCHAN, LABEL, COMM, ARGS, NAME
394 {"TTY", -8, -2}, {"WCHAN", -6, -3}, {"LABEL", -30, -4}, {"COMM", -27, -5},
460 && TT.tty!=slot[SLOT_ttynr]) return 0;
616 olen = (TT.tty) ? utf8len(out) : strlen(out);
647 if (TT.tty) width -= draw_trim(out, pad, len);
706 // and convert low chars to ? for non-tty display while we're at it.
709 if (!TT.tty) tb->str[i] = '?';
834 // If it's not the TTY field, data we want is in a file.
840 // Call no tty "?" rather than "0:0".
851 // Couldn't find it, try all the tty drivers.
853 FILE *fp = fopen("/proc/tty/drivers", "r");
891 // Turn NUL to space, other low ascii to ? (in non-tty mode)
899 } else if (!TT.tty && c<' ') c = '?';
1084 // -t pts = 12,pts/12 tty = /dev/tty2,tty2,S0
1090 } else if (strstart(&str, "tty")) len -= 3;
1095 end = toybuf + sprintf(toybuf, "/dev/%s", num ? "pts/" : "tty");
1207 if (!fstat(i, &st)) TT.tty = st.st_rdev;
1236 "USER:12=UID,%%sPPID,%s,STIME,TTY,TIME,ARGS=CMD",
1239 not_o = "F,S,UID,%sPPID,C,PRI,NI,BIT,SZ,WCHAN,TTY,TIME,CMD";
1627 TT.tty = tty_fd() != -1;
1722 if (!(toys.optflags&FLAG_c) && (!TT.pgrep.signal || TT.tty)) {
1829 if (toys.optflags & FLAG_V) TT.tty = 1;