diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2005-02-14 02:58:21 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2005-02-14 02:58:21 +0000 |
commit | 8c041fae951361fde075b332cfc14251e7463a5f (patch) | |
tree | 44a69e61923c68678d1c1a70a0edf47d6e0731ed /contrib/sendmail/contrib | |
parent | 9883351c45502bc6aec878ba11d8ef5fe1843397 (diff) | |
download | FreeBSD-src-8c041fae951361fde075b332cfc14251e7463a5f.zip FreeBSD-src-8c041fae951361fde075b332cfc14251e7463a5f.tar.gz |
Remove files no longer in vendor distribution from vendor branch
Diffstat (limited to 'contrib/sendmail/contrib')
-rw-r--r-- | contrib/sendmail/contrib/oldbind.compat.c | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/contrib/sendmail/contrib/oldbind.compat.c b/contrib/sendmail/contrib/oldbind.compat.c deleted file mode 100644 index 1621a7b..0000000 --- a/contrib/sendmail/contrib/oldbind.compat.c +++ /dev/null @@ -1,79 +0,0 @@ -/* -** OLDBIND.COMPAT.C -** -** Very old systems do not have res_query(), res_querydomain() or -** res_search(), so emulate them here. -** -** You really ought to be upgrading to a newer version of BIND -** (4.8.2 or later) rather than be using this. -** -** J.R. Oldroyd <jr@inset.com> -*/ - -#include <sys/types.h> -#include <netinet/in.h> -#include <arpa/nameser.h> -#include <resolv.h> - -typedef union -{ - HEADER qb1; - char qb2[PACKETSZ]; -} querybuf; - -res_query(dname, class, type, data, datalen) - char * dname; - int class; - int type; - char * data; - int datalen; -{ - int n; - querybuf buf; - - n = res_mkquery(QUERY, dname, class, type, (char *) NULL, 0, - NULL, (char *) &buf, sizeof buf); - n = res_send((char *)&buf, n, data, datalen); - - return n; -} - -res_querydomain(host, dname, class, type, data, datalen) - char * host; - char * dname; - int class; - int type; - char * data; - int datalen; -{ - int n; - querybuf buf; - char dbuf[256]; - - strcpy(dbuf, host); - if (dbuf[strlen(dbuf)-1] != '.') - strcat(dbuf, "."); - strcat(dbuf, dname); - n = res_mkquery(QUERY, dbuf, class, type, (char *) NULL, 0, - NULL, (char *)&buf, sizeof buf); - n = res_send((char *) &buf, n, data, datalen); - - return n; -} - -res_search(dname, class, type, data, datalen) - char * dname; - int class; - int type; - char * data; - int datalen; -{ - int n; - querybuf buf; - - n = res_mkquery(QUERY, dname, class, type, (char *)NULL, 0, - NULL, (char *) &buf, sizeof buf); - n = res_send((char *) &buf, n, data, datalen); - - return n; -} |