Home
last modified time | relevance | path

Searched refs:Pfd (Results 1 – 8 of 8) sorted by relevance

/titanic_41/usr/src/cmd/ttymon/
H A Dtmsac.c87 extern int Pfd, Sfd; in openpipes()
93 Pfd = open(PMPIPE, O_RDWR|O_NONBLOCK); in openpipes()
94 if (Pfd < 0) in openpipes()
99 log("fd(pmpipe)\t = %d",Pfd); in openpipes()
185 ret = read(Pfd, &sacmsg, sizeof(sacmsg)); in sacpoll()
H A Dtmglobal.c41 int Sfd, Pfd; /* for sacpipe and pmpipe */ variable
H A Dtmextern.h132 extern int Sfd, Pfd;
H A Dtmhandler.c534 pfd[1].fd = Pfd; in sigpoll_catch()
H A Dttymon.c189 if (ioctl(Pfd, I_SETSIG, S_INPUT) < 0) in initialize()
/titanic_41/usr/src/cmd/utmpd/
H A Dutmpd.c142 static int Pfd = -1; /* File descriptor of named pipe */ variable
353 Pfd = -1; in load_tables()
605 if (Pfd < 0) { in setup_pipe()
611 Pfd = open(UTMPPIPE, O_RDWR | O_NDELAY); in setup_pipe()
613 if (Pfd < 0) in setup_pipe()
620 if (Pfd >= 0) { in setup_pipe()
627 (void) ioctl(Pfd, I_SRDOPT, RMSGD); in setup_pipe()
634 fdtable[0].fd = Pfd; /* Pfd could be -1, should be okay */ in setup_pipe()
657 if ((bytes_read = read(Pfd, p, sizeof (struct pidrec))) != in drain_pipe()
664 while (read(Pfd, p, sizeof (struct pidrec)) > 0) in drain_pipe()
/titanic_41/usr/src/cmd/syslogd/
H A Dsyslogd.c241 static struct pollfd Pfd; /* Pollfd for local the log device */ variable
585 Pfd.fd = funix; in prepare_sys_poll()
586 Pfd.events = POLLIN; in prepare_sys_poll()
589 nfds = poll(&Pfd, 1, 0); in prepare_sys_poll()
596 if (Pfd.revents & POLLIN) { in prepare_sys_poll()
598 } else if (Pfd.revents & (POLLNVAL|POLLHUP|POLLERR)) { in prepare_sys_poll()
638 nfds = poll(&Pfd, 1, INFTIM); in sys_poll()
648 if (Pfd.revents & POLLIN) { in sys_poll()
654 if (Pfd.revents & (POLLNVAL|POLLHUP|POLLERR)) { in sys_poll()
656 (void) close(Pfd.fd); in sys_poll()
[all …]
/titanic_41/usr/src/cmd/init/
H A Dinit.c504 static int Pfd = -1; /* fd to receive pids thru */ variable
2234 if (Pfd >= 0) in setup_pipe()
2235 (void) close(Pfd); in setup_pipe()
2239 Pfd = open(INITPIPE, O_RDWR | O_NDELAY); in setup_pipe()
2245 Pfd = open(INITPIPE, O_RDWR | O_NDELAY); in setup_pipe()
2248 if (Pfd >= 0) { in setup_pipe()
2249 (void) ioctl(Pfd, I_SETSIG, S_INPUT); in setup_pipe()
2253 (void) ioctl(Pfd, I_SRDOPT, RMSGD); in setup_pipe()
3624 if (Pfd < 0) { in sigpoll()
3635 if (read(Pfd, p, sizeof (struct pidrec)) != in sigpoll()