8911cb6f6e95c9244058adddbc3813def090bcc3
4 * asynchronous input and output (REALTIME). Based on the Single UNIX(r)
5 * Specification, Version 2
7 * This file is part of the ReactOS Operating System.
10 * Created by KJK::Hyperion <noog@libero.it>
12 * THIS SOFTWARE IS NOT COPYRIGHTED
14 * This source code is offered for use in the public domain. You may
15 * use, modify or distribute it freely.
17 * This code is distributed in the hope that it will be useful but
18 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
19 * DISCLAMED. This includes but is not limited to warranties of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 #ifndef __AIO_H_INCLUDED__
24 #define __AIO_H_INCLUDED__
28 /* headers for internal usage by psxdll.dll and ReactOS */
29 #include <psxdll/fcntl.h>
30 #include <psxdll/signal.h>
31 #include <psxdll/sys/types.h>
32 #include <psxdll/time.h>
34 #else /* ! __PSXDLL__ */
36 /* standard POSIX headers */
39 #include <sys/types.h>
45 typedef struct _tag_aiocb
47 int aio_fildes
/* file descriptor */
48 off_t aio_offset
/* file offset */
49 volatile void* aio_buf
/* location of buffer
50 size_t aio_nbytes /* length of transfer */
51 int aio_reqprio
/* request priority offset */
52 struct sigevent aio_sigevent
/* signal number and value */
53 int aio_lio_opcode
/* operation to be performed */
57 #define AIO_CANCELED 0
58 #define AIO_NOTCANCELED 1
68 int aio_cancel(int, struct aiocb
*);
69 int aio_error(const struct aiocb
*);
70 int aio_fsync(int, struct aiocb
*);
71 int aio_read(struct aiocb
*);
72 ssize_t
aio_return(struct aiocb
*);
73 int aio_suspend(const struct aiocb
*const[], int, const struct timespec
*);
74 int aio_write(struct aiocb
*);
75 int lio_listio(int, struct aiocb
*const[], int, struct sigevent
*);
77 #endif /* __AIO_H_INCLUDED__ */