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