Lines Matching refs:tv
362 struct timeval tv; in ldap_ufn_search_s() local
364 tv.tv_sec = ld->ld_timelimit; in ldap_ufn_search_s()
368 ld->ld_timelimit ? (void *) &tv : NULL, in ldap_ufn_search_s()
450 struct timeval tv; in ldap_ufn_expand() local
468 tv.tv_sec = 0; in ldap_ufn_expand()
469 tv.tv_usec = 100000; /* 1/10 of a second */ in ldap_ufn_expand()
472 *err = ldap_result( ld, msgid, 1, &tv, &tmpres ); in ldap_ufn_expand()
528 struct timeval *tv; in ldap_ufn_timeout() local
530 tv = (struct timeval *)tvparam; in ldap_ufn_timeout()
532 if ( tv->tv_sec != 0 ) { in ldap_ufn_timeout()
533 tv->tv_usec = tv->tv_sec * 1000000; /* sec => micro sec */ in ldap_ufn_timeout()
534 tv->tv_sec = 0; in ldap_ufn_timeout()
536 tv->tv_usec -= 100000; /* 1/10 of a second */ in ldap_ufn_timeout()
538 return( tv->tv_usec <= 0 ? 1 : 0 ); in ldap_ufn_timeout()