Home
last modified time | relevance | path

Searched refs:tty_name (Results 1 – 5 of 5) sorted by relevance

/external/toybox/toys/pending/
Dgetty.c39 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(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()
Dinit.c126 char *p, *q, *extracted_token, *tty_name = NULL, *command = NULL, *tmp; in inittab_parsing() local
144 tty_name = command = NULL; in inittab_parsing()
152 tty_name = xmprintf("%s",extracted_token); in inittab_parsing()
153 else tty_name = xmprintf("/dev/%s",extracted_token); in inittab_parsing()
154 } else tty_name = xstrdup(""); in inittab_parsing()
178 free(tty_name); in inittab_parsing()
182 if (action) add_new_action(action, command, tty_name); in inittab_parsing()
183 free(tty_name); in inittab_parsing()
Dtelnetd.c185 char tty_name[30]; //tty name length. in new_session() local
196 if ((TT.fork_pid = forkpty(&fd, tty_name, NULL, NULL)) > 0) { in new_session()
202 write_issue(tty_name); in new_session()
/external/selinux/policycoreutils/newrole/
Dnewrole.c190 const char *tty_name; in authenticate_via_pam() local
194 tty_name = ttyn + 5; in authenticate_via_pam()
196 tty_name = ttyn; in authenticate_via_pam()
198 pam_rc = pam_set_item(pam_handle, PAM_TTY, tty_name); in authenticate_via_pam()
/external/toybox/generated/
Dglobals.h559 char *tty_name; member