From: Ulrich Drepper Date: Fri, 6 Aug 1999 20:11:37 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/pre-glibc-2_1_3~520 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93160baaa0ce41403b9eeb8bac3f24f31810db0d;p=thirdparty%2Fglibc.git Update. 1999-08-06 Ulrich Drepper * inet/tst-ipnode.c: New file. --- diff --git a/ChangeLog b/ChangeLog index 8bf80d02284..13e99c90dd7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +1999-08-06 Ulrich Drepper + + * inet/tst-ipnode.c: New file. + 1999-08-06 Andreas Schwab * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DSYNC, O_RSYNC): diff --git a/inet/tst-ipnode.c b/inet/tst-ipnode.c new file mode 100644 index 00000000000..b8b1e77c76c --- /dev/null +++ b/inet/tst-ipnode.c @@ -0,0 +1,23 @@ +#include +#include + +/* The unspecified IPv6 address. */ +struct in6_addr anyv6 = IN6ADDR_ANY_INIT; + +int +main (void) +{ + int errors = 0; + int errval; + + /* Test the unspecifed IPv6 address. */ + errval = 0x3453456; + if (getipnodebyaddr (&anyv6, sizeof (anyv6), AF_INET6, &errval) != NULL + || errval != HOST_NOT_FOUND) + { + puts ("getipnodenyaddr(in6addr_any,...) != NULL"); + ++errors; + } + + return errors != NULL; +}