Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
 4.2.99
aio.h
Go to the documentation of this file.
1/*
2 * Copyright 2024 Tenstorrent AI ULC
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_ZEPHYR_POSIX_AIO_H_
8#define ZEPHYR_INCLUDE_ZEPHYR_POSIX_AIO_H_
9
10#include <signal.h>
11#include <sys/types.h>
12#include <time.h>
13
14#include <zephyr/toolchain.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
29
30#if _POSIX_C_SOURCE >= 200112L
31
32int aio_cancel(int fildes, struct aiocb *aiocbp);
33int aio_error(const struct aiocb *aiocbp);
34int aio_fsync(int filedes, struct aiocb *aiocbp);
35int aio_read(struct aiocb *aiocbp);
36ssize_t aio_return(struct aiocb *aiocbp);
37int aio_suspend(const struct aiocb *const list[], int nent, const struct timespec *timeout);
38int aio_write(struct aiocb *aiocbp);
39int lio_listio(int mode, struct aiocb *const ZRESTRICT list[], int nent,
40 struct sigevent *ZRESTRICT sig);
41
42#endif /* _POSIX_C_SOURCE >= 200112L */
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif /* ZEPHYR_INCLUDE_ZEPHYR_POSIX_AIO_H_ */
#define ZRESTRICT
Definition common.h:37
__SIZE_TYPE__ ssize_t
Definition types.h:28
__INTPTR_TYPE__ off_t
Definition types.h:36
Definition aio.h:20
off_t aio_offset
Definition aio.h:22
volatile void * aio_buf
Definition aio.h:23
size_t aio_nbytes
Definition aio.h:24
struct sigevent aio_sigevent
Definition aio.h:26
int aio_reqprio
Definition aio.h:25
int aio_lio_opcode
Definition aio.h:27
int aio_fildes
Definition aio.h:21
Definition signal.h:98
Definition _timespec.h:22
Macros to abstract toolchain specific capabilities.