rc = 0;
main( int argc, char **argv ){    char	buf[ 4096 ];    int		rc, deref, optind;    LDAPControl	*ldctrl;#ifdef notdef#ifdef HPUX11#ifndef __LP64__	_main( argc, argv);#endif /* __LP64_ */#endif /* HPUX11 */#endif    contoper = 0;    optind = ldaptool_process_args( argc, argv, "c", 0, options_callback );	    if ( optind == -1 ) {		usage();    }    if ( ldaptool_fp == NULL && optind >= argc ) {	ldaptool_fp = stdin;    }    ld = ldaptool_ldap_init( 0 );    deref = LDAP_DEREF_NEVER;	/* prudent, but probably unnecessary */    ldap_set_option( ld, LDAP_OPT_DEREF, &deref );    ldaptool_bind( ld );    if (( ldctrl = ldaptool_create_manage_dsait_control()) != NULL ) {	ldaptool_add_control_to_array( ldctrl, ldaptool_request_ctrls);    }     if ((ldctrl = ldaptool_create_proxyauth_control(ld)) !=NULL) {	ldaptool_add_control_to_array( ldctrl, ldaptool_request_ctrls);    }    if ( ldaptool_fp == NULL ) {	for ( ; optind < argc; ++optind ) {            char *conv;            conv = ldaptool_local2UTF8( argv[ optind ], "DN" );	    rc = dodelete( ld, conv, ldaptool_request_ctrls );            if( conv != NULL )                free( conv );	}    } else {	rc = 0;	while ((rc == 0 || contoper) &&		fgets(buf, sizeof(buf), ldaptool_fp) != NULL) {	    buf[ strlen( buf ) - 1 ] = '\0';	/* remove trailing newline */	    if ( *buf != '\0' ) {		rc = dodelete( ld, buf, ldaptool_request_ctrls );	    }	}    }    ldaptool_reset_control_array( ldaptool_request_ctrls );    ldaptool_cleanup( ld );    return( rc );}