Searched refs:masterfd (Results 1 - 9 of 9) sorted by relevance

/lxc/src/tests/
H A Dconsole.c40 int masterfd[MAXCONSOLES])
45 if (masterfd[i] != -1) {
46 close(masterfd[i]);
47 masterfd[i] = -1;
61 int masterfd[MAXCONSOLES]; local
64 ttynum[i] = ttyfd[i] = masterfd[i] = -1;
67 ret = c->console_getfd(c, &ttynum[0], &masterfd[0]);
79 ret = c->console_getfd(c, &ttynum[0], &masterfd[1]);
84 close(masterfd[0]); masterfd[
39 test_console_close_all(int ttyfd[MAXCONSOLES], int masterfd[MAXCONSOLES]) argument
[all...]
/lxc/src/lxc/
H A Dconsole.h37 int masterfd; member in struct:lxc_tty_state
132 int *masterfd);
H A Dconsole.c78 lxc_console_winsz(ts->stdinfd, ts->masterfd);
121 ts->masterfd = dstfd;
361 int masterfd = -1, ttynum; local
368 masterfd = console->peerpty.master;
396 masterfd = tty_info->pty_info[ttynum - 1].master;
398 return masterfd;
620 if (lxc_write_nointr(ts->masterfd, &c, 1) <= 0)
633 if (fd != ts->masterfd)
651 int lxc_console_getfd(struct lxc_container *c, int *ttynum, int *masterfd) argument
653 return lxc_cmd_console(c->name, ttynum, masterfd,
660 int ret, ttyfd, masterfd; local
[all...]
H A Dcommands.h67 int masterfd; member in struct:lxc_cmd_console_rsp_data
H A Dcommands.c196 rspdata->masterfd = rspfd;
728 if (rspdata->masterfd < 0) {
734 *fd = rspdata->masterfd;
746 int masterfd; local
749 masterfd = lxc_console_allocate(handler->conf, fd, &ttynum);
750 if (masterfd < 0)
755 if (lxc_abstract_unix_send_fd(fd, masterfd, &rsp, sizeof(rsp)) < 0) {
H A Dlxccontainer.h577 * \param[out] masterfd File descriptor referring to the master side of the pty.
589 int (*console_getfd)(struct lxc_container *c, int *ttynum, int *masterfd);
H A Dlxccontainer.c483 static int do_lxcapi_console_getfd(struct lxc_container *c, int *ttynum, int *masterfd) argument
489 ttyfd = lxc_console_getfd(c, ttynum, masterfd);
/lxc/src/python-lxc/examples/
H A Dpyconsole-vte.py40 masterfd = ct.console_getfd(ttynum)
46 term.set_pty(masterfd)
/lxc/src/python-lxc/
H A Dlxc.c819 int ttynum = -1, masterfd; local
825 &masterfd) < 0) {
829 return PyLong_FromLong(masterfd);

Completed in 181 milliseconds