/device/generic/goldfish-opengl/system/OpenglSystemCommon/ |
gralloc_cb.h | 27 #define CB_HANDLE_NUM_INTS(nfds) (int)((sizeof(cb_handle_t) - (nfds)*sizeof(int)) / sizeof(int))
|
/hardware/ril/libril/ |
ril_event.cpp | 69 static int nfds = 0; variable 142 if (ev->fd+1 == nfds) { 152 nfds = n + 1; 153 dlog("~~~~ nfds = %d ~~~~", nfds); 276 if (ev->fd >= nfds) nfds = ev->fd+1; 277 dlog("~~~~ nfds = %d ~~~~", nfds); 366 n = select(nfds, &rfds, NULL, NULL, ptv) [all...] |
/external/libevent/ |
select.c | 131 int res=0, i, j, nfds; local 157 nfds = sop->event_fds+1; 161 res = select(nfds, sop->event_readset_out, 180 i = random() % nfds; 181 for (j = 0; j < nfds; ++j) { 182 if (++i >= nfds)
|
/external/ltp/testcases/kernel/syscalls/connect/ |
connect01.c | 272 int nfds, cc, fd; local 278 nfds = sfd + 1; 286 if (select(nfds, &rfds, NULL, NULL, 297 nfds = MAX(nfds, newfd + 1); 300 for (fd = 0; fd < nfds; ++fd)
|
/external/ltp/testcases/kernel/syscalls/recv/ |
recv01.c | 269 int nfds, cc, fd; local 274 nfds = sfd + 1; 282 if (select(nfds, &rfds, NULL, NULL, 293 nfds = MAX(nfds, newfd + 1); 298 for (fd = 0; fd < nfds; ++fd)
|
/external/ltp/testcases/kernel/syscalls/recvfrom/ |
recvfrom01.c | 298 int nfds, cc, fd; local 303 nfds = sfd + 1; 311 if (select(nfds, &rfds, NULL, NULL, 322 nfds = MAX(nfds, newfd + 1); 327 for (fd = 0; fd < nfds; ++fd)
|
/external/ltp/testcases/kernel/syscalls/send/ |
send01.c | 211 int nfds, cc, fd; local 217 nfds = sfd + 1; 225 if (select(nfds, &rfds, NULL, NULL, NULL) < 0) 235 nfds = MAX(nfds, newfd + 1); 238 for (fd = 0; fd < nfds; ++fd) {
|
/system/core/toolbox/ |
getevent.c | 38 static int nfds; variable 362 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); 368 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1)); 376 printf("add device %d: %s\n", nfds, device); 403 ufds[nfds].fd = fd; 404 ufds[nfds].events = POLLIN; 405 device_names[nfds] = strdup(device); 406 nfds++; 414 for(i = 1; i < nfds; i++) { 416 int count = nfds - i - 1 [all...] |
/external/libcups/cups/ |
sidechannel.c | 110 int nfds; /* Number of file descriptors */ local 138 while ((nfds = poll(&pfd, 1, 150 while ((nfds = select(CUPS_SC_FD + 1, &input_set, NULL, NULL, 157 if (nfds < 1) 160 *status = nfds==0 ? CUPS_SC_STATUS_TIMEOUT : CUPS_SC_STATUS_IO_ERROR;
|
/external/ltp/testcases/kernel/syscalls/sendto/ |
sendto01.c | 282 int nfds, cc, fd; local 287 nfds = sfd + 1; 295 if (select(nfds, &rfds, NULL, NULL, NULL) < 0 && errno != EINTR) 305 nfds = MAX(nfds, newfd + 1); 308 for (fd = 0; fd < nfds; ++fd) {
|
/system/bt/vendor_libs/test_vendor_lib/src/ |
async_manager.cc | 195 int nfds = notification_listen_fd_; local 202 nfds = std::max(fdp.first, nfds); 205 return nfds; 243 int nfds = setUpFileDescriptorSet(read_fds); local 246 int retval = select(nfds + 1, &read_fds, NULL, NULL, NULL);
|
/device/linaro/hikey/bluetooth/ |
async_fd_watcher.cc | 134 int nfds = std::max(notification_listen_fd_, max_read_fd); local 135 int retval = select(nfds + 1, &read_fds, NULL, NULL, timeout_ptr);
|
/external/libdrm/tests/kms/ |
kms-steal-crtc.c | 122 int nfds = STDIN_FILENO + 1; local 133 err = select(nfds, &fds, NULL, NULL, &timeout);
|
/external/ltp/testcases/kernel/syscalls/recvmsg/ |
recvmsg01.c | 434 int nfds, cc, fd; local 440 nfds = MAX(sfd + 1, ufd + 1); 448 if (select(nfds, &rfds, NULL, NULL, 463 nfds = MAX(nfds, newfd + 1); 475 nfds = MAX(nfds, newfd + 1); 478 for (fd = 0; fd < nfds; ++fd)
|
/external/toybox/lib/ |
net.c | 48 int xpoll(struct pollfd *fds, int nfds, int timeout) 53 if (0>(i = poll(fds, nfds, timeout))) {
|
/hardware/interfaces/bluetooth/1.0/default/ |
async_fd_watcher.cc | 147 int nfds = std::max(notification_listen_fd_, max_read_fd); local 148 int retval = select(nfds + 1, &read_fds, NULL, NULL, timeout_ptr);
|
/system/bt/vendor_libs/linux/interface/ |
async_fd_watcher.cc | 145 int nfds = std::max(notification_listen_fd_, max_read_fd); local 146 int retval = select(nfds + 1, &read_fds, NULL, NULL, timeout_ptr);
|
/external/c-ares/ |
acountry.c | 206 int nfds; local 210 nfds = ares_fds(channel, &read_fds, &write_fds); 211 if (nfds == 0) 214 select(nfds, &read_fds, &write_fds, NULL, tvp);
|
/external/curl/lib/ |
select.h | 83 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms);
|
select.c | 391 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms) 409 for(i = 0; i < nfds; i++) { 438 r = poll(ufds, nfds, pending_ms); 458 for(i = 0; i < nfds; i++) { 474 for(i = 0; i < nfds; i++) { 546 for(i = 0; i < nfds; i++) {
|
/external/ltp/testcases/network/lib6/ |
asapi_02.c | 120 int maxfd, nfds; local 143 nfds = select(maxfd + 1, &readfds, 0, 0, &tv); 144 if (nfds == 0) 146 if (nfds < 0) {
|
/external/v4l2_codec2/vda/ |
v4l2_device.cc | 151 nfds_t nfds; local 156 nfds = 1; 160 pollfds[nfds].fd = device_fd_.get(); 161 pollfds[nfds].events = POLLIN | POLLOUT | POLLERR | POLLPRI; 162 pollfd = nfds; 163 nfds++; 166 if (HANDLE_EINTR(poll(pollfds, nfds, -1)) == -1) {
|
/external/strace/tests/ |
ppoll.c | 46 const kernel_ulong_t nfds, 51 long rc = syscall(__NR_ppoll, ufds, nfds, tsp, sigmask, sigsetsize);
|
/external/strace/tests-m32/ |
ppoll.c | 46 const kernel_ulong_t nfds, 51 long rc = syscall(__NR_ppoll, ufds, nfds, tsp, sigmask, sigsetsize);
|
/external/strace/tests-mx32/ |
ppoll.c | 46 const kernel_ulong_t nfds, 51 long rc = syscall(__NR_ppoll, ufds, nfds, tsp, sigmask, sigsetsize);
|