res_sendsigned.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* No ISC copyright for this file.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "port_before.h"
#include "fd_setsize.h"
#include <errno.h>
#include <netdb.h>
#include <resolv.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "port_after.h"
#define DEBUG
#include "res_debug.h"
/* res_nsendsigned */
int
{
int usingTCP = 0;
int ret;
dst_init();
return (-1);
}
return (-1);
}
else
return (-1);
}
if (ret < 0) {
if (ret == NS_TSIG_ERROR_NO_SPACE)
else if (ret == -1)
return (ret);
}
usingTCP = 1;
if (usingTCP == 0)
else
if (ret < 0) {
return (ret);
}
if (ret != 0) {
#ifdef ORIGINAL_ISC_CODE
#else
#endif
if (ret == -1)
else
return (-1);
}
usingTCP = 1;
goto retry;
}
return (anslen);
}