public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/6775] Spurious use of __USE_GNU for in6_pktinfo definition
       [not found] <bug-6775-131@http.sourceware.org/bugzilla/>
@ 2014-07-04 15:09 ` ghudson at mit dot edu
  2015-08-22 20:31 ` [Bug network/6775] " jsm28 at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: ghudson at mit dot edu @ 2014-07-04 15:09 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=6775

Greg Hudson <ghudson at mit dot edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |ghudson at mit dot edu
         Resolution|INVALID                     |---

--- Comment #2 from Greg Hudson <ghudson at mit dot edu> ---
IPv6 pktinfo is specified in RFC 3542, although it is still not part of POSIX. 
It is implemented and part of the default namespace of netinet/in.h in Solaris,
FreeBSD, the Hurd, OS X, AIX, and HP-UX.  In glibc, it should be protected with
__USE_MISC and be available by default.

By contrast, IPv4 pktinfo originated with Linux.  It is now implemented in
Solaris and maybe some of the BSDs, but it is much less widely available.  In
glibc it is already protected with __USE_MISC and available by default.  That's
a good thing, but it demonstrates that glibc is much too conservative about
declaring IPv6 pktinfo.

I disagree that all Linux programs should define _GNU_SOURCE.  It breaks
strerror_r with respect to POSIX and may cause other issues I don't yet know
about.  It's also an extra step which should not be necessary to use extensions
available on many other platforms.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug network/6775] Spurious use of __USE_GNU for in6_pktinfo definition
       [not found] <bug-6775-131@http.sourceware.org/bugzilla/>
  2014-07-04 15:09 ` [Bug libc/6775] Spurious use of __USE_GNU for in6_pktinfo definition ghudson at mit dot edu
@ 2015-08-22 20:31 ` jsm28 at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-22 20:31 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=6775

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |network

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-22 20:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-6775-131@http.sourceware.org/bugzilla/>
2014-07-04 15:09 ` [Bug libc/6775] Spurious use of __USE_GNU for in6_pktinfo definition ghudson at mit dot edu
2015-08-22 20:31 ` [Bug network/6775] " jsm28 at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).