Lines Matching defs:option
226 static void set_option(struct termios *new, char *option)
228 int on = (*option != '-');
230 if (!on) option++;
231 if (!set_flag(&new->c_cflag, cflags, ARRAY_LEN(cflags), option, on) &&
232 !set_flag(&new->c_iflag, iflags, ARRAY_LEN(iflags), option, on) &&
233 !set_flag(&new->c_oflag, oflags, ARRAY_LEN(oflags), option, on) &&
234 !set_flag(&new->c_lflag, lflags, ARRAY_LEN(lflags), option, on))
235 error_exit("unknown option: %s", option);
241 char *option;
244 while ((option = va_arg(va, char *))) set_option(new, option);