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 libc/17515] New: _XOPEN_IOV_MAX not defined by <limits.h>


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

            Bug ID: 17515
           Summary: _XOPEN_IOV_MAX not defined by <limits.h>
           Product: glibc
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: chris.hall at highwayman dot com
                CC: drepper.fsp at gmail dot com

Compiling with _XOPEN_SOURCE = 700, but _GNU_SOURCE *not* defined, I find that
<limits.h> includes <bits/xopen_lim.h> which contains:

  #define _XOPEN_IOV_MAX _POSIX_UIO_MAXIOV

I cannot find _POSIX_UIO_MAXIOV in the XOPEN v7 documentation.

I have found in <bits/posix1_lim.h>:

  #if !defined __USE_OPEN2K || defined __USE_GNU
  ....
  # define _POSIX_UIO_MAXIOV
  #endif

I observe that __USE_OPEN2K is defined (by virtue of _XOPEN_SOURCE >= 700), but
since I do not define _GNU_SOURCE, __USE_GNU is not defined.

As far as I can see, with _XOPEN_SOURCE = 700 I can expect _XOPEN_IOV_MAX to be
defined to 16.

Hence the bug report.

-- 
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]