2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>

* posix/include/aio.h: Separate LIO-modes from LIO-opcodes (From
	freebsd).
This commit is contained in:
Ralf Corsepius
2010-08-20 13:30:32 +00:00
parent b3263f57d2
commit b27ec1e0d7
2 changed files with 16 additions and 4 deletions
+5
View File
@@ -1,3 +1,8 @@
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".
+11 -4
View File
@@ -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