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

/asus-wl-520gu-7.0.1.45/src/router/bridge/misc/
H A Dbidi.c20 struct pollfd pfd[1024]; variable in typeref:struct:pollfd
49 if (poll(pfd, numfds, -1) < 0) {
59 if (!(pfd[i].revents & POLLIN))
62 if ((len = read(pfd[i].fd, buf, 2048)) < 0)
68 write(pfd[j].fd, buf, len);
87 pfd[numfds].fd = fd;
88 pfd[numfds].events = POLLIN;
H A Dtap.c58 struct pollfd pfd[2]; local
60 pfd[0].fd = tap;
61 pfd[0].events = POLLIN;
62 pfd[1].fd = sock;
63 pfd[1].events = POLLIN;
69 if (poll(pfd, 2, -1) <= 0) {
74 if (pfd[0].revents & POLLIN) {
77 if ((len = read(pfd[0].fd, buf, 2048)) < 0) {
82 if (sendto(pfd[1].fd, buf+2, len-2, 0,
90 if (pfd[
[all...]
/asus-wl-520gu-7.0.1.45/src/router/samba/source/smbd/
H A Doplock_irix.c35 int pfd[2]; local
42 if(pipe(pfd) != 0) {
52 close(pfd[0]);
53 close(pfd[1]);
59 if(sys_fcntl_long(fd, F_OPLKREG, pfd[1]) == -1) {
62 close(pfd[0]);
63 close(pfd[1]);
71 close(pfd[0]);
72 close(pfd[1]);
77 close(pfd[
259 int pfd[2]; local
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/telephony/
H A Dphonedev.c125 void phone_unregister_device(struct phone_device *pfd) argument
128 if (phone_device[pfd->minor] != pfd)
130 phone_device[pfd->minor] = NULL;
/asus-wl-520gu-7.0.1.45/src/router/fdisk/
H A Dfdisksunlabel.c189 FILE *pfd; local
209 pfd = fopen("/proc/scsi/scsi","r");
210 if (pfd) {
211 while (fgets(buffer2,2048,pfd)) {
213 if (fgets(buffer2,2048,pfd)) {
244 fclose(pfd);
/asus-wl-520gu-7.0.1.45/src/router/rcamdmips/
H A Drcamd.c269 struct pollfd pfd; local
317 memset(&pfd, 0, sizeof(pfd));
318 pfd.fd = fd;
319 pfd.events = POLLOUT | POLLERR | POLLHUP;
321 ret = poll(&pfd, 1, 500);
323 if (ret>0 && (pfd.events&POLLOUT)) continue;
/asus-wl-520gu-7.0.1.45/src/router/ppp/pppd/
H A Dsys-solaris.c1268 struct pollfd pfd; local
1282 pfd.fd = pppfd;
1283 pfd.events = POLLOUT;
1284 poll(&pfd, 1, 250); /* wait for up to 0.25 seconds */
2210 struct pollfd pfd; local
2215 pfd.fd = fd;
2216 pfd.events = POLLIN | POLLPRI;
2218 n = poll(&pfd, 1, 1000);
H A Dsys-sunos4.c550 struct pollfd pfd; local
564 pfd.fd = pppfd;
565 pfd.events = POLLOUT;
566 poll(&pfd, 1, 250); /* wait for up to 0.25 seconds */
/asus-wl-520gu-7.0.1.45/src/router/pppd/pppd/
H A Dsys-solaris.c1342 struct pollfd pfd; local
1356 pfd.fd = pppfd;
1357 pfd.events = POLLOUT;
1358 poll(&pfd, 1, 250); /* wait for up to 0.25 seconds */
2341 struct pollfd pfd; local
2346 pfd.fd = fd;
2347 pfd.events = POLLIN | POLLPRI;
2349 n = poll(&pfd, 1, 1000);
H A Dsys-sunos4.c623 struct pollfd pfd; local
637 pfd.fd = pppfd;
638 pfd.events = POLLOUT;
639 poll(&pfd, 1, 250); /* wait for up to 0.25 seconds */
/asus-wl-520gu-7.0.1.45/src/router/pppd.mppe/pppd/
H A Dsys-solaris.c1342 struct pollfd pfd; local
1356 pfd.fd = pppfd;
1357 pfd.events = POLLOUT;
1358 poll(&pfd, 1, 250); /* wait for up to 0.25 seconds */
2341 struct pollfd pfd; local
2346 pfd.fd = fd;
2347 pfd.events = POLLIN | POLLPRI;
2349 n = poll(&pfd, 1, 1000);
H A Dsys-sunos4.c623 struct pollfd pfd; local
637 pfd.fd = pppfd;
638 pfd.events = POLLOUT;
639 poll(&pfd, 1, 250); /* wait for up to 0.25 seconds */

Completed in 179 milliseconds