summaryrefslogtreecommitdiff
path: root/include/aio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/aio.h')
-rw-r--r--include/aio.h61
1 files changed, 12 insertions, 49 deletions
diff --git a/include/aio.h b/include/aio.h
index 9227cdfc..aa3598a6 100644
--- a/include/aio.h
+++ b/include/aio.h
@@ -1,72 +1,35 @@
#ifndef __AIO_H
#define __AIO_H
-#include <stddef.h>
-#include <time.h>
#define __BITS_SIGEVENT_H_
#include <bits/sigevent.h>
-#undef __BITS_SIGEVENT_H_
#define __BITS_TIMESPEC_H_
#include <bits/timespec.h>
-#undef __BITS_TIMESPEC_H_
-/** A return value indicating that all requested operations have been canceled.
- */
-#define AIO_CANCELED 0
-
-/**
- * A return value indicating that some of the requested operations
- * could not be canceled since they are in progress.
- */
+#define AIO_CANCELED 0
#define AIO_NOTCANCELED 1
+#define AIO_ALLDONE 2
-/**
- * A return value indicating that none of the requested operations
- * could be canceled since they are already complete.
- */
-#define AIO_ALLDONE 2
-
-/** A lio_listio() element operation option requesting a read. */
-#define LIO_READ 0
-
-/**
- * A lio_listio() synchronization operation indicating that the calling
- * thread is to suspend until the lio_listio() operation is complete.
- */
+#define LIO_READ 0
#define LIO_WRITE 1
-/**
- * A lio_listio() element operation option indicating
- * that no transfer is requested.
- */
-#define LIO_NOP 2
-
-/**
- * A lio_listio() synchronization operation indicating that the calling
- * thread is to suspend until the lio_listio() operation is complete.
- */
-#define LIO_WAIT 0
-
-/**
- * A lio_listio() synchronization operation indicating that the calling thread
- * is to continue execution while the lio_listio() operation is being performed,
- * and no notification is given when the operation is complete.
- */
+#define LIO_WAIT 0
#define LIO_NOWAIT 1
+#define LIO_NOP 2
typedef __INT64_TYPE__ off_t;
typedef __SIZE_TYPE__ size_t;
typedef __INT64_TYPE__ ssize_t;
struct aiocb {
- int aio_fildes; /**< File descriptor. */
- off_t aio_offset; /**< File offset. */
- volatile void *aio_buf; /**< Location of buffer. */
- size_t aio_nbytes; /**< Length of transfer. */
- int aio_reqprio; /**< Request priority offset. */
- struct sigevent aio_sigevent; /**< Signal number and value. */
- int aio_lio_opcode; /**< Operation to be performed. */
+ int aio_fildes;
+ off_t aio_offset;
+ volatile void *aio_buf;
+ size_t aio_nbytes;
+ int aio_reqprio;
+ struct sigevent aio_sigevent;
+ int aio_lio_opcode;
};
int aio_cancel(int, struct aiocb *);