/external/ipsec-tools/src/racoon/ |
schedule.c | 61 static struct timeval timeout; variable in typeref:struct:timeval 117 timeout.tv_sec = delta < 0 ? 0 : delta; 118 timeout.tv_usec = 0; 120 return &timeout; 335 struct timeval *timeout; local 348 timeout = schedular(); 350 error = select(nfds, &rfds, (fd_set *)0, (fd_set *)0, timeout);
|
session.c | 120 struct timeval *timeout; local 193 timeout = schedular(); 195 error = select(nfds, &rfds, (fd_set *)0, (fd_set *)0, timeout);
|
/external/junit/src/main/java/org/junit/internal/runners/ |
MethodRoadie.java | 46 long timeout = testMethod.getTimeout(); local 47 if (timeout > 0) { 48 runWithTimeout(timeout); 57 private void runWithTimeout(final long timeout) { 71 boolean terminated = service.awaitTermination(timeout, 78 addFailure(new TestTimedOutException(timeout, TimeUnit.MILLISECONDS));
|
/external/ksoap2/ksoap2-base/src/main/java/org/ksoap2/transport/ |
Transport.java | 49 protected int timeout = ServiceConnection.DEFAULT_TIMEOUT; field in class:Transport 71 public Transport(String url, int timeout) { 73 this.timeout = timeout; 76 public Transport(String url, int timeout, int bufferLength) { 78 this.timeout = timeout; 95 public Transport(Proxy proxy, String url, int timeout) { 98 this.timeout = timeout; [all...] |
/external/libcups/cups/ |
http-addrlist.c | 51 * timeout and optional cancel. 60 int msec, /* I - Timeout in milliseconds */ 67 int remaining; /* Remaining timeout */ 83 struct timeval timeout; /* Timeout */ local 291 timeout.tv_sec = 0; 292 timeout.tv_usec = (addrlist ? 100 : remaining > 250 ? 250 : remaining) * 1000; 294 result = select(max_fd + 1, &input_set, &output_set, &error_set, &timeout);
|
/external/libdrm/tests/kms/ |
kms-universal-planes.c | 328 struct timeval timeout = { 1, 0 }; local 334 err = select(STDIN_FILENO + 1, &fds, NULL, NULL, &timeout); 340 /* timeout */
|
/external/libevent/ |
epoll.c | 132 /* On Linux kernels at least up to 2.6.24.4, epoll can't handle timeout 419 long timeout = -1; local 427 /* No timeout; disarm the timer. */ 434 timeout = 0; 440 calling timerfd_settime when the top timeout changes, or 449 timeout = evutil_tv_to_msec_(tv); 450 if (timeout < 0 || timeout > MAX_EPOLL_TIMEOUT_MSEC) { 451 /* Linux kernels can wait forever if the timeout is 453 timeout = MAX_EPOLL_TIMEOUT_MSEC [all...] |
/external/libevent/test/ |
test-changelist.c | 156 printf("timeout fired, time to end test\n"); 165 struct event* timeout; local 189 /* Initalize a timeout to terminate the test */ 190 timeout = evtimer_new(base,timeout_cb,&timeout); 197 evtimer_add(timeout, &tv); 206 event_free(timeout);
|
/external/libmicrohttpd/src/examples/ |
spdy_event_loop.c | 357 struct timeval timeout; local 376 timeout.tv_sec = 1; 377 timeout.tv_usec = 0; 381 timeout.tv_sec = timeoutlong / 1000; 382 timeout.tv_usec = (timeoutlong % 1000) * 1000; 385 printf("ret=%i; timeoutlong=%llu; sec=%llu; usec=%llu\n", ret, timeoutlong, (long long unsigned)timeout.tv_sec, (long long unsigned)timeout.tv_usec); 396 rc = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout); 436 timeout.tv_sec = 1; 437 timeout.tv_usec = 0 [all...] |
spdy_fileserver.c | 272 struct timeval timeout; local 316 timeout.tv_sec = 1; 317 timeout.tv_usec = 0; 321 timeout.tv_sec = timeoutlong / 1000; 322 timeout.tv_usec = (timeoutlong % 1000) * 1000; 330 ret = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout);
|
/external/libmicrohttpd/src/microspdy/ |
daemon.c | 393 unsigned long long *timeout) 423 *timeout = 0; 425 *timeout = earliest_deadline - now; 459 || (daemon->session_timeout //timeout passed for the session 483 struct timeval timeout; local 486 timeout.tv_sec = 0; 487 timeout.tv_usec = 0; 494 num_ready = select (max + 1, &rs, &ws, &es, &timeout);
|
/external/libmicrohttpd/src/testcurl/ |
test_post_loop.c | 320 unsigned long long timeout; local 397 if (MHD_NO == MHD_get_timeout (d, &timeout)) 398 timeout = 100; /* 100ms == INFTY -- CURL bug... */ 400 (ctimeout < timeout) && (ctimeout >= 0)) 401 timeout = ctimeout; 403 timeout = 0; /* terminate quickly... */ 404 tv.tv_sec = timeout / 1000; 405 tv.tv_usec = (timeout % 1000) * 1000;
|
/external/libmicrohttpd/src/testspdy/ |
test_misc.c | 205 struct timeval timeout; local 241 timeout.tv_sec = 1; 242 timeout.tv_usec = 0; 246 timeout.tv_sec = timeoutlong / 1000; 247 timeout.tv_usec = (timeoutlong % 1000) * 1000; 255 ret = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout);
|
test_request_response_with_callback.c | 168 struct timeval timeout; local 204 timeout.tv_sec = 1; 205 timeout.tv_usec = 0; 209 timeout.tv_sec = timeoutlong / 1000; 210 timeout.tv_usec = (timeoutlong % 1000) * 1000; 218 ret = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout);
|
test_session_timeout.c | 21 * @brief tests closing sessions after set timeout. Openssl is used for 36 #define TIMEOUT 2 125 struct timeval timeout; local 146 TIMEOUT, 171 killchild("SPDY_get_timeout returned wrong timeout"); 174 if(now - beginning > TIMEOUT*1000 + SELECT_MS_TIMEOUT) 178 printf("Timeout is: %i\n",TIMEOUT); 179 printf("Select Timeout is: %ims\n",SELECT_MS_TIMEOUT); 181 killchild("Timeout passed but session was not closed") [all...] |
/external/libnl/src/lib/ |
exp.c | 53 uint32_t timeout = nl_cli_parse_u32(arg); local 54 nfnl_exp_set_timeout(exp, timeout);
|
/external/libpcap/ |
pcap-pf.c | 470 if (p->opt.timeout != 0) { 471 struct timeval timeout; local 472 timeout.tv_sec = p->opt.timeout / 1000; 473 timeout.tv_usec = (p->opt.timeout * 1000) % 1000000; 474 if (ioctl(p->fd, EIOCSRTIMEOUT, (caddr_t)&timeout) < 0) {
|
pcap-snit.c | 239 struct timeval timeout; local 256 if (p->opt.timeout != 0) { 257 timeout.tv_sec = p->opt.timeout / 1000; 258 timeout.tv_usec = (p->opt.timeout * 1000) % 1000000; 260 si.ic_len = sizeof(timeout); 261 si.ic_dp = (char *)&timeout;
|
/external/libpcap/tests/ |
capturetest.c | 110 int timeout = 1000; local 144 error("Timeout value \"%s\" is not a number", 149 error("Timeout value %ld is negative", longarg); 153 error("Timeout value %ld is too large (> %d)", 157 timeout = (int)longarg; 185 status = pcap_set_timeout(pd, timeout); 261 (void)fprintf(stderr, "Usage: %s [ -mn ] [ -i interface ] [ -t timeout] [expression]\n",
|
/external/libxcam/modules/ocl/ |
cl_image_processor.cpp | 229 const int32_t timeout = 5000; // 5ms local 237 p_buf = _process_buffer_queue.pop (timeout);
|
/external/ltp/testcases/kernel/sched/pthreads/ |
pth_str01.c | 44 int timeout = 30; /* minutes */ variable 109 timeout = atoi(optarg); 110 if (timeout <= 0) 276 timer.tv_sec += (unsigned long)timeout *60; 513 timer.tv_sec += (unsigned long)timeout *60;
|
/external/ltp/testcases/kernel/syscalls/clone/ |
clone08.c | 200 struct timespec timeout = { 5 /* sec */, 0 }; local 207 if (syscall(SYS_futex, &ctid, FUTEX_WAIT, -1, &timeout)) {
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
fcntl31.c | 67 static struct timespec timeout; variable in typeref:struct:timespec 154 timeout.tv_sec = 5; 155 timeout.tv_nsec = 0; 356 ret = sigtimedwait(&newset, NULL, &timeout);
|
fcntl33.c | 41 * The lease-break-time is set to 45 seconds for timeout in kernel. 64 static struct timespec timeout = {.tv_sec = 5}; variable in typeref:struct:timespec 171 TEST(sigtimedwait(&newset, NULL, &timeout)); 175 "within %lis", timeout.tv_sec);
|
/external/ltp/testcases/network/stress/ns-tools/ |
ns-igmp_querier.c | 65 double timeout; member in struct:igmp_info 294 "Timeout should be positive value\n"); 297 info_p->timeout = opt_d; 309 info_p->timeout = -1.0; 442 /* Check timeout: 443 If timeout value is negative only send one datagram */ 444 if (info_p->timeout) 445 if (info_p->timeout < difftime(time(NULL), start_time))
|