public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Another problem in <aio.h>
@ 1999-12-16  9:59 Andreas Jaeger
  0 siblings, 0 replies; only message in thread
From: Andreas Jaeger @ 1999-12-16  9:59 UTC (permalink / raw)
  To: GNU libc hacker

I just got:
/opt/gcc-2.95/bin/gcc -ggdb -Wall -Waggregate-return -Wcast-align -Wimplicit -Wmissing-prototypes -Wnested-externs -Wno-parentheses -DAIO -DFIFO -DMMAP -D__linux__ -D_BSD_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -c dttape.c -o dttape.o
In file included from dt.h:913,
                 from dttape.c:59:
/usr/include/aio.h:175: invalid use of `restrict'
/usr/include/aio.h:189: invalid use of `restrict'

The restrict declarations are wrong - compare these declarations with
the other declarations of lio_listio  and aio_suspend.

The patch is necessary for glibc 2.1.3 and glibc 2.2.

Andreas

1999-12-16  Andreas Jaeger  <aj@suse.de>

	* rt/aio.h: Remove erroneous __restrict declarations.

============================================================
Index: rt/aio.h
--- rt/aio.h	1999/10/09 21:23:31	1.9
+++ rt/aio.h	1999/12/16 17:28:17
@@ -170,7 +170,7 @@
 		       aio_write64);
 
 extern int __REDIRECT (lio_listio,
-		       (int __mode, struct aiocb *__const __restrict __list[],
+		       (int __mode, struct aiocb *__const __list[],
 			int __nent, struct sigevent *__restrict __sig) __THROW,
 		       lio_listio64);
 
@@ -184,7 +184,7 @@
 		       aio_cancel64);
 
 extern int __REDIRECT (aio_suspend,
-		       (__const struct aiocb *__const __restrict __list[],
+		       (__const struct aiocb *__const __list[],
 			int __nent,
 			__const struct timespec *__restrict __timeout) __THROW,
 		       aio_suspend64);

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-12-16  9:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-16  9:59 Another problem in <aio.h> Andreas Jaeger

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).