summaryrefslogtreecommitdiffstats
path: root/tools/build/feature/test-libaio.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/feature/test-libaio.c')
-rw-r--r--tools/build/feature/test-libaio.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/build/feature/test-libaio.c b/tools/build/feature/test-libaio.c
new file mode 100644
index 000000000000..932133c9a265
--- /dev/null
+++ b/tools/build/feature/test-libaio.c
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0
+#include <aio.h>
+
+int main(void)
+{
+ struct aiocb aiocb;
+
+ aiocb.aio_fildes = 0;
+ aiocb.aio_offset = 0;
+ aiocb.aio_buf = 0;
+ aiocb.aio_nbytes = 0;
+ aiocb.aio_reqprio = 0;
+ aiocb.aio_sigevent.sigev_notify = 1 /*SIGEV_NONE*/;
+
+ return (int)aio_return(&aiocb);
+}
OpenPOWER on IntegriCloud