From f867968153cc4d0af23304deb5ebed45ea5a1cc9 Mon Sep 17 00:00:00 2001 From: rmind Date: Thu, 3 May 2007 21:22:33 +0000 Subject: [PATCH] - Add linkage for C++ - KNF Patch from , thanks! --- include/aio.h | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/include/aio.h b/include/aio.h index f71bb9b9100f..cb0792380a4b 100644 --- a/include/aio.h +++ b/include/aio.h @@ -1,4 +1,4 @@ -/* $NetBSD: aio.h,v 1.1 2007/04/30 14:44:29 rmind Exp $ */ +/* $NetBSD: aio.h,v 1.2 2007/05/03 21:22:33 rmind Exp $ */ /* * Copyright (c) 2007, Mindaugas Rasiukevicius @@ -25,28 +25,29 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _AIO_H_ -#define _AIO_H_ +#ifndef _AIO_H_ +#define _AIO_H_ #include #include #include + +#include #include -/* - * NOTE: Asynchronous I/O block structure and - * constants are defined in sys/aio.h header. - */ #include -/* Prototypes */ -int aio_cancel(int, struct aiocb *); -int aio_error(const struct aiocb *); -int aio_fsync(int, struct aiocb *); -int aio_read(struct aiocb *); -ssize_t aio_return(struct aiocb *); -int aio_suspend(const struct aiocb *const[], int, const struct timespec *); -int aio_write(struct aiocb *); -int lio_listio(int, struct aiocb *const[], int, struct sigevent *); +__BEGIN_DECLS +int aio_cancel(int, struct aiocb *); +int aio_error(const struct aiocb *); +int aio_fsync(int, struct aiocb *); +int aio_read(struct aiocb *); +ssize_t aio_return(struct aiocb *); +int aio_suspend(const struct aiocb * const [], int, + const struct timespec *); +int aio_write(struct aiocb *); +int lio_listio(int, struct aiocb * const __restrict [], + int, struct sigevent * __restrict); +__END_DECLS -#endif /* _AIO_H_ */ +#endif /* _AIO_H_ */