Searched refs:pfd (Results 1 - 25 of 72) sorted by relevance

123

/illumos-gate/usr/src/cmd/ptools/pwait/
H A Dpwait.c54 struct pollfd *pfd; local
117 pfd = &pollfd[i];
118 if ((pfd->fd = open(psinfofile, O_RDONLY)) >= 0) {
125 pfd->events = POLLPRI;
126 pfd->revents = 0;
144 pfd = &pollfd[i];
145 if (pfd->fd < 0 || (pfd->revents & ~POLLPRI) == 0) {
150 pfd->events = 0;
151 pfd
[all...]
/illumos-gate/usr/src/cmd/sgs/libcrle/common/
H A D_crle.h41 extern int pfd;
H A Daudit.c64 int pfd; variable
82 pfd = atoi(str);
124 (void) write(pfd, buffer, strlen(buffer));
149 (void) write(pfd, buffer, strlen(buffer));
/illumos-gate/usr/src/lib/libwanboot/common/
H A Dsocket_inet.c51 struct pollfd pfd; local
53 pfd.fd = fildes;
54 pfd.events = POLLIN;
56 switch (poll(&pfd, 1, read_timeout * 1000)) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Datomicio.c49 struct pollfd pfd; local
51 pfd.fd = fd;
52 pfd.events = f == read ? POLLIN : POLLOUT;
60 (void) poll(&pfd, 1, -1);
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dmdestroy.c43 struct pollfd pfd; local
54 pfd.fd = md->readfd;
55 pfd.events = POLLIN;
56 while (poll(&pfd, 1, 500) > 0) {
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_printf.c48 pfcheck_addr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
55 pfcheck_kaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
63 pfcheck_uaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
79 pfcheck_stack(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
86 pfcheck_time(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
94 pfcheck_str(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
116 pfcheck_wstr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
133 pfcheck_csi(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
141 pfcheck_fp(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
148 pfcheck_xint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_ argument
155 pfcheck_dint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
167 pfcheck_xshort(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
180 pfcheck_xlong(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
193 pfcheck_xlonglong(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
224 pfcheck_type(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) argument
232 pfprint_sint(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t unormal) argument
258 pfprint_uint(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
282 pfprint_dint(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
293 pfprint_fp(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
316 pfprint_addr(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
344 pfprint_mod(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
352 pfprint_umod(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
360 pfprint_uaddr(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
397 pfprint_stack(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *vaddr, size_t size, uint64_t normal) argument
448 pfprint_time(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
486 pfprint_time822(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
501 pfprint_port(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
517 pfprint_inetaddr(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
544 pfprint_cstr(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
556 pfprint_wstr(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
568 pfprint_estr(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
583 pfprint_echr(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
607 pfprint_pct(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
688 const dt_pfconv_t *pfd; local
809 dt_pfargd_t *pfd, *nfd = NULL; local
1006 dt_pfargd_t *pfd, *nfd; local
1021 dt_pfargd_t *pfd = pfv->pfv_argv; local
1263 pfprint_average(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
1277 pfprint_stddev(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
1291 pfprint_quantize(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
1299 pfprint_lquantize(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
1307 pfprint_llquantize(dtrace_hdl_t *dtp, FILE *fp, const char *format, const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) argument
1318 dt_pfargd_t *pfd = pfv->pfv_argv; local
1626 dt_pfargd_t *pfd = pfv->pfv_argv; local
1731 dt_pfargd_t *pfd; local
1780 dt_pfargd_t *pfd = pfv->pfv_argv; local
[all...]
/illumos-gate/usr/src/uts/common/fs/portfs/
H A Dport_fd.c81 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/cmd/sendmail/libmilter/
H A Dworker.c304 #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/lib/libnsl/rpc/
H A Drtime_tli.c103 struct pollfd pfd; local
117 pfd.fd = fd;
118 pfd.events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND;
122 res = poll(&pfd, 1, msec);
124 if ((res <= 0) || (pfd.revents & POLLNVAL))
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dsyncloop.c326 static struct pollfd pfd; variable in typeref:struct:pollfd
332 pfd.fd = dfd;
333 pfd.events = POLLIN;
334 pfd.revents = 0;
335 while (poll(&pfd, 1, short_time) == 1) {
338 if (poll(&pfd, 1, long_time) == 1) {
372 pfd.fd = dfd;
373 pfd.events = POLLIN;
374 pollret = poll(&pfd, 1, long_time);
443 pfd
[all...]
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbutil/
H A Dprint.c193 int pfd = -1; local
195 pfd = smb_open_printer(ctx, title, setup_len, mode);
196 if (pfd < 0) {
213 wcnt = smb_fh_write(pfd, offset, rcnt, databuf);
227 (void) smb_fh_close(pfd);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dselect_large_fdset.c90 struct pollfd pfd[DEFAULT_POLL_SIZE]; local
129 pfd_list = pfd;
131 (void) memset(pfd, 0, sizeof (pfd));
162 &nfds_on_list, &pfd_list, pfd))
164 if (pfd_list != pfd)
187 if (pfd_list != pfd)
211 if (pfd_list != pfd)
231 if (pfd_list != pfd)
330 if (pfd_list != pfd)
[all...]
H A Dselect.c66 struct pollfd *pfd; local
83 p = pfd = (struct pollfd *)alloca(nfds * sizeof (struct pollfd));
137 n = (int)(p - pfd); /* number of pollfd's */
139 rv = _pollsys(pfd, (nfds_t)n, tsp, sigmask);
173 for (p = pfd, j = n; j-- > 0; p++) {
215 for (p = pfd; n-- > 0; p++) {
/illumos-gate/usr/src/uts/common/os/
H A Dklpd.c763 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...]
H A Dfio.c284 int pfd; local
293 for (pfd = fd; pfd >= 0; pfd = (pfd & (pfd + 1)) - 1)
294 fip->fi_list[pfd].uf_alloc += incr;
634 portfd_t *pfd; local
782 pfd = ufp->uf_portfd;
791 if (pfd)
896 portfd_t *pfd; local
1436 portfd_t *pfd; local
1769 addfd_port(int fd, portfd_t *pfd) argument
1792 delfd_port(int fd, portfd_t *pfd) argument
1814 port_close_fd(portfd_t *pfd) argument
[all...]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dipft_pc.c78 static int pfd = -1, swapped = 0; variable
105 if (pfd != -1)
106 return pfd;
141 pfd = fd;
152 return close(pfd);
165 if (read(pfd, (char *)rec, sizeof(*rec)) != sizeof(*rec))
204 if (read(pfd, bufp, i) != i)
239 if (read(pfd, s, i) != i)
/illumos-gate/usr/src/cmd/sgs/librtld_db/demo/common/
H A Dmain.c55 int pfd; local
67 if ((pfd = open(procname, O_WRONLY)) < 0) {
82 if (writev(pfd, piov, 2) == -1)
92 if (writev(pfd, piov, 2) == -1)
102 if (writev(pfd, piov, 2) == -1)
112 if (writev(pfd, piov, 2) == -1)
121 if (writev(pfd, piov, 2) == -1)
124 (void) close(pfd);
/illumos-gate/usr/src/test/os-tests/tests/file-locking/
H A Dutil.c51 struct pollfd pfd = { fd, POLLIN, 0 }; local
52 int ret = poll(&pfd, 1, 1000);
/illumos-gate/usr/src/cmd/bdiff/
H A Dbdiff.c95 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/lib/libipmp/common/
H A Dipmp_mpathd.c215 struct pollfd pfd; local
237 pfd.fd = fd;
238 pfd.events = POLLIN;
243 retval = poll(&pfd, 1, timeleft);
/illumos-gate/usr/src/lib/libast/common/tm/
H A Dtvsleep.c115 struct pollfd pfd;
120 poll(&pfd, 0, t);
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd.c95 int pfd; local
140 pfd = daemonize();
146 (void) write(pfd, &status, sizeof (status));
147 (void) close(pfd);
155 (void) write(pfd, &status, sizeof (status));
156 (void) close(pfd);
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbiod-svc/
H A Dsmbiod-svc.c177 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/fm/modules/SUNW,SPARC-Enterprise/event-transport/
H A Dex_dscp.c263 struct pollfd pfd; local
266 pfd.events = POLLIN;
267 pfd.revents = 0;
268 pfd.fd = hp->h_server.c_sd;
270 if (poll(&pfd, 1, -1) <= 0)
273 if (pfd.revents & (POLLHUP | POLLERR)) {
281 if (pfd.revents & POLLIN) {
378 struct pollfd pfd; local
381 pfd.events = POLLIN;
382 pfd
[all...]

Completed in 1525 milliseconds

123