This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
In the course of working on minires I noticed that Cygwin had a getdomainname() function, but that it was not fully functional. Here is a fix. Note that I have used strncpy to comform to a man page I found <http://www.freebsd.org/cgi/man.cgi?query=getdomainname&apropos=0&sektion=0& manpath=NetBSD+1.6.1&format=html> (alternatives are to return an error if name too long, or use strlcpy). Pierre 2003-06-18 Pierre Humblet <pierre.humblet@ieee.org> * autoload.cc (GetNetworkParams): Add. * net.cc (getdomainname): Call GetNetworkParams and read the DhcpDomain registry value if warranted.
Attachment:
domain.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |