This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/21260] New: [alpha] struct netent n_net wrong type


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

            Bug ID: 21260
           Summary: [alpha] struct netent n_net wrong type
           Product: glibc
           Version: 2.25
            Status: NEW
          Severity: normal
          Priority: P2
         Component: network
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org
  Target Milestone: ---
              Host: alpha*-*-linux*

sysdeps/unix/sysv/linux/alpha/bits/netdb.h defines:

struct netent
{
  char *n_name;                 /* Official name of network.  */
  char **n_aliases;             /* Alias list.  */
  int n_addrtype;               /* Net address type.  */
  /* XXX We should probably use uint32_t for the field and ensure
     compatibility by adding appropriate padding.  */
  unsigned long int n_net;      /* Network number.  */
};

This type of n_net is contrary to POSIX, resulting in the following failures:

FAIL: conform/XOPEN2K/netdb.h/conform
FAIL: conform/XOPEN2K8/netdb.h/conform

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]