forked from Imagelibrary/rtems
POSIX AIO: Add restrict keyword per Single UNIX Specification
This commit is contained in:
committed by
Joel Sherrill
parent
f74a492cf6
commit
4343f5b4c7
@@ -19,6 +19,7 @@
|
||||
#ifndef _AIO_H
|
||||
#define _AIO_H
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -115,10 +116,10 @@ int aio_write(
|
||||
*/
|
||||
|
||||
int lio_listio(
|
||||
int mode,
|
||||
struct aiocb * const list[],
|
||||
int nent,
|
||||
struct sigevent *sig
|
||||
int mode,
|
||||
struct aiocb *__restrict const list[__restrict],
|
||||
int nent,
|
||||
struct sigevent *__restrict sig
|
||||
);
|
||||
|
||||
/*
|
||||
|
||||
@@ -27,10 +27,10 @@
|
||||
#include <rtems/seterr.h>
|
||||
|
||||
int lio_listio(
|
||||
int mode __attribute__((unused)),
|
||||
struct aiocb * const list[] __attribute__((unused)),
|
||||
int nent __attribute__((unused)),
|
||||
struct sigevent *sig __attribute__((unused))
|
||||
int mode __attribute__((unused)),
|
||||
struct aiocb *__restrict const list[__restrict] __attribute__((unused)),
|
||||
int nent __attribute__((unused)),
|
||||
struct sigevent *__restrict sig __attribute__((unused))
|
||||
)
|
||||
{
|
||||
rtems_set_errno_and_return_minus_one( ENOSYS );
|
||||
|
||||
Reference in New Issue
Block a user