From b27ec1e0d72bc5f805eebfd304825a1a65f88ed7 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 20 Aug 2010 13:30:32 +0000 Subject: =?UTF-8?q?2010-08-16=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * posix/include/aio.h: Separate LIO-modes from LIO-opcodes (From freebsd). --- cpukit/posix/include/aio.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'cpukit/posix') diff --git a/cpukit/posix/include/aio.h b/cpukit/posix/include/aio.h index 2700dac19e..becb4abb86 100644 --- a/cpukit/posix/include/aio.h +++ b/cpukit/posix/include/aio.h @@ -46,15 +46,22 @@ extern "C" { /* lio_listio() options */ +/* + * LIO modes + */ #define LIO_WAIT 0 /* calling process is to suspend until the */ /* operation is complete */ #define LIO_NOWAIT 1 /* calling process is to continue execution while */ /* the operation is performed and no notification */ /* shall be given when the operation is completed */ -#define LIO_READ 2 /* request a read() */ -#define LIO_WRITE 3 /* request a write() */ -#define LIO_NOP 4 /* no transfer is requested */ -#define LIO_SYNC 5 /* needed by aio_fsync() */ + +/* + * LIO opcodes + */ +#define LIO_NOP 0 /* no transfer is requested */ +#define LIO_READ 1 /* request a read() */ +#define LIO_WRITE 2 /* request a write() */ +#define LIO_SYNC 3 /* needed by aio_fsync() */ /* * 6.7.1.1 Asynchronous I/O Control Block, P1003.1b-1993, p. 151 -- cgit v1.2.3