* net_db.c: remove bogus "close" declaration.
authorGary Houston <ghouston@arglist.com>
Sun, 22 Apr 2001 16:05:21 +0000 (16:05 +0000)
committerGary Houston <ghouston@arglist.com>
Sun, 22 Apr 2001 16:05:21 +0000 (16:05 +0000)
commit66c73b76544337c70d3b8f14748d937c2524c52d
tree825d12e18bad6733e3c2486d865916127ab474f2
parent2a0ef8b74aabc5535d17a58935bf6c18f7ae4abf
* net_db.c: remove bogus "close" declaration.
(inet_aton declaration, scm_inet_aton, scm_inet_ntoa,
scm_inet_netof, scm_lnaof, scm_inet_makeaddr, INADDR_ANY etc.):
moved to socket.c.
* net_db.h: declarations moved too.

* socket.c (scm_htonl, scm_ntohl): use uint32_t instead of unsigned
long.
(ipv6_net_to_num, ipv6_num_to_net): new static procedures.
(VALIDATE_INET6): new macro.
(scm_inet_pton, scm_inet_ntop): new procedures, implementing
inet-pton and inet-ntop.
(scm_fill_sockaddr): use VALIDATE_INET6 and ipv6_num_to_net.
(scm_addr_vector): use ipv6_net_to_num.
libguile/ChangeLog
libguile/net_db.c
libguile/net_db.h
libguile/socket.c
libguile/socket.h