Lines Matching defs:timeout
51 struct timeval *timeout, LDAPMessage **result );
59 static int cldap_select1( LDAP *ld, struct timeval *timeout );
79 * ldap_result( s, msgid, all, timeout, result )
87 struct timeval *timeout,
101 rc = nsldapi_result_nolock(ld, msgid, all, 1, timeout, result);
111 struct timeval *timeout, LDAPMessage **result )
122 * wait until it arrives or timeout occurs.
134 rc = wait4msg( ld, msgid, all, unlock_permitted, timeout,
272 struct timeval *timeout, LDAPMessage **result )
285 if ( timeout == NULL ) {
286 LDAPDebug( LDAP_DEBUG_TRACE, "wait4msg (infinite timeout)\n",
289 LDAPDebug( LDAP_DEBUG_TRACE, "wait4msg (timeout %ld sec, %ld usec)\n",
290 timeout->tv_sec, timeout->tv_usec, 0 );
298 rc = (ld->ld_cache_result)( ld, msgid, all, timeout, result );
306 return( 0 ); /* timeout */
334 if ( timeout == NULL ) {
337 tv = *timeout;
459 * honor the timeout if specified
1055 cldap_select1( LDAP *ld, struct timeval *timeout )
1083 rc = select( tblsize, &readfds, 0, 0, timeout ) );
1092 rc = ld->ld_extpoll_fn( pollfds, 1, nsldapi_tv2ms( timeout ),
1097 rc = 0; /* simulate a timeout (what else to do?) */
1107 cldap_select1( LDAP *ld, struct timeval *timeout )
1110 return( tcpselect( ld->ld_sbp->sb_sd, timeout ));
1118 cldap_select1( LDAP *ld, struct timeval *timeout )
1128 rc = ld->ld_select_fn( 1, &readfds, 0, 0, timeout );
1132 0, timeout ) );
1135 rc = select( 1, &readfds, 0, 0, timeout ) );
1269 cldap_getmsg( LDAP *ld, struct timeval *timeout, BerElement **ber )
1276 rc = cldap_select1( ld, timeout );