Home | History | Annotate | Download | only in pending

Lines Matching refs:pty_fd

55   int new_fd, pty_fd;
310 int pty_fd, new_fd, c = 0, w, master_fd = 0;
322 pty_fd = new_session(master_fd); //master_fd = 0
323 if (pty_fd > TT.gmax_fd) TT.gmax_fd = pty_fd;
327 tm->pty_fd = pty_fd;
349 if (tm->pty_fd > 0 && tm->buff1_avail < BUFSIZE) FD_SET(tm->pty_fd, &rd);
351 if (tm->pty_fd > 0 && (tm->buff2_avail - tm->buff2_written) > 0)
352 FD_SET(tm->pty_fd, &wr);
369 pty_fd = new_session(new_fd);
370 if (pty_fd > TT.gmax_fd) TT.gmax_fd = pty_fd;
375 tm->pty_fd = pty_fd;
384 if (FD_ISSET(tm->pty_fd, &rd)) {
385 if ((c = read(tm->pty_fd, tm->buff1 + tm->buff1_avail,
395 c = handle_iacs(tm, c, tm->pty_fd);
397 if ((w = write(tm->pty_fd, tm->buff2+ tm->buff2_written,
401 if (FD_ISSET(tm->pty_fd, &wr)) {
402 if ((w = write(tm->pty_fd, tm->buff2 + tm->buff2_written,
441 xclose(tm->pty_fd);