if (( fp = fopen( path, "r" )) == NULL ) {
if (( fp = NSLDAPI_FOPEN( path, "r" )) == NULL ) {
file_read( char *path, struct berval *bv ){	FILE		*fp;	long		rlen;	int		eof;	if (( fp = fopen( path, "r" )) == NULL ) {	    	perror( path );		return( -1 );	}	if ( fseek( fp, 0L, SEEK_END ) != 0 ) {		perror( path );		fclose( fp );		return( -1 );	}	bv->bv_len = ftell( fp );	if (( bv->bv_val = (char *)malloc( bv->bv_len )) == NULL ) {		perror( "malloc" );		fclose( fp );		return( -1 );	}	if ( fseek( fp, 0L, SEEK_SET ) != 0 ) {		perror( path );		fclose( fp );		return( -1 );	}	rlen = fread( bv->bv_val, 1, bv->bv_len, fp );	eof = feof( fp );	fclose( fp );	if ( (unsigned long)rlen != bv->bv_len ) {		perror( path );		free( bv->bv_val );		return( -1 );	}	return( bv->bv_len );}