]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/generic/aio_misc.h
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / generic / aio_misc.h
1 /* Internal declarations for <aio.h> functions implementation. Stub version.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19 #ifndef _AIO_MISC_H
20 #define _AIO_MISC_H 1
21
22 #include <aio.h>
23
24
25 /* Extend the operation enum. */
26 enum
27 {
28 LIO_DSYNC = LIO_READ + 1,
29 LIO_SYNC,
30 LIO_READ64 = LIO_READ | 128,
31 LIO_WRITE64 = LIO_WRITE | 128
32 };
33
34 /* Union of the two request types. */
35 typedef union
36 {
37 struct aiocb aiocb;
38 struct aiocb64 aiocb64;
39 } aiocb_union;
40
41
42 /* Send the signal. */
43 extern int __aio_sigqueue (int sig, const union sigval val, pid_t caller_pid)
44 attribute_hidden;
45
46
47 #endif /* aio_misc.h */