Searched refs:tty_name (Results 1 - 25 of 50) sorted by relevance

12

/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/busybox/libbb/
H A Dskip_whitespace.c34 char* FAST_FUNC skip_dev_pfx(const char *tty_name) argument
36 if (strncmp(tty_name, "/dev/", 5) == 0)
37 tty_name += 5;
38 return (char*)tty_name;
H A Dutmp.c18 void FAST_FUNC write_new_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, const char *hostname) argument
27 tty_name = skip_dev_pfx(tty_name);
28 safe_strncpy(utent.ut_line, tty_name, sizeof(utent.ut_line));
39 if (tty_name[0] == 'p') {
45 if (strlen(tty_name) > 3)
46 tty_name += 3;
47 strncpy(id, tty_name, width);
66 void FAST_FUNC update_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, const char *hostname) argument
104 write_new_utmp(pid, new_type, tty_name, usernam
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/busybox/libbb/
H A Dskip_whitespace.c34 char* FAST_FUNC skip_dev_pfx(const char *tty_name) argument
36 if (strncmp(tty_name, "/dev/", 5) == 0)
37 tty_name += 5;
38 return (char*)tty_name;
H A Dutmp.c18 void FAST_FUNC write_new_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, const char *hostname) argument
27 tty_name = skip_dev_pfx(tty_name);
28 safe_strncpy(utent.ut_line, tty_name, sizeof(utent.ut_line));
39 if (tty_name[0] == 'p') {
45 if (strlen(tty_name) > 3)
46 tty_name += 3;
47 strncpy(id, tty_name, width);
66 void FAST_FUNC update_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, const char *hostname) argument
104 write_new_utmp(pid, new_type, tty_name, usernam
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/busybox/libbb/
H A Dskip_whitespace.c34 char* FAST_FUNC skip_dev_pfx(const char *tty_name) argument
36 if (strncmp(tty_name, "/dev/", 5) == 0)
37 tty_name += 5;
38 return (char*)tty_name;
H A Dutmp.c18 void FAST_FUNC write_new_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, const char *hostname) argument
27 tty_name = skip_dev_pfx(tty_name);
28 safe_strncpy(utent.ut_line, tty_name, sizeof(utent.ut_line));
39 if (tty_name[0] == 'p') {
45 if (strlen(tty_name) > 3)
46 tty_name += 3;
47 strncpy(id, tty_name, width);
66 void FAST_FUNC update_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, const char *hostname) argument
104 write_new_utmp(pid, new_type, tty_name, usernam
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/busybox/console-tools/
H A Dkbd_mode.c25 const char *tty_name = CURRENT_TTY; local
27 opt = getopt32(argv, "sakuC:", &tty_name);
28 fd = xopen_nonblocking(tty_name);
H A Dloadfont.c373 const char *tty_name = CURRENT_TTY; local
376 opts = getopt32(argv, "m:C:", &mapfilename, &tty_name);
379 fd = xopen_nonblocking(tty_name);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/busybox/console-tools/
H A Dkbd_mode.c25 const char *tty_name = CURRENT_TTY; local
27 opt = getopt32(argv, "sakuC:", &tty_name);
28 fd = xopen_nonblocking(tty_name);
H A Dloadfont.c373 const char *tty_name = CURRENT_TTY; local
376 opts = getopt32(argv, "m:C:", &mapfilename, &tty_name);
379 fd = xopen_nonblocking(tty_name);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/busybox/console-tools/
H A Dkbd_mode.c25 const char *tty_name = CURRENT_TTY; local
27 opt = getopt32(argv, "sakuC:", &tty_name);
28 fd = xopen_nonblocking(tty_name);
H A Dloadfont.c373 const char *tty_name = CURRENT_TTY; local
376 opts = getopt32(argv, "m:C:", &mapfilename, &tty_name);
379 fd = xopen_nonblocking(tty_name);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/busybox/miscutils/
H A Dconspy.c310 static NOINLINE void start_shell_in_child(const char* tty_name) argument
324 xopen(tty_name, O_RDWR); // uses fd 0
343 char tty_name[sizeof("/dev/ttyNN")]; local
372 sprintf(tty_name, "%s%u", "/dev/tty", ttynum);
375 create_cdev_if_doesnt_exist(tty_name, makedev(4, ttynum));
379 start_shell_in_child(tty_name);
515 handle = xopen(tty_name, O_WRONLY);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/busybox/miscutils/
H A Dconspy.c310 static NOINLINE void start_shell_in_child(const char* tty_name) argument
324 xopen(tty_name, O_RDWR); // uses fd 0
343 char tty_name[sizeof("/dev/ttyNN")]; local
372 sprintf(tty_name, "%s%u", "/dev/tty", ttynum);
375 create_cdev_if_doesnt_exist(tty_name, makedev(4, ttynum));
379 start_shell_in_child(tty_name);
515 handle = xopen(tty_name, O_WRONLY);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/busybox/miscutils/
H A Dconspy.c310 static NOINLINE void start_shell_in_child(const char* tty_name) argument
324 xopen(tty_name, O_RDWR); // uses fd 0
343 char tty_name[sizeof("/dev/ttyNN")]; local
372 sprintf(tty_name, "%s%u", "/dev/tty", ttynum);
375 create_cdev_if_doesnt_exist(tty_name, makedev(4, ttynum));
379 start_shell_in_child(tty_name);
515 handle = xopen(tty_name, O_WRONLY);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/input/serio/
H A Dserport.c161 snprintf(serio->phys, sizeof(serio->phys), "%s/serio0", tty_name(tty, name));
170 printk(KERN_INFO "serio: Serial port %s\n", tty_name(tty, name));
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/input/serio/
H A Dserport.c161 snprintf(serio->phys, sizeof(serio->phys), "%s/serio0", tty_name(tty, name));
170 printk(KERN_INFO "serio: Serial port %s\n", tty_name(tty, name));
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/busybox/networking/
H A Dtelnetd.c235 char tty_name[GETPTY_BUFSIZE]; local
242 fd = xgetpty(tty_name);
325 write_new_utmp(pid, LOGIN_PROCESS, tty_name, /*username:*/ "LOGIN", hostname);
336 xopen(tty_name, O_RDWR); /* becomes our ctty */
358 print_login_issue(G.issuefile, tty_name);
455 update_utmp(pid, DEAD_PROCESS, /*tty_name:*/ NULL, /*username:*/ NULL, /*hostname:*/ NULL);
724 update_utmp(ts->shell_pid, DEAD_PROCESS, /*tty_name:*/ NULL, /*username:*/ NULL, /*hostname:*/ NULL);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/busybox/networking/
H A Dtelnetd.c235 char tty_name[GETPTY_BUFSIZE]; local
242 fd = xgetpty(tty_name);
325 write_new_utmp(pid, LOGIN_PROCESS, tty_name, /*username:*/ "LOGIN", hostname);
336 xopen(tty_name, O_RDWR); /* becomes our ctty */
358 print_login_issue(G.issuefile, tty_name);
455 update_utmp(pid, DEAD_PROCESS, /*tty_name:*/ NULL, /*username:*/ NULL, /*hostname:*/ NULL);
724 update_utmp(ts->shell_pid, DEAD_PROCESS, /*tty_name:*/ NULL, /*username:*/ NULL, /*hostname:*/ NULL);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/busybox/networking/
H A Dtelnetd.c235 char tty_name[GETPTY_BUFSIZE]; local
242 fd = xgetpty(tty_name);
325 write_new_utmp(pid, LOGIN_PROCESS, tty_name, /*username:*/ "LOGIN", hostname);
336 xopen(tty_name, O_RDWR); /* becomes our ctty */
358 print_login_issue(G.issuefile, tty_name);
455 update_utmp(pid, DEAD_PROCESS, /*tty_name:*/ NULL, /*username:*/ NULL, /*hostname:*/ NULL);
724 update_utmp(ts->shell_pid, DEAD_PROCESS, /*tty_name:*/ NULL, /*username:*/ NULL, /*hostname:*/ NULL);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/busybox/init/
H A Dinit.c245 static int open_stdio_to_tty(const char* tty_name) argument
247 /* empty tty_name means "use init's tty", else... */
248 if (tty_name[0]) {
253 fd = device_open(tty_name, O_RDWR);
256 tty_name, strerror(errno));
421 update_utmp(pid, DEAD_PROCESS, /*tty_name:*/ NULL, /*username:*/ NULL, /*hostname:*/ NULL);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/busybox/init/
H A Dinit.c245 static int open_stdio_to_tty(const char* tty_name) argument
247 /* empty tty_name means "use init's tty", else... */
248 if (tty_name[0]) {
253 fd = device_open(tty_name, O_RDWR);
256 tty_name, strerror(errno));
421 update_utmp(pid, DEAD_PROCESS, /*tty_name:*/ NULL, /*username:*/ NULL, /*hostname:*/ NULL);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/busybox/init/
H A Dinit.c245 static int open_stdio_to_tty(const char* tty_name) argument
247 /* empty tty_name means "use init's tty", else... */
248 if (tty_name[0]) {
253 fd = device_open(tty_name, O_RDWR);
256 tty_name, strerror(errno));
421 update_utmp(pid, DEAD_PROCESS, /*tty_name:*/ NULL, /*username:*/ NULL, /*hostname:*/ NULL);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/char/
H A Dtty_io.c228 * tty_name - return tty naming
238 char *tty_name(struct tty_struct *tty, char *buf) function
247 EXPORT_SYMBOL(tty_name); variable
672 printk(KERN_DEBUG "%s hangup...\n", tty_name(tty, buf));
693 printk(KERN_DEBUG "%s vhangup...\n", tty_name(tty, buf));
1572 tty_name(tty, buf), tty->count);
1655 "active!\n", tty_name(tty, buf));
1670 o_tty->count, tty_name(o_tty, buf));
1676 tty->count, tty_name(tty, buf));
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/char/
H A Dtty_io.c228 * tty_name - return tty naming
238 char *tty_name(struct tty_struct *tty, char *buf) function
247 EXPORT_SYMBOL(tty_name); variable
672 printk(KERN_DEBUG "%s hangup...\n", tty_name(tty, buf));
693 printk(KERN_DEBUG "%s vhangup...\n", tty_name(tty, buf));
1572 tty_name(tty, buf), tty->count);
1655 "active!\n", tty_name(tty, buf));
1670 o_tty->count, tty_name(o_tty, buf));
1676 tty->count, tty_name(tty, buf));

Completed in 309 milliseconds

12