Searched refs:tty_name (Results 1 – 5 of 5) sorted by relevance
/third_party/toybox/toys/pending/ |
D | getty.c | 39 char *tty_name; 111 if (*++toys.optargs) TT.tty_name = xmprintf("%s", *toys.optargs); in parse_arguments() 113 TT.tty_name = xmprintf("%s", *toys.optargs); in parse_arguments() 122 if (strcmp(TT.tty_name, "-")) { in open_tty() 123 if (*(TT.tty_name) != '/') TT.tty_name = xmprintf("/dev/%s", TT.tty_name); in open_tty() 131 xopen_stdio(TT.tty_name, O_RDWR|O_NDELAY|O_CLOEXEC); in open_tty() 136 if (!isatty(0)) perror_exit("/dev/%s: not a tty", TT.tty_name); in open_tty() 137 chown(TT.tty_name, 0, 0); // change ownership, Hope login will change this in open_tty() 138 chmod(TT.tty_name, 0620); in open_tty() 236 if (*ch == 'l') fputs(TT.tty_name, stdout); in write_issue()
|
D | init.c | 140 char *p = line, *x, *tty_name = 0, *command = 0, *extracted_token, *tmp; in parse_inittab() local 153 tty_name = xmprintf("%s",extracted_token); in parse_inittab() 154 else tty_name = xmprintf("/dev/%s",extracted_token); in parse_inittab() 155 } else tty_name = xstrdup(""); in parse_inittab() 177 if (token_count == 4 && action) add_new_action(action, command, tty_name); in parse_inittab() 178 free(tty_name); in parse_inittab()
|
D | telnetd.c | 151 char tty_name[30]; //tty name length. in new_session() local 161 if ((TT.fork_pid = forkpty(&fd, tty_name, NULL, NULL)) > 0) return fd; in new_session() 168 write_issue(tty_name); in new_session()
|
/third_party/python/Lib/ |
D | pty.py | 66 def slave_open(tty_name): argument 72 result = os.open(tty_name, os.O_RDWR)
|
/third_party/toybox/generated/ |
D | globals.h | 679 char *tty_name; member
|