Home | History | Annotate | Download | only in pending

Lines Matching refs:toys

31 #include "toys.h"
143 if (!(toys.optflags & FLAG_n) && (pw = getpwuid(uid))) {
148 xprintf((toys.optflags & FLAG_W) ? "%-51.51s %-51.51s " : "%-23.23s %-23.23s "
151 if ((toys.optflags & FLAG_e)) xprintf("%-10s %-11ld ", user, inode);
152 if ((toys.optflags & FLAG_p)) xprintf("%s", get_pid_name(inode));
163 if (toys.optflags & FLAG_l) {
166 } else if (toys.optflags & FLAG_a)
202 if (!(toys.optflags & FLAG_n)) {
328 if (toys.optflags & FLAG_l) {
331 } else if (!(toys.optflags & FLAG_a)) {
362 if (toys.optflags & FLAG_p) xprintf("%-20s", get_pid_name(inode));
480 xprintf((toys.optflags & FLAG_W) ? "%-51s %-51s" : "%-23s %-23s",
483 if (toys.optflags & FLAG_e) xprintf(" User Inode ");
484 if (toys.optflags & FLAG_p) xprintf(" PID/Program Name");
587 #define IS_NETSTAT_PROTO_FLAGS_UP (toys.optflags & (FLAG_t | FLAG_u | FLAG_w \
591 if (!toys.optflags) toys.optflags = FLAG_t | FLAG_u | FLAG_w | FLAG_x;
594 if (toys.optflags & FLAG_a && toys.optflags & FLAG_l)
595 toys
599 if (((toys.optflags & FLAG_a) || (toys.optflags & FLAG_l) ||
600 (toys.optflags & FLAG_e) || (toys.optflags & FLAG_n) ||
601 (toys.optflags & FLAG_W) || (toys.optflags & FLAG_p)) &&
603 toys.optflags |= FLAG_t | FLAG_u | FLAG_w | FLAG_x;
606 if (toys.optflags & FLAG_r) {
607 display_routes(!(toys.optflags & FLAG_e), (toys.optflags & FLAG_n));
611 if (toys.optflags & FLAG_p) {
622 if ( (toys.optflags & FLAG_t) || (toys.optflags & FLAG_u) ||
623 (toys.optflags & FLAG_w) ) {
626 if (toys.optflags & FLAG_a) xprintf("(servers and established)\n");
627 else if (toys.optflags & FLAG_l) xprintf("(only servers)\n");
631 if (toys.optflags & FLAG_t) {//For TCP
635 if (toys.optflags & FLAG_u) {//For UDP
639 if (toys.optflags & FLAG_w) {//For raw
644 if (toys.optflags & FLAG_x) {//For UNIX
646 if (toys.optflags & FLAG_a) xprintf("(servers and established)\n");
647 else if (toys.optflags & FLAG_l) xprintf("(only servers)\n");
650 if (toys.optflags & FLAG_p)
658 if (toys.optflags & FLAG_p) clean_pid_list();
659 if (toys.exitval) toys.exitval = 0;