Lines Matching defs:rc

231 	int		rc;
254 rc = -2;
255 while ( rc == -2 ) {
266 rc = read1msg( ld, msgid, all, lc->lconn_sb,
273 rc = do_ldap_select( ld, tvp );
277 if ( rc == -1 ) {
285 if ( rc == 0 || ( rc == -1 && (ld->ld_restart || errno != EINTR ))) {
287 if ( rc == -1 || rc == 0 ) {
289 ld->ld_errno = (rc == -1 ? LDAP_SERVER_DOWN :
291 if ( rc == -1 ) {
300 return( rc );
303 if ( rc == -1 ) {
304 rc = -2; /* select interrupted: Continue the loop */
306 rc = -2;
307 for ( lc = ld->ld_conns; rc == -2 && lc != NULL;
316 rc = read1msg( ld, msgid, all,
321 rc = -1;
328 if ( rc == -2 && tvp != NULL ) {
340 rc = 0; /* timed out */
351 return( rc );
368 int rc, refer_cnt, hadref, simple_request, samereq = 0, total_count;
541 rc = -2; /* default is to keep looking (no response found) */
556 rc = -1;
564 return (rc);
580 rc = -1; /* ??? */
607 rc = -1; /* ??? */
657 rc = -2;
737 rc = -1; /* fatal error */
751 return( rc );
981 int rc;
986 rc = select( 1, &readfds, 0, 0, timeout );
987 return( rc == SOCKET_ERROR ? -1 : rc );
1018 int rc;
1028 rc = netqlen( ld->ld_sb.sb_sd );
1029 } while ( rc <= 0 && ( timeout == NULL || clock() < endtime ));
1031 return( rc > 0 ? 1 : 0 );
1156 int rc;
1163 rc = ldap_select1( ld, timeout );
1164 if ( rc == -1 || rc == 0 ) {
1165 ld->ld_errno = (rc == -1 ? LDAP_SERVER_DOWN :
1170 return( rc );
1219 size_t rc;
1258 rc = ber_scanf( &ber, "{iaa", &along, &acharp, &a2ndcharp);
1259 if (rc == LBER_ERROR){
1284 rc = ber_scanf(&ber, "{v}", &arefs);
1285 if (rc == LBER_ERROR){
1311 rc = ber_scanf(&ber, "}");
1312 if (rc == LBER_ERROR){
1324 (int *)&rc);
1338 rc = ber_scanf( &ber, "{iaa}", &along, &acharp,
1340 if (rc == LBER_ERROR){
1363 rc = ber_scanf( &ber, "{ia}", &along, &a2ndcharp );
1364 if (rc == LBER_ERROR){
1399 size_t rc;
1424 rc = ber_scanf( &ber, "{iaa", &along, &acharp, &a2ndcharp);
1425 if (rc == LBER_ERROR){
1442 rc = ber_get_stringal( &ber, &creds);
1443 if (rc == LBER_ERROR ){
1463 rc = ber_scanf(&ber, "{v}", &arefs);
1464 if (rc == LBER_ERROR){
1495 rc = ber_scanf(&ber, "}");
1496 if (rc == LBER_ERROR){
1529 size_t rc;
1555 rc = ber_scanf( &ber, "{iaa", &along, &acharp, &a2ndcharp);
1556 if (rc == LBER_ERROR){
1566 rc = ber_scanf(&ber, "{v}", &arefs);
1567 if (rc == LBER_ERROR){
1585 rc = ber_get_stringa( &ber, &anoid);
1586 if (rc == LBER_ERROR ){
1598 rc = ber_get_stringal( &ber, &aresp);
1599 if (rc == LBER_ERROR ){
1611 rc = ber_scanf(&ber, "}");
1612 if (rc == LBER_ERROR){