[libvirt] [PATCH] syntax-check: prohibit all new uses of gethostby* functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 11 Dec 2008, Jim Meyering wrote:

Good point.
Yet another reason not to use gethostbyname.
I think it's time to make the prohibition official.

I sure hope the Cygwin 1.7, which just released yesterday to formal beta trial, and brings in getaddrinfo() for my win 2000 porting box, _works_ -- perhaps deprecate it for a while first (understanding it is stated as 'prohibit all new uses ...')?

+# Not only do they fail to deal well with ipv6, but the gethostby*
+# functions are also not thread-safe.

I think you mean to say here that the implementation you are encountering is not thread safe

# Avoid useless parentheses like those in this example:
# #if defined (SYMBOL) || defined (SYM2)
sc_useless_cpp_parens:

I infer you can divine the future as to how the g++ 4.7.x implementers will decide parenthesizing will be first warned, and then error-ed ;)

-- Russ herrold

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]