summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-08-20 13:30:32 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-08-20 13:30:32 +0000
commitb27ec1e0d72bc5f805eebfd304825a1a65f88ed7 (patch)
tree66cf3cf32c2e5a5119cd2b925554c91f17181447
parent2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-b27ec1e0d72bc5f805eebfd304825a1a65f88ed7.tar.bz2
2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/include/aio.h: Separate LIO-modes from LIO-opcodes (From freebsd).
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/posix/include/aio.h15
2 files changed, 16 insertions, 4 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 79ad7df8f3..9b1d767aa7 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,10 @@
2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>
+ * posix/include/aio.h: Separate LIO-modes from LIO-opcodes (From
+ freebsd).
+
+2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>
+
* sapi/include/rtems/chain.h: Move extern "C".
2010-08-16 Alin Rus <alin.codejunkie@gmail.com>
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