Lines Matching refs:tvar
34 int fd, tvar, idx = -1, tid = RFKILL_TYPE_ALL;
38 for (tvar = 0; tvar < 3; tvar++)
39 if (!strcmp((char *[]){"list", "block", "unblock"}[tvar], *optargs)) break;
40 if (tvar == 3) error_exit("unknown cmd '%s'", *optargs);
41 if (tvar) {
60 fd = xopen("/dev/rfkill", (tvar ? O_RDWR : O_RDONLY)|O_NONBLOCK);
61 if (tvar) {
64 rfevent.soft = tvar == 1;
83 tvar = xopenro(toybuf);
84 while ((line = get_line(tvar))) {
92 xclose(tvar);