Lines Matching +full:active +full:-
1 /*-
63 env_setenv(ev->ev_name, flags | EV_NOHOOK, value, NULL, NULL); in module_verbose_set()
70 * specified, mark them as active. Else, mark the first probed console
71 * as active. Also create the console variable.
77 int active; in cons_probe() local
93 consoles[cons]->c_flags = 0; in cons_probe()
94 consoles[cons]->c_probe(consoles[cons]); in cons_probe()
97 active = -1; in cons_probe()
98 for (cons = 0; consoles[cons] != NULL && active == -1; cons++) { in cons_probe()
99 consoles[cons]->c_flags = 0; in cons_probe()
100 consoles[cons]->c_probe(consoles[cons]); in cons_probe()
101 if (consoles[cons]->c_flags == (C_PRESENTIN | C_PRESENTOUT)) in cons_probe()
102 active = cons; in cons_probe()
105 if (active == -1) in cons_probe()
106 active = 0; in cons_probe()
116 consoles[active]->c_flags |= C_ACTIVEIN | C_ACTIVEOUT; in cons_probe()
117 consoles[active]->c_init(0); in cons_probe()
118 prefconsole = strdup(consoles[active]->c_name); in cons_probe()
123 if (consoles[cons]->c_flags & (C_ACTIVEIN | C_ACTIVEOUT)) in cons_probe()
124 printf("%s ", consoles[cons]->c_desc); in cons_probe()
142 /* Loop forever polling all active consoles */ in getchar()
145 if ((consoles[cons]->c_flags & in getchar()
148 ((rv = consoles[cons]->c_in()) != -1)) in getchar()
160 if ((consoles[cons]->c_flags & (C_PRESENTIN | C_ACTIVEIN)) == in ischar()
162 (consoles[cons]->c_ready() != 0)) in ischar()
177 if ((consoles[cons]->c_flags & (C_PRESENTOUT | C_ACTIVEOUT)) == in putchar()
179 consoles[cons]->c_out(c); in putchar()
192 if (strcmp(consoles[cons]->c_name, name) == 0) in cons_find()
194 return (-1); in cons_find()
218 env_setenv(ev->ev_name, flags | EV_NOHOOK, value, NULL, NULL); in cons_set()
237 if (cons == -1) { in cons_check()
254 printf(" %s\n", consoles[cons]->c_name); in cons_check()
266 int cons, active; in cons_change() local
271 consoles[cons]->c_flags &= ~(C_ACTIVEIN | C_ACTIVEOUT); in cons_change()
276 active = 0; in cons_change()
283 consoles[cons]->c_flags |= C_ACTIVEIN | C_ACTIVEOUT; in cons_change()
284 consoles[cons]->c_init(0); in cons_change()
285 if ((consoles[cons]->c_flags & in cons_change()
288 active++; in cons_change()
292 if (active != 0) { in cons_change()
298 consoles[cons]->c_name); in cons_change()
305 if (active == 0) { in cons_change()
311 consoles[cons]->c_flags |= C_ACTIVEIN | C_ACTIVEOUT; in cons_change()
312 consoles[cons]->c_init(0); in cons_change()
313 if ((consoles[cons]->c_flags & in cons_change()
316 active++; in cons_change()
319 if (active == 0) in cons_change()
332 * routines has to live somewhere. Twiddling is console-related so it's here.
346 env_setenv(ev->ev_name, flags | EV_NOHOOK, value, NULL, NULL); in twiddle_set()