version 1.16, 2009/07/27 11:33:21 |
version 1.17, 2009/08/03 14:10:54 |
|
|
} |
} |
|
|
int |
int |
tty_open(struct tty *tty, char **cause) |
tty_open(struct tty *tty, const char *overrides, char **cause) |
{ |
{ |
int mode; |
int mode; |
|
|
|
|
else |
else |
tty->log_fd = -1; |
tty->log_fd = -1; |
|
|
if ((tty->term = tty_term_find(tty->termname, tty->fd, cause)) == NULL) |
tty->term = tty_term_find(tty->termname, tty->fd, overrides, cause); |
|
if (tty->term == NULL) |
goto error; |
goto error; |
|
|
tty->in = buffer_create(BUFSIZ); |
tty->in = buffer_create(BUFSIZ); |