Lines Matching defs:pty_fd
42 int new_fd, pty_fd;
275 int pty_fd, new_fd, c = 0, w, master_fd = 0;
286 pty_fd = new_session(master_fd); //master_fd = 0
287 if (pty_fd > TT.gmax_fd) TT.gmax_fd = pty_fd;
291 tm->pty_fd = pty_fd;
313 if (tm->pty_fd > 0 && tm->buff1_avail < BUFSIZE) FD_SET(tm->pty_fd, &rd);
315 if (tm->pty_fd > 0 && (tm->buff2_avail - tm->buff2_written) > 0)
316 FD_SET(tm->pty_fd, &wr);
333 pty_fd = new_session(new_fd);
334 if (pty_fd > TT.gmax_fd) TT.gmax_fd = pty_fd;
339 tm->pty_fd = pty_fd;
348 if (FD_ISSET(tm->pty_fd, &rd)) {
349 if ((c = read(tm->pty_fd, tm->buff1 + tm->buff1_avail,
363 xclose(tm->pty_fd);
364 tm->pty_fd = -1;
367 c = handle_iacs(tm, c, tm->pty_fd);
369 if ((w = write(tm->pty_fd, tm->buff2+ tm->buff2_written,
373 if (FD_ISSET(tm->pty_fd, &wr)) {
374 if ((w = write(tm->pty_fd, tm->buff2 + tm->buff2_written,
412 xclose(tm->pty_fd);