1 
2 #include <stdio.h>
3 #include <stdlib.h>
4 #include <string.h>
5 #include <time.h>
6 
7 // Castor Only
8 #include <syscall.h>
9 
10 int
main(int argc,const char * argv[])11 main(int argc, const char *argv[])
12 {
13     printf("FIO Test\n");
14     uint64_t fd = OSOpen("/LICENSE", 0);
15 
16     for (int i = 0; i < 100; i++) {
17 	int status = OSWrite(fd, "123456789\n", i*10, 10);
18 	if (status < 0) {
19 	    printf("Error: %x\n", -status);
20 	    return 1;
21 	}
22     }
23 
24     printf("Success!\n");
25 
26     return 0;
27 }
28 
29