/illumos-gate/usr/src/cmd/sckmd/sparc/sun4u/ |
H A D | sckmd.c | 374 struct pollfd pfd; local 398 pfd.fd = keysock; 399 pfd.events = POLLIN; 405 pfd.revents = 0; 406 pollstatus = poll(&pfd, 1, timeout);
|
/illumos-gate/usr/src/cmd/audio/audiorecord/ |
H A D | audiorecord.c | 185 struct pollfd pfd; local 643 pfd.fd = Audio_fd; 644 pfd.events = POLLIN; 660 (void) poll(&pfd, 1L, -1);
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbiod-svc/ |
H A D | smbiod-svc.c | 177 daemonize_fini(int pfd, int rc) argument 180 (void) write(pfd, &rc, sizeof (rc)); 181 close(pfd); 190 int door_fd = -1, tmp_fd = -1, pfd = -1; local 253 pfd = daemonize_init(); 296 if (pfd != -1) { 297 daemonize_fini(pfd, rc); 298 pfd = -1; 346 if (pfd != -1) 347 daemonize_fini(pfd, r [all...] |
/illumos-gate/usr/src/cmd/sgs/librtld/common/ |
H A D | dldump.c | 169 int pfd; local 176 if ((pfd = open(proc, O_RDONLY)) == -1) { 189 if ((fd = ioctl(pfd, PIOCOPENM, (void *)0)) == -1) { 193 (void) close(pfd); 206 if (ioctl(pfd, PIOCSTATUS, (void *)&_status) == -1) { 211 (void) close(pfd); 217 (void) close(pfd);
|
/illumos-gate/usr/src/uts/common/fs/portfs/ |
H A D | port_fd.c | 81 portfd_t *pfd = (portfd_t *)arg; local 82 polldat_t *pdp = PFTOD(pfd); 123 port_pcache_remove_fd(pcp, pfd); 183 portfd_t *pfd; local 221 pfd = NULL; 224 pfd = port_cache_lookup_fp(pcp, fd, fp); 227 if (pfd == NULL) { 235 pfd = kmem_zalloc(sizeof (portfd_t), KM_SLEEP); 236 pdp = PFTOD(pfd); 245 kmem_free(pfd, sizeo 447 portfd_t *pfd; local 560 portfd_t *pfd; local [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | port_subr.c | 549 port_pcache_remove_fd(port_fdcache_t *pcp, portfd_t *pfd) argument 554 polldat_t *pdp = PFTOD(pfd); 569 kmem_free(pfd, sizeof (portfd_t)); 591 kmem_free(pfd, sizeof (portfd_t)); 617 port_remove_fd_object(portfd_t *pfd, port_t *pp, port_fdcache_t *pcp) argument 620 polldat_t *pdp = PFTOD(pfd); 656 port_pcache_remove_fd(pcp, pfd); 668 port_close_pfd(portfd_t *pfd) argument 676 ASSERT(curproc->p_pid == PFTOD(pfd)->pd_portev->portkev_pid); 677 pp = PFTOD(pfd) [all...] |
H A D | klpd.c | 763 klpd_reg_t *pfd; local 770 pfd = myzone->zone_pfexecd; 771 if (pfd != NULL && pfd->klpd_door == dh) { 772 klpd_unlink(pfd); 774 pfd = NULL; 783 if (pfd != NULL) 784 klpd_rele(pfd); 847 klpd_reg_t *pfd; local 861 if ((pfd 1001 klpd_reg_t *pfd; local 1091 klpd_reg_t *pfd; local [all...] |
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | clnt_bcast.c | 130 struct pollfd pfd[MAXBCAST]; local 212 pfd[fdlistno].events = POLLIN | POLLPRI | 214 pfd[fdlistno].fd = fdlist[fdlistno].fd = fd; 453 switch (pollretval = poll(pfd, fdlistno, msec)) { 469 if (pfd[i].revents == 0) 471 else if (pfd[i].revents & POLLNVAL) { 476 * rather than compacting the pfd[] and fdlist[] 479 pfd[i].fd = -1;
|
H A D | svc_vc.c | 1295 struct pollfd pfd; local 1332 pfd.fd = fd; 1333 pfd.events = MASKVAL; 1336 if ((ret = poll(&pfd, 1, WAIT_PER_TRY)) <= 0) { 1346 } while (pfd.revents == 0); 1347 if (pfd.revents & POLLNVAL) 1533 struct pollfd pfd; local 1570 pfd.fd = xprt->xp_fd; 1571 pfd.events = POLLWRNORM; 1598 if (poll(&pfd, [all...] |
/illumos-gate/usr/src/cmd/vscan/vscand/ |
H A D | vs_eng.c | 757 struct pollfd pfd; local 768 pfd.fd = sockfd; 769 pfd.events = POLLOUT; 770 pfd.revents = 0; 772 if ((rc = poll(&pfd, 1, vs_connect_timeout)) <= 0) { 777 if ((pfd.revents & 779 (!(pfd.revents & POLLOUT))) {
|
H A D | vs_main.c | 151 int err_stat = 0, pfd = -1; local 225 * "pfd" is a pipe descriptor -- any fatal errors 230 pfd = vscand_daemonize_init(); 237 vscand_daemonize_fini(pfd, err_stat);
|
/illumos-gate/usr/src/cmd/cvcd/sparc/sun4u/starfire/ |
H A D | cvcd.c | 581 cvcd_connect(int fd, struct pollfd *pfd) argument 608 if (pfd[0].fd != -1) { 681 pfd[0].fd = newfd; 682 pfd[0].events = POLLIN;
|
/illumos-gate/usr/src/cmd/sendmail/libmilter/ |
H A D | worker.c | 304 #define WAIT_FD(i) (pfd[i].fd) 311 struct pollfd *pfd = NULL; local 324 pfd = (struct pollfd *) malloc(PFD_STEP * sizeof(struct pollfd)); 325 if (pfd == NULL) 395 pfd[nfd].fd = RD_PIPE; 396 pfd[nfd].events = MI_POLL_RD_FLAGS; 397 pfd[nfd].revents = 0; 427 realloc(pfd, new); 430 pfd = tpfd; 445 pfd[nf [all...] |
/illumos-gate/usr/src/cmd/bdiff/ |
H A D | bdiff.c | 95 int pfd[2]; local 267 if ((pipe(pfd)) == -1) 270 (void) close(pfd[0]); 271 (void) close(pfd[1]); 274 (void) close(pfd[0]); 276 (void) dup(pfd[1]); 277 (void) close(pfd[1]); 296 (void) close(pfd[1]); 297 pipeinp = fdopen(pfd[0], "r");
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_main.c | 102 int pfd = -1; local 172 * "pfd" is a pipe descriptor -- any fatal errors 177 pfd = smbd_daemonize_init(); 184 smbd_daemonize_fini(pfd, SMF_EXIT_OK);
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_net.c | 200 struct pollfd pfd[1]; local 226 pfd[0].fd = sockfd; 227 pfd[0].events = POLLRDNORM; 254 0, &timeout, sent, &now, pfd, 1); 262 /* only using one fd, so no need to scan pfd */ 341 struct pollfd *pfd; local 351 if (make_mc_target(hp, sin, header, &pfd, &nfds, &bcifs) != SLP_OK) 375 if (mc_sendmsg(pfd, msg, &bcifs) != SLP_OK) { 381 mc_recvmsg(pfd, nfds, hp, scopes, header, &collator, final_to, 392 /* close all fds in pfd */ 1006 mc_recvmsg(struct pollfd *pfd, nfds_t nfds, slp_handle_impl_t *hp, const char *scopes, char *header, void **collator, unsigned long long final_to, unsigned long long sent, unsigned long long *now, int *noresults, int *anyresults, int timeout) argument 1156 wait_for_response( unsigned long long final_to, int *timeout, unsigned long long sent, unsigned long long *now, struct pollfd pfd[], nfds_t nfds) argument [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_proc.c | 401 int pfd = Pctlfd(P); local 418 if (write(pfd, &wstop, sizeof (wstop)) == -1 && errno == EINTR) 470 int pfd = Pctlfd(P); local 546 if (write(pfd, &wstop, sizeof (wstop)) == -1 && errno == EINTR)
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | client.c | 241 struct pollfd pfd; local 256 pfd.fd = sock; 257 pfd.events = POLLIN; 273 pfd.revents = 0; 274 poll_ret = poll(&pfd, 1, maxsecs * MILLISEC); 282 if (pfd.revents & (POLLERR | POLLHUP | POLLNVAL)) { 431 pfd.revents = 0; 432 poll_ret = poll(&pfd, 1, maxsecs * MILLISEC); 440 if (pfd.revents & (POLLERR | POLLHUP | POLLNVAL)) {
|
/illumos-gate/usr/src/cmd/utmpd/ |
H A D | utmpd.c | 369 register struct pollfd *pfd; local 456 pfd = &fdtable[i]; 458 if (pfd->fd < 0) { 465 if (pfd->revents & POLLHUP) { 468 if (pread(pfd->fd, &psinfo, sizeof (psinfo), (off_t)0) 491 if (pfd->revents & (POLLNVAL|POLLERR)) { 493 pfd->revents, (int)pidtable[i].pl_pid, i)); 501 if (pfd->revents & POLLNVAL) { 519 if (pfd->revents != 0) { 521 (int)pidtable[i].pl_pid, pfd [all...] |
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd.c | 809 fmd_run(fmd_t *dp, int pfd) argument 988 if (pfd >= 0) 989 (void) write(pfd, &status, sizeof (status));
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | netcat.c | 670 struct pollfd pfd[2]; local 679 pfd[0].fd = nfd; 680 pfd[0].events = POLLIN; 683 pfd[1].fd = wfd; 684 pfd[1].events = POLLIN; 686 while (pfd[0].fd != -1) { 690 if ((n = poll(pfd, 2 - dflag, timeout)) < 0) { 698 if (pfd[0].revents & (POLLIN|POLLHUP)) { 703 pfd[0].fd = -1; 704 pfd[ [all...] |
/illumos-gate/usr/src/lib/watchmalloc/common/ |
H A D | malloc.c | 1339 int pfd; local 1351 if ((pfd = open("/proc/self/status", O_RDONLY)) >= 0) { 1352 if (read(pfd, &pstatus, sizeof (pstatus)) 1355 (void) close(pfd);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu_traverse.c | 204 prefetch_needed(prefetch_data_t *pfd, const blkptr_t *bp) argument 206 ASSERT(pfd->pd_flags & TRAVERSE_PREFETCH_DATA); 496 prefetch_data_t *pfd = arg; local 499 ASSERT(pfd->pd_bytes_fetched >= 0); 502 if (pfd->pd_cancel) 505 if (!prefetch_needed(pfd, bp)) 508 mutex_enter(&pfd->pd_mtx); 509 while (!pfd->pd_cancel && pfd->pd_bytes_fetched >= zfs_pd_bytes_max) 510 cv_wait(&pfd [all...] |
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devperm.c | 786 FILE *pfd; local 814 if ((pfd = fopen(MINOR_PERM_FILE, "r")) == NULL) { 818 while (fgets(line, MAX_MINOR_PERM_LINE, pfd) != NULL) { 947 if (fclose(pfd) == EOF) {
|
/illumos-gate/usr/src/lib/libdlpi/common/ |
H A D | libdlpi.c | 1311 struct pollfd pfd; local 1329 pfd.fd = fd; 1330 pfd.events = POLLIN | POLLPRI; 1344 switch (poll(&pfd, 1, msec)) { 1346 if (pfd.revents & POLLHUP)
|