Lines Matching defs:rc

91 	int		rc;
101 rc = nsldapi_result_nolock(ld, msgid, all, 1, timeout, result);
105 return( rc );
113 int rc;
132 rc = (*result)->lm_msgtype;
134 rc = wait4msg( ld, msgid, all, unlock_permitted, timeout,
141 if ( ld->ld_memcache != NULL && NSLDAPI_SEARCH_RELATED_RESULT( rc ) &&
144 (all || NSLDAPI_IS_SEARCH_RESULT( rc )), *result );
147 return( rc );
274 int rc;
298 rc = (ld->ld_cache_result)( ld, msgid, all, timeout, result );
301 if ( rc != 0 ) {
302 return( rc );
348 rc = -2;
349 while ( rc == -2 ) {
361 rc = read1msg( ld, msgid, all, lc->lconn_sb,
370 rc = nsldapi_iostatus_poll( ld, tvp );
373 if ( rc == -1 ) {
381 if ( rc == 0 || ( rc == -1 && (( ld->ld_options &
385 if ( rc == -1 || rc == 0 ) {
387 LDAP_SET_LDERRNO( ld, (rc == -1 ?
390 if ( rc == -1 ) {
396 return( rc );
399 if ( rc == -1 ) {
400 rc = -2; /* select interrupted: loop */
402 rc = -2;
405 for ( lc = ld->ld_conns; rc == -2 && lc != NULL;
412 rc = read1msg( ld, msgid, all,
420 rc = nsldapi_ber_flush( ld, lc->lconn_sb, lr->lr_ber, 0, 1 );
421 if ( rc == 0 ) {
422 rc = LDAP_RES_BIND;
429 else if ( rc == -1 ) {
452 if ( rc == -2 &&
455 rc = (*result)->lm_msgtype;
461 if ( rc == -2 && tvp != NULL ) {
469 rc = 0; /* timed out */
485 return( rc );
503 int rc, has_parent, message_can_be_returned;
583 rc = -2; /* default is to keep looking (no response found) */
681 rc = -1; /* fatal error */
695 return( rc );
1057 int rc;
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?) */
1100 return( rc );
1121 int rc;
1128 rc = ld->ld_select_fn( 1, &readfds, 0, 0, timeout );
1131 rc = ld->ld_extselect_fn( ld->ld_ext_session_arg, 1, &readfds, 0,
1135 rc = select( 1, &readfds, 0, 0, timeout ) );
1138 return( rc == SOCKET_ERROR ? -1 : rc );
1271 int rc;
1276 rc = cldap_select1( ld, timeout );
1277 if ( rc == -1 || rc == 0 ) {
1278 LDAP_SET_LDERRNO( ld, (rc == -1 ? LDAP_SERVER_DOWN :
1280 return( rc );
1398 int rc;
1464 rc = lm->lm_msgtype;
1468 rc = -2;
1471 return ( rc );