public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/16747] New: the declaration of lio_listio is missing a restrict qualifier
@ 2014-03-24 17:40 nszabolcs at gmail dot com
  2014-03-24 18:27 ` [Bug libc/16747] " joseph at codesourcery dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: nszabolcs at gmail dot com @ 2014-03-24 17:40 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/16747] the declaration of lio_listio is missing a restrict qualifier
  2014-03-24 17:40 [Bug libc/16747] New: the declaration of lio_listio is missing a restrict qualifier nszabolcs at gmail dot com
@ 2014-03-24 18:27 ` joseph at codesourcery dot com
  2014-06-12 19:55 ` fweimer at redhat dot com
  2015-08-27 22:21 ` [Bug librt/16747] " jsm28 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: joseph at codesourcery dot com @ 2014-03-24 18:27 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
A fix should make the extra restrict conditional on __USE_XOPEN2K, given 
that it's not there in older standards and affects type compatibility 
(unlike most uses of restrict which are only on the parameters themselves 
and so don't affect type compatibility).

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/16747] the declaration of lio_listio is missing a restrict qualifier
  2014-03-24 17:40 [Bug libc/16747] New: the declaration of lio_listio is missing a restrict qualifier nszabolcs at gmail dot com
  2014-03-24 18:27 ` [Bug libc/16747] " joseph at codesourcery dot com
@ 2014-06-12 19:55 ` fweimer at redhat dot com
  2015-08-27 22:21 ` [Bug librt/16747] " jsm28 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-12 19:55 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug librt/16747] the declaration of lio_listio is missing a restrict qualifier
  2014-03-24 17:40 [Bug libc/16747] New: the declaration of lio_listio is missing a restrict qualifier nszabolcs at gmail dot com
  2014-03-24 18:27 ` [Bug libc/16747] " joseph at codesourcery dot com
  2014-06-12 19:55 ` fweimer at redhat dot com
@ 2015-08-27 22:21 ` jsm28 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-27 22:21 UTC (permalink / raw)
  To: glibc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |librt

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-27 22:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-24 17:40 [Bug libc/16747] New: the declaration of lio_listio is missing a restrict qualifier nszabolcs at gmail dot com
2014-03-24 18:27 ` [Bug libc/16747] " joseph at codesourcery dot com
2014-06-12 19:55 ` fweimer at redhat dot com
2015-08-27 22:21 ` [Bug librt/16747] " 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).