[torquedev] [Bug 77] New: Use getaddrinfo instead of gethostbyname

bugzilla-daemon at supercluster.org bugzilla-daemon at supercluster.org
Mon Aug 16 06:42:40 MDT 2010


http://www.clusterresources.com/bugzilla/show_bug.cgi?id=77

           Summary: Use getaddrinfo instead of gethostbyname
           Product: TORQUE
           Version: 2.5.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: libtorque
        AssignedTo: glen.beane at gmail.com
        ReportedBy: burnus at net-b.de
                CC: torquedev at supercluster.org
   Estimated Hours: 0.0


As Ulrich Drepper outlines in detail at
http://udrepper.livejournal.com/16116.html, one should use getaddrinfo instead
of gethostbyname.

The function is described in POSIX standard as:
http://www.opengroup.org/onlinepubs/009695399/functions/getaddrinfo.html


Note: Also POSIX writes:
"The getaddrinfo() and getnameinfo() functions are preferred over the
gethostbyaddr() and gethostbyname() functions." [...] "The gethostbyaddr() and
gethostbyname() functions may be withdrawn in a future version."
(http://www.opengroup.org/onlinepubs/009695399/functions/gethostbyname.html)

-- 
Configure bugmail: http://www.clusterresources.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the torquedev mailing list