about summary refs log tree commit diff
path: root/resolv/resolv-internal.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-06-21 13:09:08 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-06-21 13:09:08 +0200
commit60149b28590be28051f99d0a343d7fbe002f2a8c (patch)
tree3eb9b2d7016cedd4178a193fe6c0146ec847f7ee /resolv/resolv-internal.h
parent965d5c391c86eb3a812ce308411c32754f12a9d2 (diff)
downloadglibc-60149b28590be28051f99d0a343d7fbe002f2a8c.tar.gz
glibc-60149b28590be28051f99d0a343d7fbe002f2a8c.tar.xz
glibc-60149b28590be28051f99d0a343d7fbe002f2a8c.zip
__inet_pton_length: Implement new internal helper function
Diffstat (limited to 'resolv/resolv-internal.h')
-rw-r--r--resolv/resolv-internal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/resolv/resolv-internal.h b/resolv/resolv-internal.h
index 0d69ce10d3..9afaa07d8b 100644
--- a/resolv/resolv-internal.h
+++ b/resolv/resolv-internal.h
@@ -56,4 +56,13 @@ enum
 int __res_nopt (res_state, int n0, unsigned char *buf, int buflen,
                 int anslen) attribute_hidden;
 
+/* Convert from presentation format (which usually means ASCII
+   printable) to network format (which is usually some kind of binary
+   format).  The input is in the range [SRC, SRC + SRCLEN).  The
+   output is written to DST (which has to be 4 or 16 bytes long,
+   depending on AF).  Return 0 for invalid input, 1 for success, -1
+   for an invalid address family.  */
+int __inet_pton_length (int af, const char *src, size_t srclen, void *);
+libc_hidden_proto (__inet_pton_length)
+
 #endif  /* _RESOLV_INTERNAL_H */