diff options
Diffstat (limited to 'src/aio/include')
| -rw-r--r-- | src/aio/include/aio.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/aio/include/aio.h b/src/aio/include/aio.h new file mode 100644 index 0000000..39a53e5 --- /dev/null +++ b/src/aio/include/aio.h @@ -0,0 +1,17 @@ +#ifndef AIO_H +#define AIO_H + +#include <stddef.h> + +enum +{ + AIO_POLLIN = 1, + AIO_POLLOUT = 1 << 1 +}; + +struct aio *aio_open(const char *path, const char *mode); +int aio_poll(struct aio **io, size_t n); +int aio_event(const struct aio *io, int ev); +int aio_close(struct aio *io); + +#endif |
