#! /bin/sh
-# From configure.in Revision: 1.8
+# From configure.in Revision: 1.9
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.13
if eval "test \"`echo '$ac_cv_func_'getservent_r`\" = yes"; then
echo "$ac_t""yes" 1>&6
- :
+ cat > conftest.$ac_ext <<EOF
+#line 5817 "configure"
+#include "confdefs.h"
+
+#include <netdb.h>
+struct servent *
+getservent_r(struct servent *result, char *buffer, int buflen) {}
+
+int main() {
+return (0);
+; return 0; }
+EOF
+if { (eval echo configure:5828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+
+SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"
+SERV_R_BAD="#define SERV_R_BAD NULL"
+SERV_R_COPY="#define SERV_R_COPY buf, buflen"
+SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS"
+SERV_R_OK="#define SERV_R_OK sptr"
+SERV_R_RETURN="#define SERV_R_RETURN struct servent *"
+
+
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+fi
+rm -f conftest*
+
else
echo "$ac_t""no" 1>&6
SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"
echo $ac_n "checking for endservent_r""... $ac_c" 1>&6
-echo "configure:5836: checking for endservent_r" >&5
+echo "configure:5864: checking for endservent_r" >&5
if eval "test \"`echo '$''{'ac_cv_func_endservent_r'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5841 "configure"
+#line 5869 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char endservent_r(); below. */
; return 0; }
EOF
-if { (eval echo configure:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_endservent_r=yes"
else
echo $ac_n "checking for setservent_r""... $ac_c" 1>&6
-echo "configure:5892: checking for setservent_r" >&5
+echo "configure:5920: checking for setservent_r" >&5
if eval "test \"`echo '$''{'ac_cv_func_setservent_r'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5897 "configure"
+#line 5925 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char setservent_r(); below. */
; return 0; }
EOF
-if { (eval echo configure:5920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_setservent_r=yes"
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:6023: checking for $ac_word" >&5
+echo "configure:6051: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_JADE'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:6070: checking for $ac_word" >&5
+echo "configure:6098: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_TEX'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:6112: checking for $ac_word" >&5
+echo "configure:6140: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PDFTEX'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
SGMLDIR=""
echo $ac_n "checking for SGML files""... $ac_c" 1>&6
-echo "configure:6157: checking for SGML files" >&5
+echo "configure:6185: checking for SGML files" >&5
for d in /usr/pkg/share/sgml /usr/local/share/sgml
do
if test -f $d/docbook/dsssl/modular/html/docbook.dsl
XGMLDIR=""
echo $ac_n "checking for XML files""... $ac_c" 1>&6
-echo "configure:6182: checking for XML files" >&5
+echo "configure:6210: checking for XML files" >&5
for d in /usr/pkg/share/xml /usr/local/share/xml
do
if test -f $d/dtd/docbook/docbookx.dtd
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
AC_DIVERT_POP()dnl
-AC_REVISION($Revision: 1.9 $)
+AC_REVISION($Revision: 1.10 $)
AC_INIT(resolv/herror.c)
AC_PREREQ(2.13)
AC_SUBST(PASS_R_SET_RETURN)
AC_CHECK_FUNC(getservent_r,
+AC_TRY_COMPILE([
+#include <netdb.h>
+struct servent *
+getservent_r(struct servent *result, char *buffer, int buflen) {}
+],[return (0);],
+[
+SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"
+SERV_R_BAD="#define SERV_R_BAD NULL"
+SERV_R_COPY="#define SERV_R_COPY buf, buflen"
+SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS"
+SERV_R_OK="#define SERV_R_OK sptr"
+SERV_R_RETURN="#define SERV_R_RETURN struct servent *"
+]
+,
+)
,
SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"
SERV_R_BAD="#define SERV_R_BAD NULL"
#ifndef LINT
-static const char rcsid[] = "$Header: /u0/home/explorer/proj/ISC/git-conversion/cvsroot/bind9/lib/bind/dst/Attic/dst_api.c,v 1.3 2001/04/03 00:28:10 bwelling Exp $";
+static const char rcsid[] = "$Header: /u0/home/explorer/proj/ISC/git-conversion/cvsroot/bind9/lib/bind/dst/Attic/dst_api.c,v 1.4 2001/04/03 06:42:17 marka Exp $";
#endif
/*
enckey[--len] = '\0';
/* remove leading spaces */
- for (notspace = (char *) enckey; isspace((*notspace)&0xff); len--)
+ for (notspace = (char *) enckey; isspace((unsigned char)*notspace); len--)
notspace++;
dlen = b64_pton(notspace, deckey, sizeof(deckey));
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] = "$Id: inet_net_pton.c,v 1.2 2001/04/03 05:52:50 marka Exp $";
+static const char rcsid[] = "$Id: inet_net_pton.c,v 1.3 2001/04/03 06:42:19 marka Exp $";
#endif
#include "port_before.h"
ch = *src++;
if (ch == '0' && (src[0] == 'x' || src[0] == 'X')
- && isascii(src[1]&0xff) && isxdigit(src[1]&0xff)) {
+ && isascii((unsigned char)(src[1]))
+ && isxdigit((unsigned char)(src[1]))) {
/* Hexadecimal: Eat nybble string. */
if (size <= 0)
goto emsgsize;
if (*cp == 'x' || *cp == 'X')
base = 16, cp++;
while ((c = *cp) != 0) {
- if (isdigit(c&0xff)) {
+ if (isdigit((unsigned char)c)) {
if (base == 8 && (c == '8' || c == '9'))
return (INADDR_NONE);
val = (val * base) + (c - '0');
digit = 1;
continue;
}
- if (base == 16 && isxdigit(c&0xff)) {
+ if (base == 16 && isxdigit((unsigned char)c)) {
val = (val << 4) +
- (c + 10 - (islower(c&0xff) ? 'a' : 'A'));
+ (c + 10 - (islower((unsigned char)c) ? 'a' : 'A'));
cp++;
digit = 1;
continue;
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] = "$Id: dns_nw.c,v 1.2 2001/04/03 05:52:54 marka Exp $";
+static const char rcsid[] = "$Id: dns_nw.c,v 1.3 2001/04/03 06:42:21 marka Exp $";
#endif /* LIBC_SCCS and not lint */
/* Imports. */
/* Make lower case. */
for (t = name; *t; t++)
- if (isascii(*t&0xff) && isupper(*t&0xff))
+ if (isascii((unsigned char)*t) && isupper((unsigned char)*t))
*t = tolower(*t);
/* Remove trailing dots. */
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] = "$Id: dns_pr.c,v 1.2 2001/04/03 05:52:55 marka Exp $";
+static const char rcsid[] = "$Id: dns_pr.c,v 1.3 2001/04/03 06:42:22 marka Exp $";
#endif
/* Imports */
/* Skip blank lines. */
p = cp;
- while (*p && !isspace(*p&0xff))
+ while (*p && !isspace((unsigned char)*p))
p++;
if (!*p)
continue;
p = pvt->prbuf;
pvt->proto.p_name = p;
- while (*p && !isspace(*p&0xff))
+ while (*p && !isspace((unsigned char)*p))
p++;
if (!*p)
continue;
*p++ = '\0';
pvt->proto.p_proto = atoi(p);
- while (*p && !isspace(*p&0xff))
+ while (*p && !isspace((unsigned char)*p))
p++;
if (*p)
*p++ = '\0';
pvt->proto.p_aliases = new;
}
pvt->proto.p_aliases[num++] = p;
- while (*p && !isspace(*p&0xff))
+ while (*p && !isspace((unsigned char)*p))
p++;
if (*p)
*p++ = '\0';
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] = "$Id: dns_sv.c,v 1.2 2001/04/03 05:52:56 marka Exp $";
+static const char rcsid[] = "$Id: dns_sv.c,v 1.3 2001/04/03 06:42:23 marka Exp $";
#endif
/* Imports */
/* Check to make sure the protocol matches. */
p = cp;
- while (*p && !isspace(*p&0xff))
+ while (*p && !isspace((unsigned char)*p))
p++;
if (!*p)
continue;
*/
#if !defined(LINT) && !defined(CODECENTER)
-static const char rcsid[] = "$Id: gen.c,v 1.2 2001/04/03 05:52:57 marka Exp $";
+static const char rcsid[] = "$Id: gen.c,v 1.3 2001/04/03 06:42:25 marka Exp $";
#endif
/*
int n;
for (tmp = line;
- isascii(*tmp&0xff) && isspace(*tmp&0xff);
+ isascii((unsigned char)*tmp) &&
+ isspace((unsigned char)*tmp);
tmp++)
(void)NULL;
if (*tmp == '#' || *tmp == '\n' || *tmp == '\0')
*/
#if !defined(LINT) && !defined(CODECENTER)
-static const char rcsid[] = "$Id: getnetent.c,v 1.2 2001/04/03 05:52:58 marka Exp $";
+static const char rcsid[] = "$Id: getnetent.c,v 1.3 2001/04/03 06:42:26 marka Exp $";
#endif
/* Imports */
RES_SET_H_ERRNO(net_data->res, NETDB_INTERNAL);
return (NULL);
}
- if (!isascii(name[0]&0xff) || !isdigit(name[0]&0xff))
+ if (!isascii((unsigned char)(name[0])) ||
+ !isdigit((unsigned char)(name[0])))
return (NULL);
for (cp = name; *cp; ++cp)
if (!isascii(*cp) || (!isdigit(*cp) && *cp != '.'))
*/
#if !defined(LINT) && !defined(CODECENTER)
-static const char rcsid[] = "$Id: irp.c,v 1.2 2001/04/03 05:52:59 marka Exp $";
+static const char rcsid[] = "$Id: irp.c,v 1.3 2001/04/03 06:42:27 marka Exp $";
#endif
/* Imports */
code = 0;
} else if (text != NULL && textlen > 0) {
p = line;
- while (isspace(*p&0xff)) p++;
- while (isdigit(*p&0xff)) p++;
- while (isspace(*p&0xff)) p++;
+ while (isspace((unsigned char)*p)) p++;
+ while (isdigit((unsigned char)*p)) p++;
+ while (isspace((unsigned char)*p)) p++;
strncpy(text, p, textlen - 1);
p[textlen - 1] = '\0';
}
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] = "$Id: irpmarshall.c,v 1.2 2001/04/03 05:53:00 marka Exp $";
+static const char rcsid[] = "$Id: irpmarshall.c,v 1.3 2001/04/03 06:42:28 marka Exp $";
#endif /* LIBC_SCCS and not lint */
#if 0
host = user = domain = NULL;
p = buffer;
- while (isspace(*p&0xff)) {
+ while (isspace((unsigned char)*p)) {
p++;
}
if (*p != '(') {
#if !defined(lint) && !defined(SABER)
-static const char rcsid[] = "$Id: ctl_clnt.c,v 1.2 2001/04/03 05:53:02 marka Exp $";
+static const char rcsid[] = "$Id: ctl_clnt.c,v 1.3 2001/04/03 06:42:29 marka Exp $";
#endif /* not lint */
/*
/* Macros. */
#define donefunc_p(ctx) ((ctx).donefunc != NULL)
-#define arpacode_p(line) (isdigit(line[0]&0xff) && isdigit(line[1]&0xff) && \
- isdigit(line[2]&0xff))
+#define arpacode_p(line) (isdigit((unsigned char)(line[0])) && \
+ isdigit((unsigned char)(line[1])) && \
+ isdigit((unsigned char)(line[2])))
#define arpacont_p(line) (line[3] == '-')
#define arpadone_p(line) (line[3] == ' ' || line[3] == '\t' || \
line[3] == '\r' || line[3] == '\0')
memcpy(tran->outbuf.text, cmd, len);
tran->outbuf.used = len;
for (pc = tran->outbuf.text, n = 0; n < tran->outbuf.used; pc++, n++)
- if (!isascii(*pc&0xff) || !isprint(*pc&0xff))
+ if (!isascii((unsigned char)*pc) ||
+ !isprint((unsigned char)*pc))
*pc = '\040';
start_write(ctx);
return (0);
#if !defined(lint) && !defined(SABER)
-static const char rcsid[] = "$Id: ctl_srvr.c,v 1.2 2001/04/03 02:30:56 marka Exp $";
+static const char rcsid[] = "$Id: ctl_srvr.c,v 1.3 2001/04/03 06:42:30 marka Exp $";
#endif /* not lint */
/*
sess->outbuf.used = SPRINTF((sess->outbuf.text, "%03d%c%s\r\n",
code, (flags & CTL_MORE) != 0 ? '-' : ' ',
text));
- for (pc = sess->outbuf.text, n = 0; n < (int)sess->outbuf.used-2; pc++, n++)
- if (!isascii(*pc&0xff) || !isprint(*pc&0xff))
+ for (pc = sess->outbuf.text, n = 0;
+ n < (int)sess->outbuf.used-2; pc++, n++)
+ if (!isascii((unsigned char)*pc) ||
+ !isprint((unsigned char)*pc))
*pc = '\040';
*iovp++ = evConsIovec(sess->outbuf.text, sess->outbuf.used);
if (body != NULL) {
*/
#ifndef lint
-static const char rcsid[] = "$Id: ns_date.c,v 1.2 2001/04/02 09:41:33 marka Exp $";
+static const char rcsid[] = "$Id: ns_date.c,v 1.3 2001/04/03 06:42:32 marka Exp $";
#endif
/* Import. */
int i;
for (i = 0; i < size; i++) {
- if (!isdigit(buf[i]&0xff))
+ if (!isdigit((unsigned char)(buf[i])))
*errp = 1;
result = (result * 10) + buf[i] - '0';
}
#define MAXHOSTNAMELEN 256
#endif
+#ifndef INET6_ADDRSTRLEN
+/* sizeof("aaaa:bbbb:cccc:dddd:eeee:ffff:123.123.123.123") */
+#define INET6_ADDRSTRLEN 46
+#endif
+
#ifndef MIN
#define MIN(x,y) (((x) <= (y)) ? (x) : (y))
#endif
#if defined(LIBC_SCCS) && !defined(lint)
static const char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93";
-static const char rcsid[] = "$Id: res_query.c,v 1.1 2001/03/29 06:31:59 marka Exp $";
+static const char rcsid[] = "$Id: res_query.c,v 1.2 2001/04/03 06:42:33 marka Exp $";
#endif /* LIBC_SCCS and not lint */
#include "port_before.h"
setbuf(fp, NULL);
buf[sizeof(buf) - 1] = '\0';
while (fgets(buf, sizeof(buf), fp)) {
- for (cp1 = buf; *cp1 && !isspace(*cp1); ++cp1)
+ for (cp1 = buf; *cp1 && !isspace((unsigned char)*cp1); ++cp1)
;
if (!*cp1)
break;
*cp1 = '\0';
if (ns_samename(buf, name) == 1) {
- while (isspace(*++cp1))
+ while (isspace((unsigned char)*++cp1))
;
if (!*cp1)
break;
- for (cp2 = cp1 + 1; *cp2 && !isspace(*cp2); ++cp2)
+ for (cp2 = cp1 + 1; *cp2 &&
+ !isspace((unsigned char)*cp2); ++cp2)
;
*cp2 = '\0';
strncpy(dst, cp1, siz - 1);