Back to index

glibc  2.9
Classes | Defines | Enumerations | Functions
aio.h File Reference
#include <features.h>
#include <fcntl.h>
#include <signal.h>
#include <time.h>
#include <sys/types.h>

Go to the source code of this file.

Classes

struct  aiocb

Defines

#define AIO_CANCELED   AIO_CANCELED
#define AIO_NOTCANCELED   AIO_NOTCANCELED
#define AIO_ALLDONE   AIO_ALLDONE
#define LIO_READ   LIO_READ
#define LIO_WRITE   LIO_WRITE
#define LIO_NOP   LIO_NOP
#define LIO_WAIT   LIO_WAIT
#define LIO_NOWAIT   LIO_NOWAIT

Enumerations

enum  { AIO_CANCELED, AIO_CANCELED, AIO_NOTCANCELED, AIO_NOTCANCELED }
enum  { LIO_READ, LIO_READ, LIO_WRITE, LIO_WRITE }
enum  { LIO_WAIT, LIO_WAIT }

Functions

int aio_read (struct aiocb *__aiocbp) __THROW __nonnull((1))
int aio_write (struct aiocb *__aiocbp) __THROW __nonnull((1))
int lio_listio (int __mode, struct aiocb *__const __list[__restrict_arr], int __nent, struct sigevent *__restrict __sig) __THROW __nonnull((2))
int aio_error (__const struct aiocb *__aiocbp) __THROW __nonnull((1))
__ssize_t aio_return (struct aiocb *__aiocbp) __THROW __nonnull((1))
int aio_cancel (int __fildes, struct aiocb *__aiocbp) __THROW
int aio_suspend (__const struct aiocb *__const __list[], int __nent, __const struct timespec *__restrict __timeout) __nonnull((1))
int aio_fsync (int __operation, struct aiocb *__aiocbp) __THROW __nonnull((2))

Class Documentation

struct aiocb

Definition at line 35 of file aio.h.

Collaboration diagram for aiocb:
Class Members
int __abs_prio
int __error_code
struct aiocb * __next_prio
char __pad
int __policy
__ssize_t __return_value
char __unused
volatile void * aio_buf
int aio_fildes
int aio_lio_opcode
size_t aio_nbytes
__off_t aio_offset
int aio_reqprio

Define Documentation

#define AIO_ALLDONE   AIO_ALLDONE

Definition at line 111 of file aio.h.

#define AIO_CANCELED   AIO_CANCELED

Definition at line 107 of file aio.h.

Definition at line 109 of file aio.h.

#define LIO_NOP   LIO_NOP

Definition at line 123 of file aio.h.

#define LIO_NOWAIT   LIO_NOWAIT

Definition at line 133 of file aio.h.

#define LIO_READ   LIO_READ

Definition at line 119 of file aio.h.

#define LIO_WAIT   LIO_WAIT

Definition at line 131 of file aio.h.

#define LIO_WRITE   LIO_WRITE

Definition at line 121 of file aio.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
AIO_CANCELED 
AIO_CANCELED 
AIO_NOTCANCELED 
AIO_NOTCANCELED 

Definition at line 104 of file aio.h.

{
  AIO_CANCELED,
#define AIO_CANCELED AIO_CANCELED
  AIO_NOTCANCELED,
#define AIO_NOTCANCELED AIO_NOTCANCELED
  AIO_ALLDONE
#define AIO_ALLDONE AIO_ALLDONE
};
anonymous enum
Enumerator:
LIO_READ 
LIO_READ 
LIO_WRITE 
LIO_WRITE 

Definition at line 116 of file aio.h.

{
  LIO_READ,
#define LIO_READ LIO_READ
  LIO_WRITE,
#define LIO_WRITE LIO_WRITE
  LIO_NOP
#define LIO_NOP LIO_NOP
};
anonymous enum
Enumerator:
LIO_WAIT 
LIO_WAIT 

Definition at line 128 of file aio.h.

{
  LIO_WAIT,
#define LIO_WAIT LIO_WAIT
  LIO_NOWAIT
#define LIO_NOWAIT LIO_NOWAIT
};

Function Documentation

int aio_cancel ( int  __fildes,
struct aiocb __aiocbp 
)

Definition at line 34 of file aio_cancel.c.

{
  __set_errno (ENOSYS);
  return -1;
}

Here is the call graph for this function:

int aio_error ( __const struct aiocb __aiocbp)

Here is the caller graph for this function:

int aio_fsync ( int  __operation,
struct aiocb __aiocbp 
)

Definition at line 35 of file aio_fsync.c.

{
  if (op != O_SYNC && op != O_DSYNC)
    {
      __set_errno (EINVAL);
      return -1;
    }

  __set_errno (ENOSYS);
  return -1;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int aio_read ( struct aiocb __aiocbp)

Definition at line 29 of file aio_read.c.

{
  __set_errno (ENOSYS);
  return -1;
}

Here is the call graph for this function:

Here is the caller graph for this function:

__ssize_t aio_return ( struct aiocb __aiocbp)

Definition at line 34 of file aio_return.c.

{
  return aiocbp->__return_value;
}

Here is the caller graph for this function:

int aio_suspend ( __const struct aiocb *__const  __list[],
int  __nent,
__const struct timespec *__restrict  __timeout 
)

Here is the caller graph for this function:

int aio_write ( struct aiocb __aiocbp)

Definition at line 29 of file aio_write.c.

{
  __set_errno (ENOSYS);
  return -1;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int lio_listio ( int  __mode,
struct aiocb *__const  __list[__restrict_arr],
int  __nent,
struct sigevent *__restrict  __sig 
)