--- libaitio/example/test_aio.c 2012/08/01 09:20:04 1.1 +++ libaitio/example/test_aio.c 2012/08/01 09:20:04 1.1.2.1 @@ -0,0 +1,20 @@ +#include +#include +#include +#include + + +int +main(int argc, char **argv) +{ + int f; + + f = open("test_aio.dat", O_CREAT | O_RDWR | O_TRUNC, 0644); + if (f == -1) { + perror("open"); + return 1; + } + + close(f); + return 0; +}