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/20023] New: fcntl.h timespec namespace


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

            Bug ID: 20023
           Summary: fcntl.h timespec namespace
           Product: glibc
           Version: 2.23
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

fcntl.h defines struct timespec if __USE_XOPEN || __USE_XOPEN2K8.  But (a) the
subsequent bits/stat.h include only needs it if __USE_XOPEN2K8 and (b) older
standards did not allow struct timespec here.  (It's allowed for newer
standards by virtue of the permission to include symbols from sys/stat.h.  But
sys/stat.h is only required to provide struct timespec from the 2008 edition of
POSIX onwards, and permitted by the 2004 TC to the 2001 edition in anticipation
of the addition of nanosecond timestamp support to struct stat in the 2008
edition.)

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