diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:28:35 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:28:35 -0800 |
commit | 1dc9e472e19acfe6dc7f41e429236e7eef7ceda1 (patch) | |
tree | 3be0c520fae17689bbf5584e1136fb820caef26f /libc/netbsd/resolv/__dn_comp.c | |
parent | 1767f908af327fa388b1c66883760ad851267013 (diff) | |
download | android_bionic-1dc9e472e19acfe6dc7f41e429236e7eef7ceda1.tar.gz android_bionic-1dc9e472e19acfe6dc7f41e429236e7eef7ceda1.tar.bz2 android_bionic-1dc9e472e19acfe6dc7f41e429236e7eef7ceda1.zip |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'libc/netbsd/resolv/__dn_comp.c')
-rw-r--r-- | libc/netbsd/resolv/__dn_comp.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libc/netbsd/resolv/__dn_comp.c b/libc/netbsd/resolv/__dn_comp.c new file mode 100644 index 000000000..93d3f1988 --- /dev/null +++ b/libc/netbsd/resolv/__dn_comp.c @@ -0,0 +1,38 @@ +/* $NetBSD: __dn_comp.c,v 1.4 2005/09/13 01:44:10 christos Exp $ */ + +/* + * written by matthew green, 22/04/97. + * public domain. + */ + +#include <sys/cdefs.h> +#if defined(LIBC_SCCS) && !defined(lint) +__RCSID("$NetBSD: __dn_comp.c,v 1.4 2005/09/13 01:44:10 christos Exp $"); +#endif /* LIBC_SCCS and not lint */ + +#if defined(__indr_reference) +__indr_reference(__dn_comp,dn_comp) +#else + +#include <sys/types.h> +#include <netinet/in.h> +#ifdef ANDROID_CHANGES +#include "resolv_private.h" +#else +#include <resolv.h> +#endif + +/* XXX THIS IS A MESS! SEE <resolv.h> XXX */ + +#undef dn_comp +int dn_comp(const char *, u_char *, int, u_char **, u_char **); + +int +dn_comp(const char *exp_dn, u_char *comp_dn, u_char **dnptrs, + u_char **lastdnptr, int length) +{ + + return __dn_comp(exp_dn, comp_dn, length, dnptrs, lastdnptr); +} + +#endif |