/external/linux-kselftest/tools/testing/selftests/rtc/ |
D | rtctest.c | 92 fd_set readfds; in TEST_F() local 94 FD_ZERO(&readfds); in TEST_F() 95 FD_SET(self->fd, &readfds); in TEST_F() 97 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F() 117 fd_set readfds; in TEST_F() local 144 FD_ZERO(&readfds); in TEST_F() 145 FD_SET(self->fd, &readfds); in TEST_F() 147 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F() 174 fd_set readfds; in TEST_F() local 201 FD_ZERO(&readfds); in TEST_F() [all …]
|
/external/ltp/testcases/kernel/syscalls/eventfd/ |
D | eventfd01.c | 292 fd_set readfds; in readfd_set_test() local 296 FD_ZERO(&readfds); in readfd_set_test() 297 FD_SET(fd, &readfds); in readfd_set_test() 306 ret = select(fd + 1, &readfds, NULL, NULL, &timeout); in readfd_set_test() 313 if (FD_ISSET(fd, &readfds)) in readfd_set_test() 326 fd_set readfds; in readfd_not_set_test() local 329 FD_ZERO(&readfds); in readfd_not_set_test() 330 FD_SET(fd, &readfds); in readfd_not_set_test() 338 ret = select(fd + 1, &readfds, NULL, NULL, &timeout); in readfd_not_set_test() 345 if (!FD_ISSET(fd, &readfds)) in readfd_not_set_test() [all …]
|
/external/mdnsresponder/mDNSPosix/ |
D | ExampleClientApp.c | 52 fd_set readfds; in ExampleClientEventLoop() local 59 FD_ZERO(&readfds); in ExampleClientEventLoop() 68 mDNSPosixGetFDSet(m, &nfds, &readfds, &timeout); in ExampleClientEventLoop() 72 result = select(nfds, &readfds, NULL, NULL, &timeout); in ExampleClientEventLoop() 82 mDNSPosixProcessFDSet(m, &readfds); in ExampleClientEventLoop()
|
D | mDNSPosix.c | 1465 mDNSlocal void mDNSPosixAddToFDSet(int *nfds, fd_set *readfds, int s) in mDNSPosixAddToFDSet() argument 1468 FD_SET(s, readfds); in mDNSPosixAddToFDSet() 1471 mDNSexport void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout) in mDNSPosixGetFDSet() argument 1481 if (m->p->unicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket4); in mDNSPosixGetFDSet() 1483 if (m->p->unicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket6); in mDNSPosixGetFDSet() 1487 if (info->multicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket4); in mDNSPosixGetFDSet() 1489 if (info->multicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket6); in mDNSPosixGetFDSet() 1506 mDNSexport void mDNSPosixProcessFDSet(mDNS *const m, fd_set *readfds) in mDNSPosixProcessFDSet() argument 1510 assert(readfds != NULL); in mDNSPosixProcessFDSet() 1513 if (m->p->unicastSocket4 != -1 && FD_ISSET(m->p->unicastSocket4, readfds)) in mDNSPosixProcessFDSet() [all …]
|
D | mDNSPosix.h | 73 extern void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout); 74 extern void mDNSPosixProcessFDSet(mDNS *const m, fd_set *readfds);
|
D | Identify.c | 188 fd_set readfds; in WaitForAnswer() local 192 FD_ZERO(&readfds); in WaitForAnswer() 202 mDNSPosixGetFDSet(m, &nfds, &readfds, &remain); in WaitForAnswer() 203 result = select(nfds, &readfds, NULL, NULL, &remain); in WaitForAnswer() 204 if (result >= 0) mDNSPosixProcessFDSet(m, &readfds); in WaitForAnswer()
|
D | Responder.c | 716 fd_set readfds; in main() local 723 FD_ZERO(&readfds); in main() 732 mDNSPosixGetFDSet(&mDNSStorage, &nfds, &readfds, &timeout); in main() 736 result = select(nfds, &readfds, NULL, NULL, &timeout); in main() 769 mDNSPosixProcessFDSet(&mDNSStorage, &readfds); in main()
|
D | nss_mdns.c | 1004 fd_set readfds; in handle_events() local 1010 FD_ZERO(&readfds); in handle_events() 1011 FD_SET(dns_sd_fd, &readfds); in handle_events() 1016 select (nfds, &readfds, (fd_set*)NULL, (fd_set*)NULL, &tv); in handle_events() 1019 if (FD_ISSET(dns_sd_fd, &readfds)) in handle_events()
|
/external/openssh/openbsd-compat/ |
D | bsd-poll.c | 45 fd_set *readfds = NULL, *writefds = NULL, *exceptfds = NULL; in poll() local 59 if ((readfds = calloc(nmemb, sizeof(fd_mask))) == NULL || in poll() 73 FD_SET(fd, readfds); in poll() 89 ret = select(maxfd + 1, readfds, writefds, exceptfds, tvp); in poll() 98 if (FD_ISSET(fd, readfds)) { in poll() 110 free(readfds); in poll()
|
/external/ltp/testcases/network/lib6/ |
D | asapi_02.c | 118 fd_set readfds, readfds_saved; in ic6_recv1() local 133 memcpy(&readfds, &readfds_saved, sizeof(readfds)); in ic6_recv1() 143 nfds = select(maxfd + 1, &readfds, 0, 0, &tv); in ic6_recv1() 151 if (FD_ISSET(sall, &readfds)) { in ic6_recv1() 162 if (FD_ISSET(sf, &readfds)) { in ic6_recv1() 173 memcpy(&readfds, &readfds_saved, sizeof(readfds)); in ic6_recv1()
|
/external/ltp/testcases/kernel/syscalls/pselect/ |
D | pselect01.c | 26 fd_set readfds; in sample_fn() local 29 FD_ZERO(&readfds); in sample_fn() 30 FD_SET(0, &readfds); in sample_fn() 33 TEST(pselect(0, &readfds, NULL, NULL, &tv, NULL)); in sample_fn()
|
D | pselect03.c | 35 fd_set readfds; in verify_pselect() local 38 FD_ZERO(&readfds); in verify_pselect() 39 FD_SET(fd, &readfds); in verify_pselect() 41 TEST(pselect(fd, &readfds, 0, 0, &tv, NULL)); in verify_pselect()
|
D | pselect02.c | 42 fd_set *readfds; member 98 TEST(pselect(test->nfds, test->readfds, NULL, NULL, test->timeout, in pselect_verify()
|
/external/selinux/policycoreutils/run_init/ |
D | open_init_pty.c | 229 fd_set readfds; in main() local 322 FD_ZERO(&readfds); in main() 326 FD_SET(pty_master, &readfds); in main() 336 FD_SET(STDIN_FILENO, &readfds); in main() 357 int select_rc = select(pty_master + 1, &readfds, &writefds, NULL, NULL); in main() 396 if (FD_ISSET(STDIN_FILENO, &readfds)) { in main() 411 if (FD_ISSET(pty_master, &readfds)) { in main()
|
/external/autotest/client/tests/rtc/src/ |
D | rtctest.c | 94 fd_set readfds; in main() local 96 FD_ZERO(&readfds); in main() 97 FD_SET(fd, &readfds); in main() 99 retval = select(fd+1, &readfds, NULL, NULL, &tv); in main()
|
/external/linux-kselftest/tools/testing/selftests/timers/ |
D | rtctest.c | 163 fd_set readfds; in main() local 165 FD_ZERO(&readfds); in main() 166 FD_SET(fd, &readfds); in main() 168 retval = select(fd+1, &readfds, NULL, NULL, &tv); in main()
|
/external/ppp/pppd/plugins/radius/ |
D | sendserver.c | 199 fd_set readfds; in rc_send_server() local 301 FD_ZERO (&readfds); in rc_send_server() 302 FD_SET (sockfd, &readfds); in rc_send_server() 303 if (select (sockfd + 1, &readfds, NULL, NULL, &authtime) < 0) in rc_send_server() 312 if (FD_ISSET (sockfd, &readfds)) in rc_send_server()
|
/external/adhd/cras/src/tests/ |
D | dbus_test.cc | 695 fd_set readfds, writefds; in DispatchOnce() local 702 FD_ZERO(&readfds); in DispatchOnce() 718 FD_SET(fd, &readfds); in DispatchOnce() 747 r = select(nfds, &readfds, &writefds, NULL, &timeval); in DispatchOnce() 749 r = select(nfds, &readfds, &writefds, NULL, NULL); in DispatchOnce() 768 if (FD_ISSET(fd, &readfds)) in DispatchOnce()
|
/external/curl/tests/server/ |
D | sockfilt.c | 694 static int select_ws(int nfds, fd_set *readfds, fd_set *writefds, in select_ws() argument 748 if(FD_ISSET(fds, readfds)) in select_ws() 830 FD_CLR(sock, readfds); in select_ws() 840 FD_CLR(sock, readfds); in select_ws() 862 if(FD_ISSET(sock, readfds) || FD_ISSET(sock, writefds) || in select_ws() 869 FD_CLR(sock, readfds); in select_ws() 876 if(FD_ISSET(fds, readfds)) in select_ws()
|
/external/libpcap/ |
D | pcap-sita.c | 76 static fd_set readfds; /* a place to store the file descriptors for the connections to the IOPs… variable 751 if (FD_ISSET(fd, &readfds)) flag = 1; /* and see if there are any still set */ in wait_for_all_answers() 755 …memcpy(&working_set, &readfds, sizeof(readfds)); /* otherwise, we still have to listen for more… in wait_for_all_answers() 766 FD_CLR(fd, &readfds); /* and descriptors we listen to for errors */ in wait_for_all_answers() 797 FD_ZERO(&readfds); in acn_findalldevs() 809 FD_SET(u->find_fd, &readfds); /* we are going to want to read this guy's response to */ in acn_findalldevs()
|
/external/libhevc/encoder/ |
D | osal_select_engine.h | 56 osal_select_entry_t *readfds[MAX_FDS]; /* To check for read */ member
|
/external/mdnsresponder/Clients/ |
D | dns-sd.c | 852 fd_set readfds; 863 FD_ZERO(&readfds); 866 if (client ) FD_SET(dns_sd_fd , &readfds); 867 if (client_pa) FD_SET(dns_sd_fd2, &readfds); 873 result = select(nfds, &readfds, (fd_set*)NULL, (fd_set*)NULL, &tv); 877 if (client && FD_ISSET(dns_sd_fd , &readfds)) err = DNSServiceProcessResult(client ); 878 else if (client_pa && FD_ISSET(dns_sd_fd2, &readfds)) err = DNSServiceProcessResult(client_pa);
|
/external/v8/src/ |
D | d8-posix.cc | 85 fd_set readfds, writefds, exceptfds; in WaitOnFD() local 96 FD_ZERO(&readfds); in WaitOnFD() 99 FD_SET(fd, &readfds); in WaitOnFD() 107 int number_of_fds_ready = select(fd + 1, &readfds, &writefds, &exceptfds, in WaitOnFD()
|
/external/iptables/iptables/ |
D | nft.c | 195 fd_set readfds; in mnl_nftnl_batch_talk() local 206 FD_ZERO(&readfds); in mnl_nftnl_batch_talk() 207 FD_SET(fd, &readfds); in mnl_nftnl_batch_talk() 210 ret = select(fd+1, &readfds, NULL, NULL, &tv); in mnl_nftnl_batch_talk() 214 while (ret > 0 && FD_ISSET(fd, &readfds)) { in mnl_nftnl_batch_talk() 226 ret = select(fd+1, &readfds, NULL, NULL, &tv); in mnl_nftnl_batch_talk() 230 FD_ZERO(&readfds); in mnl_nftnl_batch_talk() 231 FD_SET(fd, &readfds); in mnl_nftnl_batch_talk()
|
/external/compiler-rt/lib/dfsan/ |
D | dfsan_custom.cc | 691 int __dfsw_select(int nfds, fd_set *readfds, fd_set *writefds, in __dfsw_select() argument 696 int ret = select(nfds, readfds, writefds, exceptfds, timeout); in __dfsw_select() 699 if (readfds) { in __dfsw_select() 700 dfsan_set_label(0, readfds, sizeof(fd_set)); in __dfsw_select()
|