/busybox-1.35.0/libbb/ |
D | utmp.c | 17 void FAST_FUNC write_new_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, … in write_new_utmp() argument 26 tty_name = skip_dev_pfx(tty_name); in write_new_utmp() 27 safe_strncpy(utent.ut_line, tty_name, sizeof(utent.ut_line)); in write_new_utmp() 38 if (tty_name[0] == 'p') { in write_new_utmp() 44 if (strlen(tty_name) > 3) in write_new_utmp() 45 tty_name += 3; in write_new_utmp() 46 strncpy(id, tty_name, width); in write_new_utmp() 65 void FAST_FUNC update_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, con… in update_utmp() argument 103 write_new_utmp(pid, new_type, tty_name, username, hostname); in update_utmp() 114 if (tty_name) in update_utmp() [all …]
|
D | skip_whitespace.c | 33 char* FAST_FUNC skip_dev_pfx(const char *tty_name) in skip_dev_pfx() argument 35 char *unprefixed = is_prefixed_with(tty_name, "/dev/"); in skip_dev_pfx() 36 return unprefixed ? unprefixed : (char*)tty_name; in skip_dev_pfx()
|
/busybox-1.35.0/console-tools/ |
D | kbd_mode.c | 45 const char *tty_name; in kbd_mode_main() local 47 opt = getopt32(argv, "sakuC:", &tty_name); in kbd_mode_main() 50 fd = xopen_nonblocking(tty_name); in kbd_mode_main()
|
D | loadfont.c | 435 const char *tty_name = CURRENT_TTY; in setfont_main() local 437 opts = getopt32(argv, "^" "m:C:" "\0" "=1", &mapfilename, &tty_name); in setfont_main() 440 fd = xopen_nonblocking(tty_name); in setfont_main()
|
/busybox-1.35.0/loginutils/ |
D | getty.c | 101 const char *tty_name; member 195 G.tty_name = argv[0]; in parse_args() 199 G.tty_name = ts; /* tty name is in argv[1] */ in parse_args() 214 if (NOT_LONE_DASH(G.tty_name)) { in open_tty() 215 if (G.tty_name[0] != '/') in open_tty() 216 G.tty_name = xasprintf("/dev/%s", G.tty_name); /* will leak it */ in open_tty() 221 xopen(G.tty_name, O_RDWR | O_NONBLOCK); /* uses fd 0 */ in open_tty() 238 G.tty_name = n; in open_tty() 240 applet_name = xasprintf("getty: %s", skip_dev_pfx(G.tty_name)); in open_tty() 475 print_login_issue(G.issue, G.tty_name); in get_logname() [all …]
|
/busybox-1.35.0/miscutils/ |
D | conspy.c | 333 static NOINLINE void start_shell_in_child(const char* tty_name) in start_shell_in_child() argument 345 xopen(tty_name, O_RDWR); // uses fd 0 in start_shell_in_child() 364 char tty_name[sizeof(DEV_TTY "NN")]; in conspy_main() local 394 sprintf(tty_name, "%s%u", DEV_TTY, ttynum); in conspy_main() 397 create_cdev_if_doesnt_exist(tty_name, makedev(4, ttynum)); in conspy_main() 401 start_shell_in_child(tty_name); in conspy_main() 538 handle = xopen(tty_name, O_WRONLY); in conspy_main()
|
D | less.c | 1809 char *tty_name; in less_main() local 1876 tty_name = xmalloc_ttyname(STDOUT_FILENO); in less_main() 1877 if (tty_name) { in less_main() 1878 tty_fd = open(tty_name, O_RDONLY); in less_main() 1879 free(tty_name); in less_main()
|
/busybox-1.35.0/networking/ |
D | telnetd.c | 438 char tty_name[GETPTY_BUFSIZE]; in make_new_session() local 445 fd = xgetpty(tty_name); in make_new_session() 529 write_new_utmp(pid, LOGIN_PROCESS, tty_name, /*username:*/ "LOGIN", hostname); in make_new_session() 540 xopen(tty_name, O_RDWR); /* becomes our ctty */ in make_new_session() 561 print_login_issue(G.issuefile, tty_name); in make_new_session()
|
D | telnetd.ctrlSQ.patch | 72 char tty_name[GETPTY_BUFSIZE];
|
/busybox-1.35.0/init/ |
D | init.c | 390 static int open_stdio_to_tty(const char* tty_name) in open_stdio_to_tty() argument 393 if (tty_name[0]) { in open_stdio_to_tty() 398 fd = device_open(tty_name, O_RDWR); in open_stdio_to_tty() 401 tty_name in open_stdio_to_tty()
|
/busybox-1.35.0/include/ |
D | libbb.h | 411 extern char *skip_dev_pfx(const char *tty_name) FAST_FUNC; 1197 void FAST_FUNC write_new_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, … 1198 void FAST_FUNC update_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, con… 1201 # define write_new_utmp(pid, new_type, tty_name, username, hostname) ((void)0) argument 1202 # define update_utmp(pid, new_type, tty_name, username, hostname) ((void)0) argument
|