projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use restrict everywhere it's required by c99 and/or posix 2008
[musl]
/
include
/
aio.h
diff --git
a/include/aio.h
b/include/aio.h
index
2edd5a2
..
3e35134
100644
(file)
--- a/
include/aio.h
+++ b/
include/aio.h
@@
-5,6
+5,12
@@
extern "C" {
#endif
extern "C" {
#endif
+#if __STDC_VERSION__ >= 199901L
+#define __restrict restrict
+#elif !defined(__GNUC__)
+#define __restrict
+#endif
+
#include <signal.h>
#include <time.h>
#include <signal.h>
#include <time.h>
@@
-46,7
+52,7
@@
int aio_cancel(int, struct aiocb *);
int aio_suspend(const struct aiocb *const [], int, const struct timespec *);
int aio_fsync(int, struct aiocb *);
int aio_suspend(const struct aiocb *const [], int, const struct timespec *);
int aio_fsync(int, struct aiocb *);
-int lio_listio(int, struct aiocb *
const [], int, struct sigevent *
);
+int lio_listio(int, struct aiocb *
__restrict const *__restrict, int, struct sigevent *__restrict
);
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
#define aiocb64 aiocb
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
#define aiocb64 aiocb