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

Lines Matching defs:interactive_fd

341 	/* 'interactive_fd' is a fd# open to ctty, if we have one
343 int interactive_fd;
383 enum { interactive_fd = 0 };
390 #define interactive_fd (G.interactive_fd )
435 * (interactive_fd ? bb_error_msg : bb_error_msg_and_die)(...params...)
439 fp = (interactive_fd ? bb_error_msg : bb_error_msg_and_die);
688 if (interactive_fd)
689 tcsetpgrp(interactive_fd, saved_tty_pgrp);
831 if (!interactive_fd)
859 tcsetpgrp(interactive_fd, pi->pgrp);
1172 if (interactive_fd && i->promptme && i->file == stdin) {
1389 debug_printf_exec("pseudo_exec: setting interactive_fd=0\n");
1390 interactive_fd = 0; /* crucial!!!! */
1632 if (tcsetpgrp(interactive_fd, p) && errno != ENOTTY)
1785 if (run_list_level == 1 && interactive_fd) {
1793 tcsetpgrp(interactive_fd, pi->pgrp);
1957 if (++run_list_level == 1 && interactive_fd) {
2085 /* Paranoia, just "interactive_fd" should be enough? */
2086 if (run_list_level == 1 && interactive_fd) {
2125 if (!--run_list_level && interactive_fd) {
3579 fcntl(interactive_fd, F_SETFD, FD_CLOEXEC);
3583 while (tcgetpgrp(interactive_fd) != shell_pgrp) {
3600 tcsetpgrp(interactive_fd, getpid());
3683 /* interactive_fd++; */
3713 interactive_fd = fcntl(STDIN_FILENO, F_DUPFD, 255);
3714 if (interactive_fd < 0) {
3716 interactive_fd = dup(STDIN_FILENO);
3717 if (interactive_fd < 0)
3719 interactive_fd = 0;
3725 debug_printf("interactive_fd=%d\n", interactive_fd);
3726 if (interactive_fd) {
3745 interactive_fd = fcntl(STDIN_FILENO, F_DUPFD, 255);
3746 if (interactive_fd < 0) {
3748 interactive_fd = dup(STDIN_FILENO);
3749 if (interactive_fd < 0)
3751 interactive_fd = 0;