summaryrefslogtreecommitdiff
path: root/lib/canon-host.c
AgeCommit message (Collapse)Author
2004-11-16Include "strdup.h".Paul Eggert
(canon_host): Use getaddrinfo if available, so that IPv6 works. Use strdup instead of malloc/strcpy to duplicate strings.
2003-09-10Include <stdlib.h>, <string.h> unconditionally.Jim Meyering
2003-08-18Sync with gnulib.Jim Meyering
2003-01-06(strdup): Remove unused declaration.Jim Meyering
2000-06-21(canon_host): Use malloc and memcpy to copy anJim Meyering
address, not strdup. Include <stdlib.h> and don't declare free().
2000-04-29Declare strdup only if it's not defined.Jim Meyering
2000-04-05(canon_host): Declare strdup. Required for ultrix4.3.Jim Meyering
1999-03-10(canon_host): Don't use he->h_addr directly.Jim Meyering
Based on a patch from Savochkin Andrey Vladimirovich.
1999-01-11(main) [TEST_CANON_HOST]: Add a simple test driver.Jim Meyering
1999-01-07protoizeJim Meyering
1996-11-03Include sys/types.h for the definitionsJim Meyering
(otherwise missing on some systems) of caddr_t (used by sys/socket.h) and ushort (used by netinet/in.h). From Karl Heuer.
1996-07-15indent cpp-directivesJim Meyering
1996-07-15update FSF address in copyrightJim Meyering
1996-02-23[HAVE_SYS_SOCKET_H]: Include <sys/socket.h> for definition of AF_INETJim Meyering
on at least SunOS 4.
1996-02-13Be careful to always return something.Jim Meyering
1996-02-04(canon_host): Cast returned he->h_name to char*.Jim Meyering
1996-02-04.Jim Meyering