Searched defs:pfd (Results 1 - 25 of 65) sorted by relevance

123

/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/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/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))
H A Dauth_time.c525 struct pollfd pfd; local
538 pfd.fd = rtime_fd;
539 pfd.events =
543 res = poll(&pfd, 1, 10000);
545 if ((res <= 0) || (pfd.revents & POLLNVAL))
/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 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/libc/port/gen/
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++) {
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...]
/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/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/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/lib/libsmbfs/smb/
H A Dnb_ssn.c247 struct pollfd pfd[1]; local
250 pfd[0].fd = ctx->ct_tran_fd;
251 pfd[0].events = POLLIN | POLLPRI;
252 pfd[0].revents = 0;
253 cnt = poll(pfd, 1, tmo);
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_ndpd.c313 struct pollfd pfd; local
317 pfd.fd = fd;
318 pfd.events = POLLIN;
323 retval = poll(&pfd, 1, NDPDTIMEOUT);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dwait.c323 struct pollfd *pfd; local
329 pfd = find_pollfd(me->fd);
337 if ((pfd->revents & (POLLHUP|POLLERR)) == 0) {
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_main.c240 int c, pfd = -1, opt_V = 0; local
354 pfd = daemonize_init();
361 fmd_run(&fmd, pfd);
367 daemonize_fini(pfd);
/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/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/ttymon/
H A Dtmchild.c651 struct pollfd pfd[1]; local
653 pfd[0].fd = fd;
654 pfd[0].events = POLLHUP;
656 ret = poll(pfd, 1, 0);
664 if (pfd[0].revents & POLLHUP) {
H A Dtmhandler.c527 struct pollfd pfd[2]; local
533 pfd[0].fd = PCpipe[0];
534 pfd[1].fd = Pfd;
535 pfd[0].events = POLLIN;
536 pfd[1].events = POLLIN;
537 if ((ret = poll(pfd, 2, 0)) < 0)
541 if (pfd[0].revents & POLLIN)
542 read_pid(pfd[0].fd);
543 if (pfd[1].revents & POLLIN)
/illumos-gate/usr/src/cmd/ypcmd/
H A Dyp_b_svc.c93 int pfd[2]; local
269 if (pipe(pfd) == -1) {
285 close(pfd[1]);
286 read(pfd[0], domain, sizeof (domain));
289 /* close all files except pfd[1] */
290 (void) fdwalk(void_close, &pfd[1]);
333 close(pfd[1]);
418 close(pfd[1]);
438 close(pfd[1]);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dtftpsubs.c304 struct pollfd pfd; local
307 pfd.fd = socket;
308 pfd.events = POLLRDNORM;
314 if (poll(&pfd, 1, 0) <= 0)
/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/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 96 milliseconds

123