Home
last modified time | relevance | path

Searched refs:p_fd (Results 1 – 5 of 5) sorted by relevance

/titanic_41/usr/src/cmd/ttymon/
H A Dtmhandler.c110 pcsync_close(pcpipe0, pcpipe1, pid, pmptr->p_fd);
128 if (pmptr->p_fd > 0) {
129 (void)close(pmptr->p_fd);
130 pmptr->p_fd = 0;
136 pcsync_close(pcpipe0, pcpipe1, pid, pmptr->p_fd);
151 flush_input(pmptr->p_fd);
174 write_prompt(pmptr->p_fd,pmptr,TRUE,TRUE);
187 if (tm_checklock(pmptr->p_fd) != 0) {
189 (void)close(pmptr->p_fd);
190 pmptr->p_fd = 0;
[all …]
H A Dttymon.c255 if ((tp->p_status > 0) && (tp->p_fd == 0) && in initialize()
260 if (tp->p_fd > 0) in initialize()
288 if ((tp->p_status > 0) && (tp->p_fd == 0) && in open_all()
310 if (tp->p_fd > 0) in open_all()
315 (tp->p_fd > 0) && in open_all()
333 if (tp->p_fd > 0) in open_all()
405 if (pmptr->p_fd > 0) { /* file already open */
406 fd = pmptr->p_fd;
407 pmptr->p_fd = 0;
519 pmptr->p_fd = fd;
[all …]
H A Dtmchild.c94 if (pmtab->p_fd > 0) {
95 (void) close(pmtab->p_fd);
96 pmtab->p_fd = 0;
109 if (pmtab->p_fd >= 0) {
111 if (push_linedisc(pmtab->p_fd, pmtab->p_modules, pmtab->p_device) == -1) {
112 (void) close(pmtab->p_fd);
151 write_prompt(pmtab->p_fd, pmtab, TRUE, TRUE);
246 if ((pmtab->p_fd = open(pmtab->p_device, O_RDWR)) != 0) {
H A Dtmpmtab.c99 if (gptr->p_fd > 0) { in read_pmtab()
100 (void)close(gptr->p_fd); in read_pmtab()
101 gptr->p_fd = 0; in read_pmtab()
457 log("fd:\t\t%d", gptr->p_fd); in dump_pmtab()
582 sp->p_fd = tsp->p_fd;
H A Dtmstruct.h69 int p_fd; /* fd for the open device */ member