Fwd: getaddrinfo(3) bug

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

 



Resent, as the original was HTML formatted. My apologies.

---------- Forwarded message ----------
From: Scott Walls <sawalls@xxxxxxxxx>
Date: Thu, Jun 24, 2010 at 12:27 PM
Subject: getaddrinfo(3) bug
To: mtk.manpages@xxxxxxxxx
Cc: linux-man@xxxxxxxxxxxxxxx


manpages-dev version 3.23-1
Ubuntu 10.04
man 3 getaddrinfo
On line 74-75, in the description of the ai_flags member, it says
"Multiple flags are specified by logically OR-ing them together."
This should say "Multiple flags are specified by bitwise OR-ing them together."
I believe this to be true for the following reasons:

-the result of logical OR ( || ) is always 1 or 0 (this is how it is
defined in Harbinson and Steele, at least), so it would be impossible
to extract out the different bitflags

-on lines 80 "and ai_flags to (AI_V4MAPPED | AI_ADDRCONFIG)" it seems
that bitwise or is the proper choice

If you need any more information, please feel free to ask.
Thanks
Scott Walls
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux