• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/loginutils/

Lines Matching refs:op

163 static void parse_speeds(struct options *op, char *arg)
169 if ((op->speeds[op->numspeed++] = bcode(cp)) <= 0)
171 if (op->numspeed > MAX_SPEED)
179 static void parse_args(int argc, char **argv, struct options *op)
183 op->flags = getopt32(argv, opt_string,
184 &(op->initstring), &fakehost, &(op->issue),
185 &(op->login), &ts);
186 if (op->flags & F_INITSTRING) {
187 const char *p = op->initstring;
190 op->initstring = q = xstrdup(op->initstring);
191 /* copy optarg into op->initstring decoding \ddd
203 op->flags ^= F_ISSUE; /* revert flag show /etc/issue */
204 if (op->flags & F_TIMEOUT) {
205 op->timeout = xatoul_range(ts, 1, INT_MAX);
216 parse_speeds(op, argv[0]); /* baud rate(s) */
217 op->tty = argv[1]; /* tty name */
219 op->tty = argv[0]; /* tty name */
220 parse_speeds(op, argv[1]); /* baud rate(s) */
328 static void termios_init(struct termios *tp, int speed, struct options *op)
342 if (op->flags & F_LOCAL) {
354 if (op->flags & F_RTSCTS)
429 static void next_speed(struct termios *tp, struct options *op)
433 baud_index = (baud_index + 1) % op->numspeed;
435 tp->c_cflag |= op->speeds[baud_index];
441 static void do_prompt(struct options *op, struct termios *tp)
444 print_login_issue(op->issue, op->tty);
464 struct options *op, struct chardata *cp, struct termios *tp)
494 do_prompt(op, tp);
506 bb_perror_msg_and_die("%s: read", op->tty);
510 if (c == '\0' && op->numspeed > 1)
557 bb_error_msg_and_die("%s: input overrun", op->tty);
580 static void termios_final(struct options *op, struct termios *tp, struct chardata *cp)
633 if (op->flags & F_RTSCTS)
639 ioctl_or_perror_and_die(0, TCSETS, tp, "%s: TCSETS", op->tty);