Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
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);
}
* 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);
/*
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 *)