Return to test_aio.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / libaitio / example |
1.1.2.1 ! misho 1: #include <stdio.h> ! 2: #include <unistd.h> ! 3: #include <fcntl.h> ! 4: #include <aitio.h> ! 5: ! 6: ! 7: int ! 8: main(int argc, char **argv) ! 9: { ! 10: int f; ! 11: ! 12: f = open("test_aio.dat", O_CREAT | O_RDWR | O_TRUNC, 0644); ! 13: if (f == -1) { ! 14: perror("open"); ! 15: return 1; ! 16: } ! 17: ! 18: close(f); ! 19: return 0; ! 20: }