source: trunk/libs/newlib/src/newlib/libc/sys/linux/aio.c

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.0 KB
Line 
1/* libc/sys/linux/aio.c - asychronous I/O */
2
3/* Copyright 2002, Red Hat Inc. */
4
5/* Currently asynchronous I/O is not implemented. */
6
7#define _GNU_SOURCE 1
8
9#include <sys/types.h>
10#include <aio.h>
11#include <errno.h>
12
13int
14aio_cancel (int fd, struct aiocb *cb)
15{
16  errno = ENOSYS;
17  return -1;
18}
19
20int
21aio_error (const struct aiocb *cb)
22{
23  errno = ENOSYS;
24  return -1;
25}
26
27int
28aio_fsync (int op, struct aiocb *cb)
29{
30  errno = ENOSYS;
31  return -1;
32}
33
34int
35aio_read (struct aiocb *cb)
36{
37  errno = ENOSYS;
38  return -1;
39}
40
41ssize_t
42aio_return (struct aiocb *cb)
43{
44  errno = ENOSYS;
45  return -1;
46}
47
48int
49aio_suspend (const struct aiocb *const list[], int nent,
50             const struct timespec *timeout)
51{
52  errno = ENOSYS;
53  return -1;
54}
55
56int
57aio_write (struct aiocb *cb)
58{
59  errno = ENOSYS;
60  return -1;
61}
62
63int
64lio_listio (int mode, struct aiocb * const list[], int nent,
65            struct sigevent *sig)
66{
67  errno = ENOSYS;
68  return -1;
69}
70
71#if !defined(_ELIX_LEVEL) || _ELIX_LEVEL >= 4
72void 
73aio_init (const struct aioinit *INIT)
74{
75  errno = ENOSYS;
76}
77#endif
Note: See TracBrowser for help on using the repository browser.