2023-11-22 02:37:17 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
// Castor Only
|
|
|
|
#include <syscall.h>
|
|
|
|
|
|
|
|
int
|
|
|
|
main(int argc, const char *argv[])
|
|
|
|
{
|
|
|
|
printf("FIO Test\n");
|
|
|
|
uint64_t fd = OSOpen("/LICENSE", 0);
|
|
|
|
|
|
|
|
for (int i = 0; i < 100; i++) {
|
2023-11-22 03:52:10 +00:00
|
|
|
int status = OSWrite(fd, "123456789\n", i*10, 10);
|
|
|
|
if (status < 0) {
|
|
|
|
printf("Error: %x\n", -status);
|
|
|
|
return 1;
|
|
|
|
}
|
2023-11-22 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
printf("Success!\n");
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|