mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 10:22:59 +00:00
whoops - forgot to commit header files
svn path=/trunk/; revision=2635
This commit is contained in:
parent
ad8ae0a2f5
commit
e858ec1801
64 changed files with 4508 additions and 0 deletions
80
posix/include/aio.h
Normal file
80
posix/include/aio.h
Normal file
|
@ -0,0 +1,80 @@
|
|||
/*
|
||||
* aio.h
|
||||
*
|
||||
* asynchronous input and output (REALTIME). Based on the Single UNIX(r)
|
||||
* Specification, Version 2
|
||||
*
|
||||
* This file is part of the ReactOS Operating System.
|
||||
*
|
||||
* Contributors:
|
||||
* Created by KJK::Hyperion <noog@libero.it>
|
||||
*
|
||||
* THIS SOFTWARE IS NOT COPYRIGHTED
|
||||
*
|
||||
* This source code is offered for use in the public domain. You may
|
||||
* use, modify or distribute it freely.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful but
|
||||
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
||||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
*/
|
||||
#ifndef __AIO_H_INCLUDED__
|
||||
#define __AIO_H_INCLUDED__
|
||||
|
||||
#ifdef __PSXDLL__
|
||||
|
||||
/* headers for internal usage by psxdll.dll and ReactOS */
|
||||
#include <psxdll/fcntl.h>
|
||||
#include <psxdll/signal.h>
|
||||
#include <psxdll/sys/types.h>
|
||||
#include <psxdll/time.h>
|
||||
|
||||
#else /* ! __PSXDLL__ */
|
||||
|
||||
/* standard POSIX headers */
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
|
||||
#endif
|
||||
|
||||
/* types */
|
||||
typedef struct _tag_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 */
|
||||
} aiocb;
|
||||
|
||||
/* constants */
|
||||
#define AIO_CANCELED 0
|
||||
#define AIO_NOTCANCELED 1
|
||||
#define AIO_ALLDONE 2
|
||||
|
||||
#define LIO_WAIT 0
|
||||
#define LIO_NOWAIT 1
|
||||
#define LIO_READ 2
|
||||
#define LIO_WRITE 3
|
||||
#define LIO_NOP 4
|
||||
|
||||
/* prototypes */
|
||||
int aio_cancel(int, struct aiocb *);
|
||||
int aio_error(const struct aiocb *);
|
||||
int aio_fsync(int, struct aiocb *);
|
||||
int aio_read(struct aiocb *);
|
||||
ssize_t aio_return(struct aiocb *);
|
||||
int aio_suspend(const struct aiocb *const[], int, const struct timespec *);
|
||||
int aio_write(struct aiocb *);
|
||||
int lio_listio(int, struct aiocb *const[], int, struct sigevent *);
|
||||
|
||||
#endif /* __AIO_H_INCLUDED__ */
|
||||
|
||||
/* EOF */
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue