aio.h-data 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined XPG4 && !defined XPG42
  2. type {struct aiocb}
  3. // Test elements of the AIO control struct.
  4. element {struct aiocb} int aio_fildes
  5. element {struct aiocb} off_t aio_offset
  6. element {struct aiocb} {volatile void*} aio_buf
  7. element {struct aiocb} size_t aio_nbytes
  8. element {struct aiocb} int aio_reqprio
  9. element {struct aiocb} {struct sigevent} aio_sigevent
  10. element {struct aiocb} int aio_lio_opcode
  11. constant AIO_CANCELED
  12. constant AIO_NOTCANCELED
  13. constant AIO_ALLDONE
  14. constant LIO_WAIT
  15. constant LIO_NOWAIT
  16. constant LIO_READ
  17. constant LIO_WRITE
  18. constant LIO_NOP
  19. function int aio_cancel (int, struct aiocb*)
  20. function int aio_error (const struct aiocb*)
  21. function int aio_fsync (int, struct aiocb*)
  22. function int aio_read (struct aiocb*)
  23. function ssize_t aio_return (struct aiocb*)
  24. function int aio_suspend (const struct aiocb* const[], int, const struct timespec*)
  25. function int aio_write (struct aiocb*)
  26. function int lio_listio (int, struct aiocb *const[], int, struct sigevent*)
  27. // POSIX in theory doesn't allow the header to be self contained but
  28. // this was fixed later and we do not test for this here.
  29. allow-header fcntl.h
  30. allow-header signal.h
  31. allow-header sys/types.h
  32. allow-header time.h
  33. allow aio_*
  34. allow lio_*
  35. allow AIO_*
  36. allow LIO_*
  37. allow *_t
  38. #endif