Lines Matching refs:ttynum
59 int ttynum [MAXCONSOLES];
64 ttynum[i] = ttyfd[i] = masterfd[i] = -1;
66 ttynum[0] = 1;
67 ret = c->console_getfd(c, &ttynum[0], &masterfd[0]);
73 if (ttynum[0] != 1) {
74 TSTERR("console allocate got bad ttynum %d", ttynum[0]);
78 /* attempt to alloc same ttynum */
79 ret = c->console_getfd(c, &ttynum[0], &masterfd[1]);
81 TSTERR("console allocate should fail for allocated ttynum %d", ttynum[0]);
92 ret = c->console_getfd(c, &ttynum[nrconsoles], &masterfd[nrconsoles]);