- Rename getpty() to xgetpty() and adjust callers.
- Rewrite kbd_mode and setconsole - Introduce and use console_make_active() and xopen_xwrite_close() - honour buffer-reservation method as set by the user (dumpkmap, loadkmap) - shrink rtcwake and some console-tools Saves about 270 Bytes
This commit is contained in:
parent
ee56e013cf
commit
ae4342ca3e
18 changed files with 136 additions and 142 deletions
|
@ -69,10 +69,7 @@ int script_main(int argc ATTRIBUTE_UNUSED, char **argv)
|
|||
shell = DEFAULT_SHELL;
|
||||
}
|
||||
|
||||
pty = getpty(pty_line);
|
||||
if (pty < 0) {
|
||||
bb_perror_msg_and_die("can't get pty");
|
||||
}
|
||||
pty = xgetpty(pty_line);
|
||||
|
||||
/* get current stdin's tty params */
|
||||
attr_ok = tcgetattr(0, &tt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue