1 #include <stdio.h> 2 #include <errno.h> 3 #include <assert.h> 4 #include <stdlib.h> 5 #include <fcntl.h> 6 #include <sys/types.h> 7 #include <sys/stat.h> 8 #include <unistd.h> 9 #include "test.h" 10 #include "config.h" 11 12 #define TEST_NAME "aio_tio" 13 14 char *TCID = "aio02/" TEST_NAME; 15 int TST_TOTAL = 0; 16 17 #if HAVE_LIBAIO_H 18 19 #include <libaio.h> 20 21 int test_main(void); 22 23 int main(void) 24 { 25 tst_tmpdir(); 26 27 test_main(); 28 29 tst_rmdir(); 30 tst_exit(); 31 } 32 #else 33 int main(void) 34 { 35 tst_brkm(TCONF, NULL, "libaio missing"); 36 } 37 #endif 38