Lines Matching refs:which_prog
63 enum { SWAPON, SWAPOFF, SWAPCTL } orig_prog, which_prog = SWAPCTL;
78 which_prog = SWAPON;
80 which_prog = SWAPOFF;
81 orig_prog = which_prog;
88 if (which_prog == SWAPCTL) {
90 which_prog = SWAPON;
96 if (which_prog == SWAPON || which_prog == SWAPOFF)
99 which_prog = SWAPON;
102 if (which_prog == SWAPCTL)
103 which_prog = SWAPOFF;
123 if (which_prog == SWAPON || which_prog == SWAPOFF)
130 if (which_prog == SWAPCTL) {
132 which_prog = SWAPOFF;
150 if (which_prog == SWAPON || which_prog == SWAPOFF) {
163 which_prog == SWAPOFF ? "remov" : "add",
176 getprogname(), which_prog == SWAPOFF ? "remov" : "add",
192 if ((which_prog == SWAPOFF ? swapoff(name) : swapon(name)) == -1) {
199 if (which_prog == SWAPON)