Searched refs:Pfd (Results 1 – 8 of 8) sorted by relevance
/illumos-gate/usr/src/cmd/utmpd/ |
H A D | utmpd.c | 143 static int Pfd = -1; /* File descriptor of named pipe */ variable 354 Pfd = -1; in load_tables() 606 if (Pfd < 0) { in setup_pipe() 612 Pfd = open(UTMPPIPE, O_RDWR | O_NDELAY); in setup_pipe() 614 if (Pfd < 0) in setup_pipe() 621 if (Pfd >= 0) { in setup_pipe() 628 (void) ioctl(Pfd, I_SRDOPT, RMSGD); in setup_pipe() 635 fdtable[0].fd = Pfd; /* Pfd could be -1, should be okay */ in setup_pipe() 658 if ((bytes_read = read(Pfd, p, sizeof (struct pidrec))) != in drain_pipe() 665 while (read(Pfd, p, sizeof (struct pidrec)) > 0) in drain_pipe()
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmsac.c | 86 Pfd = open(PMPIPE, O_RDWR|O_NONBLOCK); in openpipes() 87 if (Pfd < 0) in openpipes() 92 log("fd(pmpipe)\t = %d", Pfd); in openpipes() 174 ret = read(Pfd, &sacmsg, sizeof (sacmsg)); in sacpoll()
|
H A D | tmglobal.c | 41 int Sfd, Pfd; /* for sacpipe and pmpipe */ variable
|
H A D | tmextern.h | 182 extern int Sfd, Pfd;
|
H A D | tmhandler.c | 507 pfd[1].fd = Pfd; in sigpoll_catch()
|
H A D | ttymon.c | 176 if (ioctl(Pfd, I_SETSIG, S_INPUT) < 0) in initialize()
|
/illumos-gate/usr/src/cmd/syslogd/ |
H A D | syslogd.c | 239 static struct pollfd Pfd; /* Pollfd for local the log device */ variable 583 Pfd.fd = funix; in prepare_sys_poll() 584 Pfd.events = POLLIN; in prepare_sys_poll() 587 nfds = poll(&Pfd, 1, 0); in prepare_sys_poll() 594 if (Pfd.revents & POLLIN) { in prepare_sys_poll() 596 } else if (Pfd.revents & (POLLNVAL|POLLHUP|POLLERR)) { in prepare_sys_poll() 636 nfds = poll(&Pfd, 1, INFTIM); in sys_poll() 646 if (Pfd.revents & POLLIN) { in sys_poll() 652 if (Pfd.revents & (POLLNVAL|POLLHUP|POLLERR)) { in sys_poll() 654 (void) close(Pfd.fd); in sys_poll() [all …]
|
/illumos-gate/usr/src/cmd/init/ |
H A D | init.c | 508 static int Pfd = -1; /* fd to receive pids thru */ variable 2196 if (Pfd >= 0) in setup_pipe() 2197 (void) close(Pfd); in setup_pipe() 2201 Pfd = open(INITPIPE, O_RDWR | O_NDELAY); in setup_pipe() 2207 Pfd = open(INITPIPE, O_RDWR | O_NDELAY); in setup_pipe() 2210 if (Pfd >= 0) { in setup_pipe() 2211 (void) ioctl(Pfd, I_SETSIG, S_INPUT); in setup_pipe() 2215 (void) ioctl(Pfd, I_SRDOPT, RMSGD); in setup_pipe() 3587 if (Pfd < 0) { in sigpoll() 3598 if (read(Pfd, p, sizeof (struct pidrec)) != in sigpoll()
|