mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-05 21:37:22 +00:00
console: lxc_terminal_getfd()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
ee9102ff6e
commit
c86e25841c
@ -987,7 +987,7 @@ int lxc_terminal_master_cb(int fd, uint32_t events, void *cbdata,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int lxc_console_getfd(struct lxc_container *c, int *ttynum, int *masterfd)
|
||||
int lxc_terminal_getfd(struct lxc_container *c, int *ttynum, int *masterfd)
|
||||
{
|
||||
return lxc_cmd_console(c->name, ttynum, masterfd, c->config_path);
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ extern int lxc_console(struct lxc_container *c, int ttynum,
|
||||
* Set ttynum to -1 to allocate the first available pty, or to a value within
|
||||
* the range specified by lxc.tty.max to allocate a specific pty.
|
||||
*/
|
||||
extern int lxc_console_getfd(struct lxc_container *c, int *ttynum,
|
||||
extern int lxc_terminal_getfd(struct lxc_container *c, int *ttynum,
|
||||
int *masterfd);
|
||||
|
||||
/*
|
||||
|
@ -526,7 +526,7 @@ static int do_lxcapi_console_getfd(struct lxc_container *c, int *ttynum, int *ma
|
||||
if (!c)
|
||||
return -1;
|
||||
|
||||
return lxc_console_getfd(c, ttynum, masterfd);
|
||||
return lxc_terminal_getfd(c, ttynum, masterfd);
|
||||
}
|
||||
|
||||
WRAP_API_2(int, lxcapi_console_getfd, int *, int *)
|
||||
|
Loading…
Reference in New Issue
Block a user