public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/18233] New: msghdr and cmsghdr types are not POSIX conform in sys/socket.h
@ 2015-04-10 10:10 nszabolcs at gmail dot com
  2015-04-10 17:36 ` [Bug libc/18233] " jsm28 at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: nszabolcs at gmail dot com @ 2015-04-10 10:10 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 18233
           Summary: msghdr and cmsghdr types are not POSIX conform in
                    sys/socket.h
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: nszabolcs at gmail dot com
                CC: drepper.fsp at gmail dot com

msg_iovlen, msg_controllen and cmsg_len have wrong types

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html

the following code fails on linux:

#define _POSIX_C_SOURCE 200809L
#include <sys/socket.h>
void f()
{
struct msghdr x;
struct cmsghdr y;
int *p = &x.msg_iovlen; // warning: initialization from incompatible pointer
type [enabled by default]
socklen_t *q = &x.msg_controllen; // likewise
socklen_t *r = &y.cmsg_len;
}

-- 
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 libc/18233] msghdr and cmsghdr types are not POSIX conform in sys/socket.h
  2015-04-10 10:10 [Bug libc/18233] New: msghdr and cmsghdr types are not POSIX conform in sys/socket.h nszabolcs at gmail dot com
@ 2015-04-10 17:36 ` jsm28 at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-04-10 17:36 UTC (permalink / raw)
  To: glibc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Already reported.

*** This bug has been marked as a duplicate of bug 16919 ***

-- 
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-04-10 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-10 10:10 [Bug libc/18233] New: msghdr and cmsghdr types are not POSIX conform in sys/socket.h nszabolcs at gmail dot com
2015-04-10 17:36 ` [Bug libc/18233] " 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).