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/16747] New: the declaration of lio_listio is missing a restrict qualifier


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

            Bug ID: 16747
           Summary: the declaration of lio_listio is missing a restrict
                    qualifier
           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

lio_listio is declared in glibc as

    extern int lio_listio (int __mode,
                   struct aiocb *const __list[__restrict_arr],
                   int __nent, struct sigevent *__restrict __sig)
      __THROW __nonnull ((2));

but the standard prototype is
http://pubs.opengroup.org/onlinepubs/9699919799/functions/lio_listio.html

    int lio_listio(int, struct aiocb *restrict const *restrict, int, struct
sigevent *restrict);

note the two restrict qualifiers in the second argument

these two prototypes are not compatible

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