blob: 3b873991724307e270d86b32286928dec1b41542 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef __LINUX__AIO_ABI_H
20#define __LINUX__AIO_ABI_H
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <asm/byteorder.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080022typedef unsigned long aio_context_t;
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024enum {
25 IOCB_CMD_PREAD = 0,
26 IOCB_CMD_PWRITE = 1,
27 IOCB_CMD_FSYNC = 2,
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029 IOCB_CMD_FDSYNC = 3,
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080030 IOCB_CMD_NOOP = 6,
31};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080032struct io_event {
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034 __u64 data;
35 __u64 obj;
36 __s64 res;
37 __s64 res2;
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080040#ifdef __LITTLE_ENDIAN
41#define PADDED(x,y) x, y
42#elif defined(__BIG_ENDIAN)
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044#define PADDED(x,y) y, x
45#else
46#error edit for your odd byteorder.
47#endif
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049struct iocb {
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080050 __u64 aio_data;
51 __u32 PADDED(aio_key, aio_reserved1);
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080052 __u16 aio_lio_opcode;
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054 __s16 aio_reqprio;
55 __u32 aio_fildes;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080056 __u64 aio_buf;
57 __u64 aio_nbytes;
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080059 __s64 aio_offset;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080060 __u64 aio_reserved2;
61 __u64 aio_reserved3;
62};
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080064#undef IFBIG
65#undef IFLITTLE
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080066#endif