* net.cc (cygwin_inet_network): new function.

* cygwin.din (inet_network): new export
This commit is contained in:
DJ Delorie 2000-04-24 15:44:11 +00:00
parent 86f6bd9104
commit 046069e449
3 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-04-24 Vadim Egorov <egorovv@mailandnews.com>
* net.cc (cygwin_inet_network): new function.
* cygwin.din (inet_network): new export
Fri Apr 21 10:37:08 2000 Christopher Faylor <cgf@cygnus.com>
* path.cc (normalize_posix_path): Previous two patches were still

View File

@ -919,6 +919,7 @@ bind = cygwin_bind
connect = cygwin_connect
herror = cygwin_herror
inet_addr = cygwin_inet_addr
inet_network = cygwin_inet_network
inet_netof
inet_makeaddr
listen = cygwin_listen

View File

@ -127,6 +127,17 @@ cygwin_inet_addr (const char *cp)
return res;
}
/* undocumented in wsock32.dll */
extern "C" unsigned int inet_network (const char *);
extern "C"
unsigned int
cygwin_inet_network (const char *cp)
{
unsigned int res = inet_network (cp);
return res;
}
/* inet_netof is in the standard BSD sockets library. It is useless
for modern networks, since it assumes network values which are no
longer meaningful, but some existing code calls it. */
@ -1811,6 +1822,7 @@ LoadDLLfunc (getservbyport, getservbyport@8, wsock32)
LoadDLLfunc (getsockname, getsockname@12, wsock32)
LoadDLLfunc (getsockopt, getsockopt@20, wsock32)
LoadDLLfunc (inet_addr, inet_addr@4, wsock32)
LoadDLLfunc (inet_network, inet_network@4, wsock32)
LoadDLLfunc (inet_ntoa, inet_ntoa@4, wsock32)
LoadDLLfunc (ioctlsocket, ioctlsocket@12, wsock32)
LoadDLLfunc (listen, listen@8, wsock32)