1 /*
2 * Copyright 2024 Tenstorrent AI ULC
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7 #include <errno.h>
8 #include <signal.h>
9
10 #include <zephyr/posix/aio.h>
11
aio_cancel(int fildes,struct aiocb * aiocbp)12 int aio_cancel(int fildes, struct aiocb *aiocbp)
13 {
14 ARG_UNUSED(fildes);
15 ARG_UNUSED(aiocbp);
16
17 errno = ENOSYS;
18 return -1;
19 }
20
aio_error(const struct aiocb * aiocbp)21 int aio_error(const struct aiocb *aiocbp)
22 {
23 ARG_UNUSED(aiocbp);
24
25 errno = ENOSYS;
26 return -1;
27 }
28
aio_fsync(int fildes,struct aiocb * aiocbp)29 int aio_fsync(int fildes, struct aiocb *aiocbp)
30 {
31 ARG_UNUSED(fildes);
32 ARG_UNUSED(aiocbp);
33
34 errno = ENOSYS;
35 return -1;
36 }
37
aio_read(struct aiocb * aiocbp)38 int aio_read(struct aiocb *aiocbp)
39 {
40 ARG_UNUSED(aiocbp);
41
42 errno = ENOSYS;
43 return -1;
44 }
45
aio_return(struct aiocb * aiocbp)46 ssize_t aio_return(struct aiocb *aiocbp)
47 {
48 ARG_UNUSED(aiocbp);
49
50 errno = ENOSYS;
51 return -1;
52 }
53
aio_suspend(const struct aiocb * const list[],int nent,const struct timespec * timeout)54 int aio_suspend(const struct aiocb *const list[], int nent, const struct timespec *timeout)
55 {
56 ARG_UNUSED(list);
57 ARG_UNUSED(nent);
58 ARG_UNUSED(timeout);
59
60 errno = ENOSYS;
61 return -1;
62 }
63
aio_write(struct aiocb * aiocbp)64 int aio_write(struct aiocb *aiocbp)
65 {
66 ARG_UNUSED(aiocbp);
67
68 errno = ENOSYS;
69 return -1;
70 }
71
lio_listio(int mode,struct aiocb * const ZRESTRICT list[],int nent,struct sigevent * ZRESTRICT sig)72 int lio_listio(int mode, struct aiocb *const ZRESTRICT list[], int nent,
73 struct sigevent *ZRESTRICT sig)
74 {
75 ARG_UNUSED(mode);
76 ARG_UNUSED(list);
77 ARG_UNUSED(nent);
78 ARG_UNUSED(sig);
79
80 errno = ENOSYS;
81 return -1;
82 }
83